Skip to content

Conversation

cgewecke
Copy link
Contributor

@cgewecke cgewecke commented Sep 30, 2021

Adapts PerpV2's ClearingHouse test fixture for set-protocol-v2

Some differences:

  • using uniswapV3 sdk (and JSBI) to encode the square root price for the vAMM
  • replace smocked chainlink aggregator with ChainlinkAggregatorMock contract
    • we can't use smock because it only works with the in-process hardhat network
    • we use localhost / may want to run our tests on arbitrum testnet at some point because its architecture is substantially different than ethereum-evm (despite their compatibility)
  • have namespaced the external Perp ABIs to avoid conflicts in the typechain folder with other protocols (for example, both PerpV2 and Yearn have an ABI for Vault)

TODO

@cgewecke cgewecke merged commit 3704b0c into master Oct 21, 2021
@cgewecke cgewecke deleted the chris/perp-fixture branch October 21, 2021 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants