Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

0vix as lending provider #244

Closed pedrovalido closed 1 year ago

pedrovalido commented 1 year ago

0vix is a fork of compound with some differences. Their version of calculating rates is based on block timestamp (vs block numbers like on Compound) . Therefore, their function names on their ICToken are named accrualBlockTimestamp, borrowRatePerTimestamp and supplyRatePerTimestamp. I created a ICToken interface with these functions specific to 0vix (plus the ones we need for the rest of the integration). It was also necessary to :

Notes: The protocol is named 0vix with a "zero" which is a headache when creating contract with that name, so an "O" was used instead of a "zero"