This plug rolls a leveraged Pendle PT position from a matured Morpho Blue market into a later-dated one sharing the same SY and loan token. It asks the caller to name the expiring Pendle market and lets the solver supply the destination market and both Morpho ids. It fires once that market's expiry is at or before block time and the wallet holds collateral. It flash-loans the loan token, repays debt, withdraws and redeems PT, buys new PT, and re-levers, verifying each market, oracle, and the 900-second TWAP feed first.
Actions · 36
Getexpiryof
Reads the expiry timestamp of a Pendle market.
Getcurrenttimestamp
Returns the current block timestamp as Unix seconds.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Gettokensof
Reads the SY, PT, and YT token addresses of a Pendle market.
Expect
Leave a typed hole the solver fills at execution time: an address, a 32-byte key, or a number that may not exist yet when you sign.
Getmarketparametersof
Reads a Morpho Blue market's immutable parameters.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Getdatainof
Reads an address's position in a Morpho Blue market: shares, collateral, supplied assets, debt, and health factor.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Endblock
Closes the innermost open block, whether a conditional branch or a loop.
Expect
Leave a typed hole the solver fills at execution time: an address, a 32-byte key, or a number that may not exist yet when you sign.
Isavalidmarket
Asks a Pendle market factory whether it deployed a given market.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Gettokensof
Reads the SY, PT, and YT token addresses of a Pendle market.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Getexpiryof
Reads the expiry timestamp of a Pendle market.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Endblock
Closes the innermost open block, whether a conditional branch or a loop.
Expect
Leave a typed hole the solver fills at execution time: an address, a 32-byte key, or a number that may not exist yet when you sign.
Getmarketparametersof
Reads a Morpho Blue market's immutable parameters.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
IsaMorphoChainlinkoracle
Asks the Morpho Chainlink oracle factory whether it deployed a given oracle.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Getthefeedsof
Reads the composition of a Morpho Chainlink oracle: its two base feeds, two quote feeds, and the base and quote vaults.
GetthesecondTWAPoraclefor
Looks up the Chainlink-compatible oracle Pendle's oracle factory deployed for a market, TWAP window, and oracle type.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Endblock
Closes the innermost open block, whether a conditional branch or a loop.
Flashloan
Borrows any token the Morpho Blue singleton holds, fee-free, repaid inside this transaction.
Repayto
Repays loan-asset debt to a Morpho Blue market from the socket's balance.
Withdrawcollateralfrom
Withdraws collateral from a Morpho Blue market back to the socket.
Redeeminfor
Redeems a Pendle position for SY, or through the SY into the yield token it holds.
Buywithonforatleast
Swaps SY for a Pendle market's PT or YT through the router.
Supplyascollateralto
Supplies an asset as collateral to a Morpho Blue market.
Borrowfrom
Borrows the loan asset from a Morpho Blue market against your supplied collateral.
Endblock
Closes the innermost open block, whether a conditional branch or a loop.
Related plugs · 8
Not ready to run as it stands: it waits on values or a position of your own.