beefyfinance / beefy-contracts

Public repo for the community devs to advance the Beefy protocol.
https://app.beefy.finance
175 stars 163 forks source link

Update ETH Reward Pool #240

Closed kexleyBeefy closed 10 months ago

kexleyBeefy commented 11 months ago

Fee Batch Beefy fees are sent to the Fee Batch to be split up between the treasury and the BIFI reward pool. The new Fee Batch uses the new Beefy Swapper contract to convert ETH into any other tokens before distributing and notifying the reward pool.

Reward Pool The new reward pool can handle multiple rewards and can be notified with new rewards either by the Fee Batch or a manager. Reward tokens are pulled from the notifier, a change from the existing contract.

Oracle On-chain oracle which uses chainlink feeds or AMM TWAPS. Price calculation logic is delegated to sub oracles, encoded data is stored on the central oracle.

Swapper Centralised swapper that can handle swapping between any ERC20 tokens. Routing and data is set by the owner and is stored for all future swaps. The oracle is used to calculate minimum amount out from swaps.