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.
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.
Allows for transfer of ERC20 token supported by the contract and issues appropriate amount of ipToken in return.
Redeems ipToken for the underlying asset. A fee is charged at this point and accounted to the liquidity pool.
Calculates the current ratio between delegated and all underlying tokens held by the contract