ditto-lab / ditto

NFT Future protocol
MIT License
60 stars 3 forks source link

Uni v3 style oracle #58

Closed 0xbok closed 1 year ago

0xbok commented 1 year ago

reference implementation: https://github.com/Uniswap/v3-core/blob/main/contracts/libraries/Oracle.sol

0xbok commented 1 year ago

weird that the tests are failing. resolved

0xbok commented 1 year ago

@calvbore a few tests blocked due to https://github.com/foundry-rs/foundry/issues/3437. Are you able to reproduce this bug? edit: was indeed a bug, but not what I initially thought. I have added a new mock contract OracleWrapper to test reverts.