Commit Graph

1711 Commits

Author SHA1 Message Date
eboado
56ddeceb94 - Added extra test of repayWithCollateral() on self-liquidation. 2020-09-08 16:25:16 +02:00
The3D
2e8f6ee02c Updating withdrawal tests 2020-09-08 16:14:32 +02:00
eboado
3aa0dbc570 - Added tests of repayWithCollateral(), only for self-liquidation. 2020-09-08 15:05:53 +02:00
The3D
e3c422468d Updated comment 2020-09-08 13:48:33 +02:00
The3D
03767e003f Fixes deposits tests 2020-09-08 13:45:24 +02:00
andyk
4912f3bb73 update tests calculation logic on swap 2020-09-08 13:08:16 +03:00
The3D
a7b6beef48 Initial refactor commit 2020-09-07 17:55:47 +02:00
andyk
aaab81bc15 add hf related test 2020-09-07 16:59:41 +03:00
andyk
212cf76f23 add base tests 2020-09-07 16:48:46 +03:00
andyk
721e73c36e add error from lib 2020-09-07 14:41:27 +03:00
andyk
5e3b6869b5 add check of 0 amountToReceive 2020-09-07 13:00:28 +03:00
andyk
f1d3b8c9d6 add ISwapAdapter interface 2020-09-07 12:54:38 +03:00
andyk
5c28bf5a49 initial implementation of collateral swap method 2020-09-07 12:46:11 +03:00
The3D
027a7e11e8 Removed userIndex 2020-09-05 18:37:48 +02:00
The-3D
23f99d30f0 Merge branch 'feat/27-new-erc20' into 'master'
Feat/27 new erc20

See merge request aave-tech/protocol-v2!36
2020-09-05 16:18:40 +00:00
eboado
819cc65abd Merge branch 'master' into feat/27-new-erc20 2020-09-04 17:10:32 +02:00
eboado
da734aa68a - Refactored ERC20 and adapted derived contracts. 2020-09-04 16:27:35 +02:00
The-3D
0085458da4 Merge branch 'fix/24' into 'master'
Resolve "Gas optimizations"

Closes #24

See merge request aave-tech/protocol-v2!31
2020-09-04 14:05:23 +00:00
The3D
ebdc334c45 Merge branch 'master' into fix/24 2020-09-04 14:52:54 +02:00
The3D
58488158cd Refactored error messages 2020-09-04 12:48:29 +02:00
The3D
7456656b28 Removed useless file 2020-09-04 10:45:03 +02:00
The3D
9aad57978d Merged master 2020-09-04 10:27:32 +02:00
The-3D
c9727646d4 Merge branch 'fix/23' into 'master'
Resolve "FlashLoans V2"

Closes #23

See merge request aave-tech/protocol-v2!30
2020-09-04 08:10:04 +00:00
emilio
78d9d4af74 Removed space 2020-09-03 18:25:50 +02:00
emilio
bb822035a8 Added further test on flashloan for stable rate borrowing 2020-09-03 18:14:39 +02:00
emilio
48438f59f5 Added a new test to check an invalid interest rate mode 2020-09-03 16:29:14 +02:00
David Racero
e2bc6fbc73 Fix tests missing param 2020-09-03 16:24:27 +02:00
emilio
1486cee774 Fixed tests on flashloan 2020-09-03 15:53:18 +02:00
eboado
2cbb1f5714 - Implemented repayWithCollateral() on LendingPoolLiquidationManager. 2020-09-03 15:46:45 +02:00
emilio
db99b6eca6 Merge branch 'master' into fix/23 2020-09-03 15:41:36 +02:00
emilio
16fc0d4971 Updated flashloans 2020-09-03 15:17:46 +02:00
The-3D
b32ee6536c Merge branch '25-refactor-require-msg' into 'master'
Resolve "Refactor of error message on requires"

Closes #25

See merge request aave-tech/protocol-v2!35
2020-09-03 09:22:34 +00:00
pol
07007fa933 Fixed sintax errors 2020-09-03 11:17:49 +02:00
pol
714c2ff3fd Refactored as per the PR comments 2020-09-03 10:33:15 +02:00
pol
288d8f2889 Added LendingPoolLiquidationManager error messages to error lib, and updated tests. 2020-09-02 18:53:39 +02:00
pol
5b5f8ae74a cleaned comments 2020-09-02 18:18:17 +02:00
emilio
ab88aa64bf Fixed merge issues 2020-09-02 18:10:16 +02:00
pol
76b4fc6b2d All tests working. WIP look at old error messages to remove them all 2020-09-02 17:54:34 +02:00
emilio
cf39045573 Merge branch 'master' into fix/23 2020-09-02 17:41:01 +02:00
pol
6122826ef4 fixed getting error codes from error lib 2020-09-02 16:34:15 +02:00
pol
7b4812c956 Moved error messages to error lib 2020-09-02 15:48:38 +02:00
David Racero
84d1ed0cb7 Added migration scripts for Uniswap and Aave with configuration and common tasks 2020-08-31 12:10:40 +02:00
eboado
e0c27fef3f - Moved index update on flashLoan() to before the executeOperation.
- Refactor to remove try..catch.
- Change on _executeBorrow() to not consider liquidityTaken when coming from flash loan.
2020-08-28 16:44:14 +02:00
eboado
e4485f12fe - Refactored logic of repay() to an internal _executeRepay().
-  Initial implementation of flashCollateral() for flash liquidations, repayment with collateral and movement of position.
2020-08-26 16:02:22 +02:00
David Racero
b3896fa4e3 WIP full migrations 2020-08-26 12:38:52 +02:00
pol
dbcd78a098 Updated require message errors with constant string numbers to reduce gas 2020-08-25 17:27:37 +02:00
David Racero
e720236170 Deleted the / from .gitignore types 2020-08-25 17:27:22 +02:00
David Racero
9de0fe2bc3 Fix conflicts. Stable config implementation. Migrate from constants to configuration files per pool. Skip script loads while compilation. 2020-08-25 17:15:27 +02:00
pol
5841e51439 Updated require message errors with constant string numbers to reduce gas 2020-08-25 15:57:54 +02:00
pol
0f5017cc81 Updated require message errors with constant string numbers to reduce gas 2020-08-25 15:51:52 +02:00