Get vault position

Get vault position on Extra Finance

Base
Base

Reads onchain state

Reads an Extra Finance farming position through the position manager's getVaultPosition. The vault reports the position's manager, whether it is open and has a range stop armed, when it opened, what was first invested of each token and the liquidity it first added, what it holds now of each token in the pair and beside it, its staked liquidity, what it owes of each token with interest accrued to the block, the borrowing indexes that interest is accrued at, and its range-stop band in the first token per whole second token. Reach for it to read the exact debt before a repay, to value a position from what it holds less what it owes, or to require a minimum of either token after an investment.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More on Extra Finance · 15