MaatOracleGlobalPPS
MAAT utilizes various strategies across multiple chains, making it challenging to ensure consistent exchange rate between yield bearing tokens and original assets. To solve this, we introduced a global price per share (PPS), which is calculated off-chain by aggregating assets and shares across all chains.
To prevent arbitrage opportunities, we use two types of PPS: the previous PPS and the current PPS. When minting shares, we use the current PPS, and when burning shares, we use the previous PPS.
Write methods
initPPS
Initializes the PPS for a vault, call once after deploy new vault.
Params
vault
address
Address of the vault
updateGlobalPPS
Set the PPS for vaults
Params
vaults
address[]
Addresses of vaults
newPricePerShare
uint112[]
New PPS for vaults
Read methods
getPrevGlobalPPS
Get the previous global PPS for a vault
Params
vault
address
Address of the vault
Returns
pps
uint
Previous global PPS for the vault
getGlobalPPS
Get the current global PPS for a vault
Params
vault
address
Address of the vault
Returns
pps
uint
Current global PPS for the vault
Last updated