Generalized PT Loop Rollover

Ethereum
Ethereum
0x581BEf12967f06f2eBfcabb7504fA61f0326CD9A

What this does

Take expiring pendle market. Take expiring morpho market. Get market parameters of your expiring morpho market. …and 35 more steps.

Actions · 36

  • Get market parameters
    Get market parameters of
    Reads a Morpho Blue market's immutable parameters.
  • Get account data
    Get data in of
    Reads an address's position in a Morpho Blue market: shares, collateral, supplied assets, debt, and health factor.
  • Get expiry
    Get expiry of
    Reads the expiry timestamp of a Pendle market.
  • Get tokens
    Get tokens of
    Reads the SY, PT, and YT token addresses of a Pendle market.
  • Get seconds
    Get seconds
    Returns the seconds since or until a timestamp, relative to block time.
  • Get duration
    Get as seconds
    Converts a count of time units into seconds.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • 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 expiry
    Get expiry of
    Reads the expiry timestamp of a Pendle market.
  • Get seconds
    Get seconds
    Returns the seconds since or until a timestamp, relative to block time.
  • Get duration
    Get as seconds
    Converts a count of time units into 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.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • 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.
  • 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.
  • Get rate
    Get to SY rate in
    Reads the exchange rate of a Pendle market's PT, YT, or LP in its SY via Pendle's oracle.
  • Calculate
    Calculate
    Applies a binary arithmetic operation to two values and returns the result.
  • Calculate proportional value
    Calculate of
    Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
  • Sell
    Sell on for at least
    Swaps a Pendle market's PT or YT for SY through the router.
  • Get rate
    Get to SY rate in
    Reads the exchange rate of a Pendle market's PT, YT, or LP in its SY via Pendle's oracle.
  • Calculate
    Calculate
    Applies a binary arithmetic operation to two values and returns the result.
  • Calculate proportional value
    Calculate of
    Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
  • 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.
  • End block
    End block
    Closes the innermost open block, whether a conditional branch or a loop.
  • End block
    End block
    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.