Commit Graph

6 Commits

Author SHA1 Message Date
Jason Raymond Bell
4fe36c8fa4 Introduce registry of valid Augustus addresses
Set in constructor of BaseParaSwapSellAdapter and validates before swap.
Created mock registry that only validates one address.
Changed the test fixtures to accomodate registry and added two new tests.
Updated deployment script.
Registry address left as a placeholder in package.json since not known yet.

Fixes MixBytes Warning 1.
2021-05-20 23:25:51 +01:00
Jason Raymond Bell
d8b8d50de8 Use better types than address
Fixes ABDK CVF-6, CVF-7, CVF-16, CVF-17, CVF-31 and CVF-32.
2021-05-20 16:50:20 +01:00
Jason Raymond Bell
bf7b19a181 Add comments to empty constructor bodies
Fixes ABDK CVF-4 and CVF-15.
2021-05-20 15:41:59 +01:00
Jason Raymond Bell
11d0367d3c Explain code to overwrite fromAmount in comment
Fixes MixBytes Comment 1.
2021-05-20 14:00:34 +01:00
Jason Raymond Bell
29772961ac Simplify ASM for copying revert reason 2021-03-19 00:16:39 +00:00
Jason Raymond Bell
242826ded6 ParaSwap adapter for collateral swaps
Complete with unit tests (using a mock AugustusSwapper contract).

Has similar functionality/tests as for existing Uniswap adapter.

Fixed a couple bugs in tests for Uniswap adapters.
2021-03-18 15:44:52 +00:00