Coder Social home page Coder Social logo

aave-paraswap-test's Introduction

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 API key>
TENDERLY_ACCOUNT=<Tenderly account containing the project as seen in URL>
TENDERLY_PROJECT=<Tenderly project name as seen in URL>
# 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

aave-paraswap-test's People

Contributors

colonelj avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aave-paraswap-test's Issues

What does the "fromAmountOffset" stand for?

What does the "fromAmountOffset" stand for? When I look at the augustusFromAmountOffsetFromCalldata from ../src/augustus, I saw the values. But what does all that mean? and why there are values just for "swapOnUniswap", "multiSwap" and others. I mean don't "simpleSwap" need that?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.