Commit Graph

325 Commits

Author SHA1 Message Date
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
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
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
pol
dbcd78a098 Updated require message errors with constant string numbers to reduce gas 2020-08-25 17:27:37 +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
pol
abe967c707 Updated require message errors with constant string numbers to reduce gas 2020-08-25 15:32:22 +02:00
Ernesto Boado
cd09d04d30 Merge branch 'fix/lp-gas-optimization' into 'master'
Small lending pool gas optimization

See merge request aave-tech/protocol-v2!34
2020-08-25 12:59:12 +00:00
eboado
5435620e41 - Added tests to cover flashLoan(). 2020-08-25 14:50:07 +02:00
eboado
75da6e0fba - Adapted flashLoan() for partial debt opening. 2020-08-25 12:55:05 +02:00
andyk
b0ddb815b8 small lending pool gas optimization 2020-08-25 13:37:38 +03:00
Ernesto Boado
eba3b5260f Merge branch 'fix/interest-strategy-styliguide' into 'master'
Refactoring of DefaultReserveInterestRateStrategy to follow the stuileguide

See merge request aave-tech/protocol-v2!32
2020-08-25 09:11:58 +00:00
Ernesto Boado
639a2f2df0 Merge branch 'fix/lending-pool-styleguide' into 'master'
Fixes in lendingpool folder to follow our styleguide

See merge request aave-tech/protocol-v2!33
2020-08-25 09:11:07 +00:00
andyk
4b00cde616 fixes in lendingpool folder to follow our styleguide 2020-08-25 11:53:58 +03:00
andyk
da5b6738c1 refactoring of DefaultReserveInterestRateStrategy to follow the stuileguide 2020-08-24 15:35:59 +03:00
The3D
dfe865fc76 Removed unused code in tests 2020-08-24 01:46:15 +02:00
The3D
b2d8a9e053 Removed ETH specific logic in tests 2020-08-24 01:41:10 +02:00
The3D
d86aafda0c Fix on the interest rate update 2020-08-24 01:32:46 +02:00
The3D
dce7a73dda Renamed flashloan fee in premium 2020-08-24 01:30:01 +02:00
The3D
928770d9d5 Updated flashloans V2 2020-08-24 01:22:14 +02:00
The3D
e04d1881a1 Removed tests logfile 2020-08-23 18:42:15 +02:00
The3D
d833157cf4 Updated flashloans to transferFrom the receiver instead of checking that the funds where sent back 2020-08-23 18:38:34 +02:00
The3D
9377a137f1 Updated flashloan function 2020-08-23 16:49:23 +02:00
The3D
8e3c1a048b Merge branch 'master' into fix/23 2020-08-23 16:41:35 +02:00
The3D
70eb126b58 Removed ReentrancyGuard from LiquidationManager 2020-08-23 16:35:01 +02:00
The3D
9ad8189966 Removed reentrancy 2020-08-23 16:31:31 +02:00
The3D
3e951e7bcb Removed buidler-gas-reporter 2020-08-23 12:37:21 +02:00
The3D
03ec940109 Changed the indexes and rates type to uint128 2020-08-23 11:13:43 +02:00
The3D
5b7a2f2a55 Optimized debt tokens 2020-08-22 19:33:55 +02:00
The3D
4d054dd56d Optimized MathUtils, ReserveLogic 2020-08-22 13:01:41 +02:00