This PR adds a new adapter that is able to execute trades on ParaSwap in order to repay the user's loan(debt assets) either with/without a flash loan, with the option to repay the entire loan, and option to use permit signature instead of prior approval. It is similar to the existing adapter using only Uniswap, but you can only do one repay at a time.
Unit tests are included, to run them do 'npm run test' inside the Docker container. They include tests to cover the various scenarios using a mock swapper contract and the majority of possible errors
This PR adds a new adapter that is able to execute trades on ParaSwap in order to repay the user's loan(debt assets) either with/without a flash loan, with the option to repay the entire loan, and option to use permit signature instead of prior approval. It is similar to the existing adapter using only Uniswap, but you can only do one repay at a time.
Unit tests are included, to run them do 'npm run test' inside the Docker container. They include tests to cover the various scenarios using a mock swapper contract and the majority of possible errors