This bounty is no longer available
Web3 DAO | strips-finance Logo

Maker DAI lenging APY calculation.

Organization

strips-finance

Deadline

in over 262 years

Status

ENDED

209.5 USD

INSTRUCTIONS

Implement Maker DAI lending APY calculation using mainnet fork.

What is "APY" - yearly compounded interest rate that the lender of MAKER will receive as a profit.

The current repo already have all settings for fork. Default hardhat network automatically use mainnet fork.

What need to be done:

Supply DAI to Maker
Track profit each 10 minutes (by emulating unstake profit on fork mainnet)
Provide the APY - cumulative yearly rate.

Example of how it could be implemented here: https://github.com/strips-finance/apy/blob/main/test/compoundDraft.ts

Provide similar test file but that calculate APY in the right way.

REQUIREMENT: Need to have a deep understand of Maker APY calculation (from contract's code - not docs) or be ready to research it.