yearn / veYFI

Voting YFI
75 stars 38 forks source link

feat: remove curve oracle from redemption contract #232

Closed 0xkorin closed 10 months ago

0xkorin commented 10 months ago

Previously the YFI price was taken as max(chainlink_price, curve_price), this PR changes it to chainlink_price only

0xkorin commented 10 months ago

CI is timing out but all tests pass locally:


================================================================================================ test session starts =================================================================================================
platform darwin -- Python 3.11.4, pytest-7.4.3, pluggy-1.3.0
rootdir: .../veYFI
plugins: eth-ape-0.6.26, web3-6.11.4
collected 59 items
INFO: Starting 'anvil' process.
INFO: Connecting to existing Geth node at https://...

tests/functional/test_gauge.py .....                                                                                                                                                                           [  8%]
tests/functional/test_gauge_reward_distribution.py .......                                                                                                                                                     [ 20%]
tests/functional/test_redemption.py ................................                                                                                                                                           [ 74%]
tests/functional/test_ve_yfi_decrease.py ....                                                                                                                                                                  [ 81%]
tests/functional/test_ve_yfi_rewards.py ..                                                                                                                                                                     [ 84%]
tests/functional/test_voting_escrow.py .........                                                                                                                                                               [100%]

=========================================================================================== 59 passed in 322.16s (0:05:22) ===========================================================================================
INFO: Stopping 'anvil' process.