An open API service indexing awesome lists of open source software.

https://github.com/paraswap/aave-paraswap-test

Tests ParaSwap adapters for Aave
https://github.com/paraswap/aave-paraswap-test

Last synced: about 1 year ago
JSON representation

Tests ParaSwap adapters for Aave

Awesome Lists containing this project

README

          

# Aave ParaSwap adapter tests

Runs tests of ParaSwap adapters created for Aave using the Tenderly fork feature. The adapter is deployed as part of each test, unless the relevant environment variable with its already deployed address is set.

To use, install dependencies with `yarn` and run test scripts in `scripts/` using `node`.

Required to set the following in your `.env` file or environment:

```
TENDERLY_KEY=
TENDERLY_ACCOUNT=
TENDERLY_PROJECT=
# Mainnet
FORK_NETWORK_ID=1
PARASWAP_LIQUIDITY_SWAP_ADAPTER_ADDRESS=0x135896DE8421be2ec868E0b811006171D9df802A
PARASWAP_REPAY_ADAPTER_ADDRESS=0x80Aca0C645fEdABaa20fd2Bf0Daf57885A309FE6
# Polygon
#FORK_NETWORK_ID=137
#PARASWAP_LIQUIDITY_SWAP_ADAPTER_ADDRESS=0x35784a624D4FfBC3594f4d16fA3801FeF063241c
#PARASWAP_REPAY_ADAPTER_ADDRESS=0xE84cF064a0a65290Ae5673b500699f3753063936
# Avalanche
#FORK_NETWORK_ID=43114
#PARASWAP_LIQUIDITY_SWAP_ADAPTER_ADDRESS=0x2EcF2a2e74B19Aab2a62312167aFF4B78E93B6C5
#PARASWAP_REPAY_ADAPTER_ADDRESS=0x935b362EE3E1f342cc48118C528AAbee5118F6e6
```