Jason Raymond Bell
258a9be607
Merge branch 'master' into paraswap
2021-06-15 16:52:42 +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
David Racero
4f7ce7e202
Merge branch 'master' into polygon-verifier
2021-05-11 12:55:17 +02:00
sendra
c1c2cffd26
remove try catch as it doesnt catch the implementation exeption
2021-04-26 17:51:39 +02:00
sendra
d36b9fd14c
added other catch
2021-04-26 16:43:21 +02:00
sendra
f5f3adeb0f
removed error from catch so it catches everything
2021-04-26 16:29:30 +02:00
sendra
8b8736dc5a
Back to try catch, but with also 0 address catching
2021-04-26 15:26:36 +02:00
sendra
701c0793ce
fix: merged with master
2021-04-26 12:51:04 +02:00
sendra
60ee0c54eb
fix: added check if incentives contract is 0
2021-04-26 12:39:37 +02:00
sendra
60dc2346c8
fix: added try catch for incentives controller interactions
2021-04-26 12:26:30 +02:00
David Racero
2a19131b7a
feat: Updated to new interface of Incentives Controller
2021-04-21 18:00:00 +02:00
sendra
8000d838a3
Updated to new asset struct interface
2021-04-21 17:45:19 +02:00
sendra
21fc210901
fix: updated interface to last version
2021-04-19 17:17:30 +02:00
Zer0dot
5f817c7c09
fix: removed unused hardhat console import
2021-04-19 11:04:04 -04:00
The3D
94790ecc46
Fixed interface update
2021-04-12 11:10:22 +02:00
sendra
717bb133e1
added unclaimed user rewards
2021-04-08 13:55:01 +02:00
sendra
dc2943f2ec
removed incentives data, as it is hardcoded on client side
2021-04-07 17:44:29 +02:00
sendra
b84a486d10
removed extra external calls that are not needed
2021-04-06 16:17:04 +02:00
David Racero
ab14a0bc9d
Fixed asset borrowing configuration at initialization
2021-03-31 17:39:59 +02:00
sendra
5ba17aa1c1
naming changed to IncentivesUserData
2021-03-30 13:19:47 +02:00
sendra
9ed357662b
added public to incentives controller and price oracle so we can remove getters
2021-03-30 12:42:20 +02:00
sendra
99a0d17de4
reused local vars to not fill stack
2021-03-30 12:39:00 +02:00
sendra
e81ddb4e2f
Added incentives information to UI data provider contract
2021-03-29 17:10:35 +02:00
sendra
2028631ad7
fixed not needed casting
2021-03-26 13:59:49 +01:00
sendra
83a499f299
added incentives emission for a / v /s tokens
2021-03-26 11:08:07 +01:00
sendra
f9cf541be1
Added incentives data to ui helper
2021-03-23 18:52:51 +01:00
Jason Raymond Bell
29772961ac
Simplify ASM for copying revert reason
2021-03-19 00:16:39 +00:00
Jason Raymond Bell
bf635b6d50
Merge branch 'master' into paraswap
2021-03-18 16:46:02 +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
Pierrick Turelier
b7aed31f79
feat(IAToken): add UNDERLYING_ASSET_ADDRESS function
2021-03-15 21:42:33 +01:00
The3D
7f44a0c242
Removed unused param in struct
2021-03-05 10:36:55 +01:00
The3D
eb9077f25e
Refactored interest rate strategies tests
2021-03-01 20:26:08 +01:00
The3D
03dc5370ee
Added initialized events
2021-03-01 18:33:48 +01:00
The3D
bc1a237f34
Added handleRepayment() function
2021-03-01 17:47:27 +01:00
The3D
e735d40a3b
Merge branch 'feat/light-deployments' of github.com:aave/protocol-v2 into feat/light-deployments
2021-03-01 15:58:41 +01:00
The3D
03a410230d
Updated interest rate strategy to generalize fetching of the available liquidity
2021-03-01 15:58:31 +01:00
The3D
77fab5d3bb
Added encoded parameter to reserve initialization
2021-02-26 18:17:10 +01:00
Hadrien Charlanes
1656f1c6a3
Added Weth gateway contract in config, updated deployment
2021-02-22 14:26:05 +01:00
Hadrien Charlanes
dacf441916
Updated Weth gateway contract
2021-02-22 12:30:26 +01:00
Zer0dot
e4f4bb0cdb
Brought branch up to speed with light deployment update
2021-02-18 09:38:13 -05:00