Price oracle

The bonding contract needs to calculate the discount for the bonded USDC tokens. To know the current price of BRO, a time weighted average price (TWAP) oracle of the BRO-USDC pool on Trader Joe is used. The TWAP oracle is updated every X minutes according to its config. The oracle price is updated each time somebody bonds, so that the user always has the latest average price for his bonding operation.
Last modified 5mo ago