Fee Vaults
Are components where the protocol fees are collected from the FLOOP and (future) CAVIAR product ecosystems
Last updated
Are components where the protocol fees are collected from the FLOOP and (future) CAVIAR product ecosystems
Last updated
The FLOOP Ecosystem has 2 component vaults:
The CAVIAR Ecosystem has no fee vaults set up yet as no products have been launched.
There are three methods anyone can call to get some useful information about arbitrage opportunities:
This method returns the amount of TOKENS of a specific RESOURCE_ADDRESS that are available when swapped for FLOOP. This amount increases over time as protocol fees are collected from the , , and the . manifest:
This method tells you how much FLOOP you need to send for a given RESOURCE_ADDRESS to receive the amount of TOKENS from the RESOURCE_ADDRESS vault, (returned from the get_swap_vault_amount above). This amount of FLOOP decreases over time, encouraging users to empty the fee vaults. manifest:
Finally if you want to send the amount of FLOOP (calculated from get_swap_price) for the amount of TOKENS (calculated from get_swap_price) for RESOURCE_ADDRESS then you want to do a swap! manifest:
To make things a little simpler, we've added an API endpoint where you can see all the resource vaults, their values and the redemptions amounts (FLOOP or CAVIAR) here:
Currently this endpoint is in real time (and we'd like to leave it like that) but if it get's abused we'll cache it every X minutes which would be a shame.