IPOR Protocol
Search…
⌃K

Joseph - Liquidity Pool

Joseph is a smart contract responsible for accepting and managing stablecoins used by Milton to underwrite interest rate swaps. It's also responsible for minting and redeeming ipTokens.
Joseph is issued per asset.

Public functions

Function
Notes
calculateExchangeRate
Calculates the exchange rate between ipToken and underlying asset. The calculation takes into account: unrealized PnL - SOAP, holding of the pool (including value held by Stanley from the last rebalancing), and a number of issued ipTokens.
provideLiquidity
Allows for transfer of ERC20 token supported by the contract and issues appropriate amount of ipToken in return.
redeem
Redeems ipToken for the underlying asset. A fee is charged at this point and accounted to the liquidity pool.
checkVaultReservesRatio
Calculates the current ratio between delegated and all underlying tokens held by the contract