Pendle Leveraged PT Auto Rollover
0x581BEf12967f06f2eBfcabb7504fA61f0326CD9A

What this does

This plug closes a leveraged Pendle PT position on a matured Morpho market and rebuilds it on a later-maturity market. It asks the caller for the expiring Pendle market and lets the solver supply the source Morpho id, destination Pendle market, and destination Morpho id. It fires only after the named market passes expiry, when your debt exceeds 0, and both destination markets pass V6 factory and Chainlink oracle provenance checks. Running it manually risks repaying, redeeming, and re-borrowing across mismatched markets or an unverified oracle.

Actions · 36

  • Get expiry
    Get expiry of
    Reads the expiry timestamp of a Pendle market.
  • Get current timestamp
    Get current timestamp
    Returns the current block timestamp as Unix seconds.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Get tokens
    Get tokens of
    Reads the SY, PT, and YT token addresses of a Pendle market.
  • Expect witness
    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.
  • Get market parameters
    Get market parameters of
    Reads a Morpho Blue market's immutable parameters.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Get account data
    Get data in of
    Reads an address's position in a Morpho Blue market: shares, collateral, debt, and health factor.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • End block
    End block
    Closes the innermost open block, whether a conditional branch or a loop.
  • Expect witness
    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.
  • Check market validity
    Is a valid market
    Asks a Pendle market factory whether it deployed a given market.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Get tokens
    Get tokens of
    Reads the SY, PT, and YT token addresses of a Pendle market.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Get expiry
    Get expiry of
    Reads the expiry timestamp of a Pendle market.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • End block
    End block
    Closes the innermost open block, whether a conditional branch or a loop.
  • Expect witness
    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.
  • Get market parameters
    Get market parameters of
    Reads a Morpho Blue market's immutable parameters.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Check oracle provenance
    Is a Morpho Chainlink oracle
    Asks the Morpho Chainlink oracle factory whether it deployed a given oracle.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Get oracle feeds
    Get the feeds of
    Reads the composition of a Morpho Chainlink oracle: its two base feeds, two quote feeds, and the base and quote vaults.
  • Get oracle
    Get the second TWAP oracle for
    Looks up the Chainlink-compatible oracle Pendle's oracle factory deployed for a market, TWAP window, and oracle type.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • End block
    End block
    Closes the innermost open block, whether a conditional branch or a loop.
  • Flash loan
    Flash loan
    Borrows any token the Morpho Blue singleton holds, fee-free, repaid inside this transaction.
  • Repay
    Repay to
    Repays loan-asset debt to a Morpho Blue market from the socket's balance.
  • Withdraw Collateral
    Withdraw collateral from
    Withdraws collateral from a Morpho Blue market back to the socket.
  • Redeem
    Redeem in for
    Redeems a Pendle position for SY, or through the SY into its accounting asset.
  • Buy
    Buy with on for at least
    Swaps SY for a Pendle market's PT or YT through the router.
  • Supply Collateral
    Supply as collateral to
    Supplies an asset as collateral to a Morpho Blue market.
  • Borrow
    Borrow from
    Borrows the loan asset from a Morpho Blue market against your supplied collateral.
  • End block
    End block
    Closes the innermost open block, whether a conditional branch or a loop.

Related plugs · 8