Commit Graph

7 Commits

Author SHA1 Message Date
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
afeb5fb996 Remove _usePermit function
Just use a simple check if deadline is set or not.

Fixes ABDK CVF-34 and CVF-35.
2021-05-20 14:47:10 +01:00
Jason Raymond Bell
5b45be6a44 Don't ignore return value of withdraw
Fixes MixBytes Warning 4.
2021-05-20 14:38:24 +01:00
Jason Raymond Bell
d26b1beb68 Fix _getDecimals function
Added a limit on number of decimals and changed return type to uint8.

Fixes MixBytes Warning 5 and ABDK CVF-30.
2021-05-20 14:14:51 +01:00
Jason Raymond Bell
b13a01d8b8 Rename _pullAToken function
Fixes MixBytes Comment 4.
2021-05-20 13:45:50 +01:00
Jason Raymond Bell
fe05ceccd6 Use safeTransfer for rescueTokens
Fixes MixBytes Warning 3.
2021-05-20 13:40:55 +01: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