Commit Graph

1636 Commits

Author SHA1 Message Date
Jason Raymond Bell
258a9be607 Merge branch 'master' into paraswap 2021-06-15 16:52:42 +01:00
Jason Raymond Bell
0ec5e213ef Add AugustusRegistry address 2021-06-15 15:56:25 +01:00
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
9d1cb50d76 Add reentrancy guard to adapter
Fixes MixBytes Warning 2.
2021-05-20 17:36:41 +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
38bec942da Check lengths of all the arrays
Fixes ABDK CVF-5.
2021-05-20 15:00:22 +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
11d0367d3c Explain code to overwrite fromAmount in comment
Fixes MixBytes Comment 1.
2021-05-20 14:00:34 +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
The-3D
53b27235ad
Merge pull request #126 from aave/feat/defender-integration
Add OpenZeppelin Defender Integration
2021-05-18 12:43:18 +02:00
miguelmtzinf
83d2989eb1 fix: Fix grammar typos on commments 2021-05-18 11:40:02 +02:00
miguelmtzinf
34c9bf209e fix: Fix typo of tenderlyRPC for tenderlyNetwork 2021-05-18 10:40:22 +02:00
miguelmtzinf
64d37bcc70 fix: Fix @tenderly/hardhat-tenderly to 1.1.0-beta.5 2021-05-18 09:59:05 +02:00
miguelmtzinf
1d78df4292 fix: Fix ts issue with DRE object 2021-05-17 18:15:04 +02:00
miguelmtzinf
e6684bf268 fix: Fix package-lock json 2021-05-17 18:01:52 +02:00
miguelmtzinf
93f9e6f678 feat: Add DEFENDER env variables to docker yml 2021-05-17 14:36:39 +02:00
miguelmtzinf
329a48cd03 feat: Add defender utils and use of signer 2021-05-17 14:35:21 +02:00
miguelmtzinf
d6f92a6fad feat: Add defender-relay-client dependency 2021-05-17 14:06:48 +02:00
The-3D
2aeb420b61
Merge pull request #104 from aave/fix/101-support-registry-config
fix: kovan deployment scripts
2021-05-14 15:07:40 +02:00
David Racero
9b06eb1477 feat: Improve readability of fork configuration. Support FORK_BLOCK_NUMBER enviroment variable. 2021-05-14 14:47:19 +02:00
David Racero
e15bdec898 feat: remove deprecated task initialize-tokens 2021-05-14 09:39:48 +02:00
David Racero
37ba4765ea fix: solve conflicts from master 2021-05-14 09:26:22 +02:00
The-3D
b4ed523a64
Merge pull request #68 from aave/polygon-verifier
Polygon integration
2021-05-12 12:49:57 +02:00
The-3D
38701827f5
Merge pull request #112 from aave/feat/ui-pool-data-provider-task
Feat/UI pool data provider task
2021-05-12 11:00:22 +02:00
David Racero
8072db2f27 logs: remove unneeded debug log 2021-05-12 10:24:03 +02:00
David Racero
095d5bff90 typo: rename getWrappedNativeTokenddress to getWrappedNativeTokenAddress 2021-05-12 10:23:15 +02:00
David Racero
b7462c6be2 feat: update UiPoolDataProvider task to match other tasks code style. Fix old reference of verifyContract at deployUiPoolDataProvider function. 2021-05-12 10:15:41 +02:00
David Racero
6312f9ad64 logs: organize logs at tenderly-utils.ts 2021-05-12 09:50:24 +02:00
David Racero
009752df4f
fix: typo at console.log 2021-05-12 09:46:05 +02:00
David Racero
51c0ccaca3
Merge branch 'master' into fix/101-support-registry-config 2021-05-11 15:10:32 +02:00
The-3D
e45dff586b
Merge pull request #18 from kartojal/feat/add-compile-prior-tests
Run compile prior running tests at package.json script
2021-05-11 14:04:29 +02:00
David Racero
4f7ce7e202
Merge branch 'master' into polygon-verifier 2021-05-11 12:55:17 +02:00
David Racero
6c0bbadacb
Merge branch 'master' into feat/add-compile-prior-tests 2021-05-11 12:35:15 +02:00
David Racero
50766285b7 misc: do not change LendingPoolConfigurator old style 2021-05-11 11:02:45 +02:00
David Racero
bb729b540f misc: do not change LendingPoolConfigurator old style 2021-05-11 11:02:01 +02:00
David Racero
e6a5ea0378
ci: add env var usage 2021-05-10 18:02:05 +02:00
David Racero
9a699d58c0 misc: remove logs 2021-05-10 15:56:47 +02:00
David Racero
2117e2ca62 misc: remove logs 2021-05-10 15:53:01 +02:00
David Racero
2cdfbbbc5d feat: Added support to fork any chain. Added deployment scripts to Github Actions 2021-05-10 15:34:31 +02:00
David Racero
a89598671f fix: local dev deployment 2021-05-10 10:47:24 +02:00
David Racero
e41a18c33a fix: fixed logic of address provider registration 2021-05-10 10:16:13 +02:00
David Racero
607d3c9a24 tasks: Full migration scripts now deploys independent markets. Added new task to attach a new market to the LendingPoolAddressesProviderRegistry. 2021-05-07 16:59:24 +02:00
David Racero
57cc6579e1 feat: Remove debug logs 2021-05-07 15:18:37 +02:00
David Racero
9b78daa189 fix: fix kovan deployment. Prevent to init tokens without address. Added deployRegistry flag to scripts. 2021-05-07 15:15:15 +02:00
Andrey
644350c18e
Merge pull request #61 from aave/feat/update-dataproviderhelper-incentives
Added incentives data to ui helper
2021-04-29 12:11:51 +03:00
The-3D
4b8fabfca7
Merge pull request #4 from PabiGamito/master
Register mock tokens in json database
2021-04-27 19:28:59 +02:00