Circuit

Ethereum PT Yield strategy report

Updated by the Circuit team

Summary

PT yield with debt controls. Venue: Pendle · Morpho · Ethereum. Run this agent on Circuit

The agent buys a Pendle principal token (PT) with USDC on Ethereum and holds it to maturity. It can also borrow a stablecoin against the PT on Morpho and buy more PT. It does this only when the PT yield is at least 2 points above the loan rate. It can also park idle USDC of $5,000 or more in a lending vault until it needs the money.

Income comes from the fixed discount of the PT. When the agent loops, it also earns the spread between the PT yield and the loan rate. Parked USDC earns the lending yield of its vault.

This report shows the strategy and two changes to the original agent. Step 1 adds safety rules to the exit. Step 2 adds gas payback rules and parking. The step-1 rules ran in a test harness and in fork replays with the real lender. The fork replays run on copies of Ethereum at blocks of a real-money session of the original agent. Two test builds of the agent then ran the step-1 code with real money, one in a real-money test and one in a production check. In each check the build opened two 1.50x loops of about 170 USDC and closed both with Close Now. On production, one run of 7 failed on a dropped Pendle connection, and the next run finished the close. In step 2 the agent takes a voluntary action only when its gain is more than 2 times its gas and price impact. The step-2 rules also ran in the harness, and parking ran on a fork on all 3 vaults. A session replay runs the step-2 code on the rates and prices of the session. It mocks Pendle, the lender and the wallet. At the session's 500 USDC no loop pays back, so the agent buys plain PT once and sends 2 transactions instead of 186. The production test build, rebuilt from the step-2 code, then ran a second production check. It parked 400 USDC and took 200 USDC out into a 1.5x loop. For this check the build parked from $20 and only logged the profit, payback and size rules, so a small loop could open. On Close Now it closed the loop and took the rest out.

  • Withdrawal margin: 2 points under LLTV
  • Loop exit: 7 days before maturity
  • Stuck alert: After 3 failures
  • Pendle approvals: 2 (original 16)
  • Fork replays at debt 0: 4 of 4
  • Harness tests: 156 pass
  • PT yield, reUSD: 11.66%
  • Loan rate, spot: 9.59%
  • Real-money test loops closed: 2 of 2
  • Failed real-money test runs: 0 of 6
  • Production loops closed: 3 of 3
  • Failed production runs: 1 of 14
  • Session replay, tx: 186 → 2
  • Session replay gas, $500: $54.39 → $1.11
  • Payback test: Gain > 2 × costs
  • Parking floor: $5,000 idle USDC

LLTV is the lender's liquidation loan-to-value. The approval count is for a 3x loop of 10,000 USDC in and out, in the harness. The harness count is for the step-2 code. Fork replays start at real blocks of a real-money session. The yield and the loan rate are for PT-reUSD-10DEC2026 and its Morpho USDC loan on 18 Nov 2026. Two test builds of the agent ran the step-1 code with real money, one in a real-money test and one in a production check. In each check the build opened two 1.50x loops of about 170 USDC and closed each with Close Now. In the step-1 production check, one of 7 runs failed. The production test build, rebuilt from the step-2 code, ran the step-2 production check, where 0 of 7 runs failed. The session replay runs the step-2 code on the session's rates and prices, at its 500 USDC. It mocks Pendle, the lender and the wallet. At 500 USDC no loop pays back, so the agent buys plain PT once. The actual gas of $54.39 is at the daily ETH price. At the session replay's hourly price it is $52.52. Costs are gas and price impact.

Main risks

  • Liquidation: if the PT oracle price falls, the loan can reach the lender's LLTV of 0.86 or 0.915 and the lender sells the PT.
  • Loan rate: if the loan rate rises above the PT yield, the loop loses money until the agent exits. On 18 Nov, Morpho PT loans cost 2% to 12%, and 10 of 17 live loans cost 7% to 12%.
  • Slow exit near liquidation: the agent has no one-transaction close. In a fork replay, an exit from a lender LTV of 0.8525 took 8 runs and 122 transactions.
  • Gas on Ethereum: each loop round needs several transactions. A real-money session paid $54.39 of gas on a $500 deposit.
  • Issuer risk: the PT pays its full value at maturity only if the underlying stablecoin and Pendle market work as designed.

Headline result

Illustrative yearly yield of a 3x loop at 18 Nov prices*: 15.80%. PT-reUSD-10DEC2026 at 3x, with the Morpho USDC loan at its spot rate of 9.59%

  • Plain PT: 11.66%
  • 2x loop: 13.73%
  • 3x loop: 15.80%
  • 4x loop: 17.87%

Yield = PT yield + (loop − 1) × (PT yield − loan rate), before trading costs and gas.

Illustrative 3x yield, loan rate range*: 12.76% to 15.80%

  • PT yield: 11.66%
  • Loan, 7-day average: 11.11%
  • Loan, spot: 9.59%
  • Costs and gas: Not included

The low end uses the loan's 7-day average rate of 11.11%. That is the yield if the rate rises after entry. The agent enters only at a spread of 2 points or more. It leaves when the 6-hour mean and the spot loan rate pass the PT yield, or the spot rate is 5 points over it. The exit must also pay back. The high end uses the spot rate of 9.59%. Both ends are before trading costs and gas. 3x is the loop size of the harness cycle. The agent sets the size for each market.

* Illustrative arithmetic on one market snapshot (PT-reUSD-10DEC2026, 21 days to maturity, Morpho USDC loan, 18 Nov 2026 12:11 to 12:23 UTC). The agent would not buy this market, because it enters only markets with 30 days or more to maturity. It also leaves a loop 7 days before maturity. This is not a backtest and not a forecast. Rates change every block.

Strategy

A PT trades below its value at maturity. The discount is a fixed yield for a holder who keeps the PT to maturity. A loop adds to that yield when the PT yield is higher than the loan rate. Idle USDC of $5,000 or more can earn the lending yield of a vault while the agent waits.

Illustration. The PT discount goes from Pendle into PT value at maturity. The loop spread goes from the Morpho loan into extra PT, while the PT yield is higher than the loan rate. Vault yield goes from a lending vault into parked USDC while the money is idle.

How a loop earns

In each loop round the agent borrows stablecoin against the PT and buys more PT. The yield of the extra PT, less the loan interest, adds to the plain PT yield.

  1. The agent scans Ethereum PT markets and selects the market and loan size with the highest estimated profit after entry and exit costs.
  2. It buys the PT with USDC through Pendle, at a price impact of 0.5% or less.
  3. It supplies the PT to the lender as collateral.
  4. It borrows only when the PT yield is at least 2 points above the loan rate.
  5. It buys more PT with the loan and supplies it, until the loop reaches its planned size.
  6. It checks the position every 5 minutes and holds the PT to maturity.

The exit and its safety rules

The agent removes the debt when a risk rule triggers or 7 days before maturity. Step 1 makes this exit safe at the real lender's limits.

  1. It reads the lender's own LTV and oracle price before each withdrawal.
  2. It withdraws PT to 2 points under LLTV, or to 0.5 point under LLTV when the loan is at, above or near that target.
  3. If the lender refuses a withdrawal, it halves the amount, up to 3 times in one run.
  4. It sells the PT for the debt plus a 0.2% repay margin and repays the full debt.
  5. Before each step it checks that the wallet holds enough ETH for the fees, and waits if not.
  6. After 3 failures of one step in a row, it logs an alert, then repeats it each hour.
  7. After a full exit, it converts the rest to USDC and selects a market again.

Gas rules of step 2

In a real-money session the original agent sent 186 transactions and paid $54.39 of gas in 12.6 days. Step 2 makes each voluntary action pay for its gas.

  1. The agent prices gas at the live price, or at the 75th-percentile base fee of the last 1,024 blocks if that is higher.
  2. It takes a voluntary action only when its expected gain is more than 2 times its gas and price impact.
  3. At entry it also counts the exit: the rounds that repay the loan and the price impact of the sale.
  4. It makes no purchase whose gas is more than 2% of the purchase.
  5. Voluntary actions wait while the base fee is above the 90th percentile of the last 1,024 blocks, with a 1 gwei minimum. Risk exits never wait.
  6. It opens no new loan unless the wallet keeps the ETH for the full exit at a 2.4 gwei base fee.
  7. It repays a loan for cost when the 6-hour mean rate and the spot rate pass the PT yield on 2 reads in a row. A spot rate 5 points over the PT yield on 2 reads also counts.
  8. If a check fails between borrowing rounds, it stops borrowing and repays the unspent loan money. It keeps the loop.

Idle money

Idle USDC can earn the lending yield of a vault while the agent waits for a PT purchase.

  1. With $5,000 or more of idle USDC, the agent checks that 7 idle days of yield pay back 2 times the round-trip gas.
  2. It then deposits the USDC in the vault with the best 30-day base rate of 3 vaults, after one maximum approval.
  3. It counts parked money in its scan, and takes it out only for a PT purchase that earns more than parking.
  4. It moves to a better vault only after 2 reads 6 hours apart and a 30-day gain over 3 times the gas. It moves at most once in 7 days.
  5. It takes the money out at once on a blocked exit, a 1-day TVL drop of 25% or a disabled vault.
  6. On Close Now it takes all parked money out before it reports the agent closed.

Key facts

  • Holds: One PT maturity at a time
  • Starts with: USDC on Ethereum
  • Buys on: Pendle
  • Borrows on: Morpho (Aave in code)
  • Leverage: Market-dependent
  • Checks: Every 5 minutes
  • Costs: Interest, swaps and gas
  • On unwind: Return to USDC
  • Idle USDC: Parked from $5,000
  • Parks in: Morpho or Aave vaults
  • Close Now: Exit, unpark, no re-entry

Source: the agent's description and its code.

Parameter choices

Loop exit 7 days before maturity

The agent repays the loan 7 days before maturity and keeps the PT. After maturity, loan rates jump and PT lending markets go to 100% utilisation. In a study of 155 PT lending markets, the median market's highest rate in the 30 days after maturity was 14.2%. Of the 155 markets, 86 more than doubled their rate. After maturity the PT earns no more yield, so all of that interest is a loss. An exit takes several runs and can stall. A real-money session's exit was stuck for 2.5 days. 7 days is the exit rule of PT Multiply, an earlier agent, and leaves time to finish the exit before maturity.

  • Loop exit: 7 days before maturity
  • PT after the exit: Kept to maturity

Rates after maturity: a study of 155 PT lending markets.

Withdrawal margin 2 points

The agent withdraws PT only to 2 points under the lender's LLTV, at the lender's oracle price. The loan stays at that LTV until the agent sells PT and repays. At LLTV 0.86, 2 points leaves room for an oracle price fall of about 2.3%. The original code sized each withdrawal to LLTV × 0.995 at Circuit's price, 0.5% above the oracle. With that rule, 705 runs failed over 2.5 days. In the F1 replay the new rule reached debt 0 in 2 runs, with a highest lender LTV of 0.8399.

  • Withdrawal target: LLTV − 2 points
  • Price used: Lender's oracle
Fork replayStartOriginal codeNew code
F1 stuck exitLTV 0.752, LLTV 0.86Lender refuses the withdrawalDebt 0, 2 runs, 22 tx
F4 near liquidationLTV 0.8525, LLTV 0.86Lender refuses the withdrawalDebt 0, 8 runs, 122 tx

Two fork replays run on forks of Ethereum at real blocks of a real-money session, with the real Morpho market. The second adds a borrow to the first one's state. The highest lender LTV during the exit was 0.8399 in the first and 0.8549 in the second. The first keeps 493.19 PT after the debt is 0.

Narrow margin 0.5 point

When the loan is at or above 0.5 point under the 2-point target, the agent withdraws to 0.5 point under LLTV. The agent exits when the LTV reaches LLTV × 0.99, which is 0.8514 at LLTV 0.86. That LTV is above the 2-point target of 0.84, so with the 2-point target the agent could withdraw nothing in that exit. 0.5 point under LLTV (0.855) is above the exit LTV and under LLTV. The agent uses the narrow target only on the lender's own figures. Without the lender read it keeps the 2-point target, so it withdraws nothing from a loan above that target until the read works again.

  • Used when: At or above target − 0.5 point
  • Narrow target: LLTV − 0.5 point

In the F4 replay the loan started at a lender LTV of 0.8525 and reached debt 0 with a highest LTV of 0.8549.

Price margin 2% without the lender read

When the agent cannot read the lender's LTV, it uses Circuit's LTV with a 2% price margin. Circuit's LTV follows the Pendle market price. That price was 0.5% and 1.3% above two of the three USD3 oracles. The third oracle, a Pendle time-weighted average price (TWAP), was at the market price. 2% covers the largest gap, 1.3%, with 0.7% to spare. In a harness test, a withdrawal sized this way passes the lender's check.

  • Price margin: 2%
  • Observed gap: 0% to 1.3%

Up to 3 halvings

When the lender refuses a withdrawal, the agent halves the amount and tries again, up to 3 times in one run. The lender refuses in simulation, so the agent sends no transaction for a refused try and pays no gas. Each halving leaves more margin. After 3 halvings the try is one eighth of the first amount. In the next run, 5 minutes later, the agent reads the lender again and starts from the full size. Without halvings, the original agent repeated the same refused size for 705 runs in a real-money session.

  • Halvings in one run: 3

Repay margin 0.2%

The agent sells PT for the debt plus 0.2% and repays the full debt. Circuit's debt figure can leave out the interest since its last snapshot. 0.2% covers about 7 days of that interest at a 10% yearly loan rate. In the F1 and F2 replays the repay cleared the debt to 0. For the LTV check the agent adds interest since Morpho's last update, at a 50% yearly cap, plus 1 basis point.

  • Repay margin: 0.2%
  • Interest cap, LTV check: 50% a year
  • Extra debt, LTV check: 1 basis point

The original code repaid the debt amount from an old snapshot and left a small debt behind.

Fork replayStartOriginal codeNew code
F2 USDT repayLTV 0.881, LLTV 0.915Circuit's 8 Nov repay plan reverts (fixed by Circuit)Debt 0, 2 runs, 21 tx

A fork replay runs on a fork of Ethereum at a real block of a real-money session, with the real Morpho market and Circuit's current repay approval. The highest lender LTV during the exit was 0.8949.

ETH check before each step

Before each step the agent checks that the wallet holds the real fee of each transaction plus a reserve. The reserve is 1 maximum cost at exit and 2 at entry, at Circuit's fee rule. The second cost at entry covers Circuit's low-ETH warning, which stopped 29 runs in a real-money session. At exit the agent leaves out this second cost, so it can start an exit with less ETH. If the wallet holds less, it waits with one log line.

  • Exit reserve: 1 maximum cost
  • Entry reserve: 2 maximum costs
  • Fee rate, maximum: 2 × base fee + tip
  • Gas, maximum: Estimate + 50%
TransactionGas units
Approve60k
Supply180k
Borrow260k
Withdraw260k
Repay200k
Stablecoin swap (Circuit)400k
Pendle buy or saleQuote's own estimate

At Circuit's refusal on 8 Nov 22:13 UTC the wallet held 0.008571 ETH and Circuit needed 0.009593 ETH. For an exit sale of 1.03M gas the agent checks for 0.01763 ETH, so it waits and does not fail.

Fork replayStartOriginal codeNew code
F3 no ETHAs F1, 0.000003 ETHReal-money session: 572 runs failed with no ETHWaits 3 runs, then debt 0

F3 is the F1 state with 0.000003 ETH in the wallet. The agent waits 3 runs. After ETH arrives, it reaches debt 0.

One approval per token

The agent sends one maximum approval per token to the Pendle router, after it reads the current approval from chain. A 3x loop of 10,000 USDC in and out sends 2 approvals to the Pendle router. The original rule sends 16. Circuit adds its own approval before each repay.

  • Pendle approvals, 3x cycle: 2
  • Original rule: 16
  • Agent actions, 3x cycle: 24

In a real-money session, 101 of 186 transactions were approvals, Circuit's repay approvals included.

Stuck alert after 3 failures

After 3 failures of one step in a row, the agent logs the step, the last error and where the money waits. It repeats the alert each hour. Circuit showed the 705 stuck runs to the user as its own temporary problem. The original agent logged only "This check could not finish". 3 failures in a row is 15 minutes at the 5-minute check. One failed run does not raise the alert. A stuck exit like the one in the session shows within 15 minutes, not after 2.5 days.

  • Alert after: 3 failures
  • Repeat: Each hour (12 runs)

Payback factor 2

A voluntary action goes only when its expected gain is more than 2 times its gas and price impact. This covers each borrowing round, a PT buy, the exit for cost and parking. In a real-money session the original agent chose loops that earned $1.35 to $2.70 more than no loan. Its first loop entry paid $18.14 of gas to earn $2.70 more than no loan. On the same rate and price path, the step-2 agent sends 2 transactions instead of 186. At $500 no loop pays back, so the agent buys plain PT once and holds it.

  • Payback factor: 2
  • Gas price used: Live or 75th percentile
Real-money session, $500ActualSession replay
Transactions1862
Approvals1011
Swaps271
Gas$54.39$1.11
Loop entries30
Voluntary exits30
Session replay equityTransactionsGasLoopExits
$5002$1.11None0
$10,00020$8.83About 3.6x0
$100,0008$3.351.21x0

The session replay runs a real-money session's rate and price path, 5 to 18 Nov, through the step-2 code every 5 minutes. It mocks Pendle, the lender and the wallet. Actual gas is at the daily ETH price. At $100,000 the 2%-of-pool rule caps the loop at 1.21x. The session replay does not move the Morpho rate for that loop.

Exit cost priced at entry

The entry test counts the exit: the rounds that repay the loan and the price impact of the sale. The original agent left exit gas and price impact out of its entry test. In the session replay, the agent bought plain PT only when the gain passed: $5.89 against 2 times $2.88 of gas and closing cost.

  • Entry test counts: Entry and exit costs

In the session replay the scans at 21:00 and 22:00 UTC on 5 Nov found no position. The buy would have gained an estimated $1.86, then $2.68, against $4.04, then $3.22, of gas and closing cost.

6-hour mean rate on 2 reads

The agent repays a loan for cost only when the 6-hour mean rate and the spot rate pass the PT yield. Both must hold on 2 reads in a row. The spot rate alone counts only when it is 5 points over the PT yield. The exit then goes only when the interest it saves until the 7-day exit is more than 2 times its gas and price impact. Re-entry uses the same 6-hour mean on 2 reads. Step 2 removes the 97% utilisation exit, because the rate rule prices a busy market.

  • Rate window: 6 hours
  • Reads in a row: 2
  • Spot rate alone: 5 points over PT yield
  • Utilisation exit: None (was 97%)
Real-money sessionOriginalStep 2, session replay
8 Nov, exit 1Exit at 97% utilisation, 50 tx, $23.14Keeps the loan, 0 tx
11 Nov, exit 2Exit, 5 tx, then 4 tx for a small debtRepays unspent cash, 2 tx, $0.19
14 Nov, exit 3Exit at 16.35% spot, 31 tx, $4.16Keeps the loan, 0 tx

Each step-2 cell starts the step-2 code from the session's real position and runs it on the same path in the session replay. On 14 Nov the 6-hour mean rate was 9.84% against a PT yield of 15.00%. On 8 Nov the 6-hour mean was 5.47% against 15.44%.

Gas cap at the 90th percentile

Voluntary actions wait while the base fee is above the 90th percentile of the last 1,024 blocks, with a 1 gwei minimum. A borrowing round that waits does so in hold, where every risk rule runs. Risk exits never wait. On 18 Nov the 7-day median base fee was 0.18 gwei and the 90th percentile 0.71 gwei.

  • Wait above: 90th percentile
  • Minimum cap: 1 gwei
  • Risk exits: Never wait

Size floor 2% of the purchase

The agent makes no purchase whose gas is more than 2% of it. In the step-2 production check, the rule fired on both borrowing rounds: a $99.96 purchase needed $4.48 of gas. With the rules of the agent, a $200 position borrows nothing.

  • Gas, maximum share: 2% of the purchase

The production test build of the agent logged this rule but did not stop on it, so that a small loop could open.

Exit ETH reserve at 2.4 gwei

The agent opens no new loan unless the wallet keeps the ETH for the full exit at a 2.4 gwei base fee. 2.4 gwei was the 7-day 99th percentile on 18 Nov. In a real-money session, 572 runs failed with no ETH.

  • Exit reserve base fee: 2.4 gwei
  • Applies to: Each new loan

In the step-2 production check, the wallet held 0.0152 ETH before the borrow, and the check passed.

Parking floor $5,000

The agent parks idle USDC of $5,000 or more when 7 idle days of yield pay back 2 times the round-trip gas. At $5,000 that covers the Aave round trip at the 7-day 90th-percentile gas price. A switch to a better vault needs 2 reads 6 hours apart and a 30-day gain over 3 times its gas. It also needs 7 days since the last move.

  • Parking floor: $5,000
  • Payback, 7 idle days: 2 × round trip
  • Vaults: Steakhouse, Gauntlet, Aave
  • Share of vault cash: 5% maximum
  • Vault TVL: $50M minimum
  • Switch gain: 3 × gas, 30 days
  • Forced exit: TVL −25% in 1 day
  • Close Now: Takes parked money out
Gas unitsSteakhouseGauntletAave V3
Approval gas55,90655,90655,906
First deposit gas416,566378,340183,198
Full redeem gas383,694345,468166,385
Planned gas, each leg750,000750,000300,000 to 375,000

A fork of Ethereum at block 26477700 ran the agent's own vault calls on each vault: park, top up, take out part, Close Now. Each vault paid back at least the 120,000 USDC in. The agent plans more gas than the receipts, so it parks less often.

Policy numbers of the original agent

These values come from the original agent's code. The highest LTV at entry and the exit LTV follow Pendle's health bands for each market. On 18 Nov every market had a green band of 0.03 and a yellow band of 0.01. These give LLTV × 0.97 and LLTV × 0.99. Steps 1 and 2 keep these values. Step 2 removes only the 97% utilisation exit.

  • Loop spread, minimum: 2 points
  • Price impact, maximum: 0.5%
  • Position, maximum: 2% of the pool
  • Days to maturity, minimum: 30
  • No borrow at utilisation: 95% or more
  • Highest LTV at entry: LLTV × 0.97
  • Exit at LTV: LLTV × 0.99

Risks

  • Liquidation: a fall of the PT oracle price raises the lender LTV. At LLTV 0.86 or 0.915 the lender can sell the PT. The agent exits when the LTV reaches LLTV × 0.99.
  • Exit rounds: in each exit round the agent first withdraws PT. This raises the lender LTV to 2 points under LLTV. When the loan is at, above or near that target, the agent withdraws to 0.5 point under LLTV. The LTV stays there until the agent sells PT and repays. In the F4 replay the highest lender LTV was 0.8549, against an LLTV of 0.86. An oracle price fall of about 2.3% (0.6% near the limit) in that time takes the loan to LLTV.
  • Loan rate: a loan rate above the PT yield makes the loop lose money. On 18 Nov the reUSD USDC loan was 9.59% spot and 11.11% as a 7-day average against a PT yield of 11.66%. The agent repays only when the 6-hour mean and spot rates stay above the PT yield on 2 reads. A spot rate 5 points over it also counts. So a short rise of less than 5 points costs interest.
  • Rates after maturity: loan rates jump after maturity. In a study of 155 PT markets, the median market's highest rate in the 30 days after maturity was 14.2%. The agent leaves the loop 7 days before maturity.
  • Slow exit: the agent has no one-transaction close. In a fork replay, an exit from a lender LTV of 0.8525 took 8 runs and 122 transactions. Prices can move during that time.
  • Venue connection: a dropped Pendle connection can stop an exit run. On production one exit run failed this way when no debt was left. The next run, 5 minutes later, finished the close. The agent's code now retries a Pendle read after a dropped connection.
  • Parking vaults: parked USDC sits in a Morpho or Aave lending vault. A vault loss, a pause or too little cash in the vault can delay or reduce the money. The agent takes the money out on a 1-day TVL drop of 25% or a blocked exit. It has no exit on a fall of the vault's share price.
  • Gas: Ethereum fees and Circuit's ETH reserve add cost. A real-money session paid $54.39 of gas on $500 and had 572 runs with no ETH. At $1,000 a 4-round loop in and out costs about 15 to 62 days of yield at the 7-day median to 90th-percentile gas price (estimate). Circuit paid a median 3.8 × the base fee in that session, so the cost through Circuit is higher.
  • Market size: the position may be at most 2% of the PT pool. That is $126k on USD3's $6.30M pool and $280k on reUSD's $13.99M pool. The buy and the full exit must each quote at most 0.5% price impact.
  • Lender utilisation: Morpho PT loans were near 90% utilisation on 18 Nov. Above that level the loan rate rises fast. At 95% the agent borrows no more. It has no utilisation exit: it exits on the loan rate.
  • Issuer and venue: the PT, its stablecoin, Pendle, Morpho and the oracle each can fail or pause.
  • Stopping the agent does not unwind the position. Close Now exits and stops re-entry.

Glossary

Terms

  • PT: Pendle principal token. It pays one unit of its asset at maturity and trades below that before maturity.
  • PT yield: The yearly yield of a PT bought now and held to maturity. Pendle calls it the implied APY.
  • Loop: Borrow stablecoin against the PT, buy more PT, supply it, and repeat. 3x means PT worth 3 times the deposit.
  • LTV: Loan-to-value: debt divided by the value of the collateral.
  • LLTV: The lender's liquidation LTV. Above it the lender can sell the collateral.
  • Point: One percentage point, 0.01. The margins use points of LTV, and the loop spread uses points of yearly yield.
  • Oracle: The price feed that the lender uses to value the PT.
  • Utilisation: The share of a lender's cash that is lent out.
  • Approval: A transaction that lets a contract move a token of the wallet.
  • Fork replay: A copy of Ethereum at a past block. The agent's code runs on it against the real lender contracts. The replay emulates Circuit's actions and the Pendle sale.
  • Session replay: An emulated run of the agent's code every 5 minutes on the rates and prices of a real-money session. It mocks Pendle, the lender and the wallet.
  • Harness: Tests that run the agent's code against modelled markets and a modelled Circuit.
  • Gas: The fee unit of Ethereum, paid in ETH. Gas prices are in gwei, one billionth of an ETH per gas unit.
  • Base fee: The fee per gas unit that every transaction in a block pays to Ethereum. A tip comes on top.
  • Percentile: The 90th percentile of the base fee is the level that 90% of recent blocks stay under.
  • Price impact: The loss that a trade causes by its own size against the market price.
  • Payback test: The check that a voluntary action's expected gain is more than 2 times its gas and price impact.
  • Parking: A deposit of idle USDC in a lending vault, where it earns interest until the agent needs it.
  • Vault: A Morpho or Aave contract that lends out deposited USDC and pays interest to its depositors.

Replays and the real-money checks

TestBlock or timeState
F1 stuck exit264157001,971.19 PT, 1,456.57 USDC debt
F2 USDT repay263721461,994.54 PT, 1,733.30 USDT debt
F3 no ETH26415700As F1, 0.000003 ETH
F4 near liquidation26415700As F1 + borrow, LTV 0.8525
ETH check, 8 Nov263730760.008571 ETH
Real money18 Nov 17:23 to 17:52 UTC2 loops: 170 and 169 USDC, 1.50x
Step-1 production check18 Nov 19:24 to 20:00 UTC2 loops: 170 and 169 USDC, 1.50x
Session replay5 to 18 Nov, every 5 min500 USDC, also $10k and $100k
Fork, parking264777003 vaults, 120,000 USDC each
Step-2 production check23 Nov 12:47 to 13:23 UTCParked 400, looped 200 at 1.5x

Model

  • E: Estimate from arithmetic, a harness or an emulated step.

  • V: Verified from chain data, a fork replay with the real lender, or the agent's code.

  • (V) The fork replays run on copies of Ethereum at real blocks of a real-money session, with the real Morpho market and oracle.

  • (E) In the fork replays, Circuit's actions and the Pendle sale are emulated. The sale uses Pendle's on-chain price.

  • (E) The harness runs 156 tests on the final step-2 code, and all pass. On step 1 it ran 131 tests. On the original code, 104 of those pass and 27 fail.

  • (E) The hero yield is PT yield + (loop − 1) × (PT yield − loan rate), on one market snapshot.

  • (E) The session replay runs the final step-2 code once every 5 minutes on the session's rates and prices. It mocks Pendle, the lender and the wallet.

  • (V) The parking fork test runs the agent's own vault calls on a copy of Ethereum at block 26477700, on all 3 vaults.

  • (V) On the final step-2 code, the step-1 fork replays F1 to F4 still reach debt 0.

Model assumptions and validation scope

  • (E) The step-1 values (7 days, 2 points, 0.5 point, 2%, 3 halvings, 0.2%, 3 failures) are set by design; to be calibrated with live data.
  • (E) The step-2 values (2 times, 6 hours, 2 reads, 5 points, 2%, 2.4 gwei, $5,000) are set by design. They are to be calibrated with live data.
  • (E) The emulated sale uses about 36k to 54k gas, against about 600k for a real Pendle router sale. So the F4 gas count is low. A real exit of the same 122 transactions would use more gas and ETH.
  • (E) In the fork replays the oracle and the Pendle price stay at the fork block's values. So the fork replays do not test an exit round against a price move.
  • (E) The days-of-yield gas figure uses a 7% yield and public gas prices (7-day median 0.18 gwei, 90th percentile 0.71 gwei), not the price Circuit pays.
  • (V) The real-money test ran on a test build of the agent. The build used one market, PT-reUSD-10DEC2026, and allowed loops from 14 days to maturity.
  • (V) The test build relaxed the profit and 2-point spread rules, so that a 1.50x loop opens at 170 USDC. Every risk rule and exit path is the new code.
  • (E) The real-money test did not exercise the halvings, the narrow margin, the price margin or the ETH wait. It also did not exercise the stuck alert, the 7-day exit or a USDT loan. The agent exited both times on Close Now and never on a risk rule.
  • (V) The step-1 production check used a second test build of the agent with the same changes, on a ring-fenced Circuit test account. The build opened 1.50x loops of 170 and 169 USDC.
  • (V) On production the test build borrowed USDT in the second loop and repaid it in full. The stuck-alert counter counted 1 failure, then cleared.
  • (V) The production test build ran without the retry of the Pendle read. The retry came into the code after the check.
  • (E) The step-1 production check did not exercise the halvings, the narrow margin, the price margin, the ETH wait, the stuck alert or the 7-day exit. The test build exited both loops on Close Now and never on a risk rule.
  • (V) The step-2 production check used the production test build of the agent, rebuilt from the step-2 code. It kept one market and loops from 14 days. Its loops went to at most 1.5x. The loop took half the money.
  • (V) The test build's first scan waited 10 minutes, so its first run parked. Its parking floor was $20, with no payback margin.
  • (V) The test build logged the profit, payback and 2% size rules but did not stop on them. Every risk rule, the gas cap and the exit ETH reserve ran as in the agent's code.
  • (E) The step-2 production check did not exercise the 6-hour exit, re-entry, a vault switch, a forced exit of parked money or a gas wait.
  • (E) It also did not exercise an exit ETH reserve stop, a new vault deposit while a loan is open, or the Aave and Gauntlet vaults.
  • (E) The session replay feeds the session's rates and prices. At $100,000 a loop would move the Morpho rate, and the replay does not model that.
  • (E) Where the session logs have no rate, the session replay uses hourly rates. It misses spikes shorter than one hour.
  • (E) The session replay prices buys and sales from 27 session quotes, not from Pendle's live routing. It pays the base fee plus 0.60 gwei.
  • (E) The session replay holds 1 ETH in the wallet and does not model Circuit's ETH check. It offers one market, USD3.
  • (E) No session replay run reaches the $5,000 parking floor, so the session replay does not test parking. Its profit and loss is an estimate at the mid price.
  • (E) The session replay leaves out the faults of the session and Circuit's capacity errors. Each exit probe starts with an empty 6-hour rate window.
  • (E) The Aave and Euler paths run only in the harness.
  • (E) The hero is arithmetic on one snapshot of one market, before trading costs and gas. It is not a backtest.
  • (E) On 18 Nov no Ethereum PT market passes the agent's own rules for a loop. None passes them for a plain buy of $589 or more. The 30-day rule is one cause. The hero market is an illustration.
  • (E) The policy numbers keep the original agent's values. Step 1 did not test or calibrate them. On 18 Nov every live loop market fails the 30-day rule or the rule that the PT redeems in USDC or USDT. The 30-day rule excludes PT-reUSD-10DEC2026 (21 days left) and PT-USD3 (28.5 days left). The 2%-of-pool cap is 4 to 40 times stricter than the measured pool depth.
  • (E) Without the lender read, the agent withdraws nothing near the limit until the read works again. In every fork replay the agent had the lender read.

Tests of each rule

RuleHarness or replayReal money
Withdrawal marginF1, F4Both checks
Narrow marginF4Not yet
Price marginHarnessNot yet
HalvingsHarnessNot yet
Repay marginF1, F2Both checks, USDT too
ETH checkF3, 8 NovBoth checks, no wait
ApprovalsHarnessReal money
Stuck alertHarness1 failure, cleared
Loop exit, 7 daysHarnessNot yet
Payback factorHarness, session replayLogged, not enforced
Exit cost at entryHarness, session replayLogged, not enforced
6-hour mean exitHarness, session replayNot yet
Gas capHarness, session replayNo wait
Size floor 2%HarnessLogged, not enforced
Exit ETH reserveHarnessPassed, no stop
ParkingFork, 3 vaultsStep-2 production
Vault switch, forced exitHarnessNot yet
Close Now unparkFork, 3 vaultsStep-2 production

Fork replay: the rule ran on a fork with the real lender. Harness: the rule ran in the test harness only. Real money: the rule ran in the real-money test. Both checks: it ran in the real-money test and the step-1 production check. On production the stuck-alert counter counted 1 failure and cleared. Session replay: the step-2 code on the rates and prices of a real-money session. Step-2 production: the rule ran with real money in the step-2 production check. Logged, not enforced: the test build of the agent logged the rule but did not stop on it.