Commit Graph

305 Commits

Author SHA1 Message Date
eboado
c531b87703 Merge branch 'master' into feat/36-permit-atoken 2020-09-14 16:02:53 +02:00
eboado
748312cf20 - Added permit() to aToken. 2020-09-14 15:57:11 +02:00
David Racero
5af23057fa Fix conflicts. 2020-09-14 15:53:34 +02:00
The3D
b2ec4dd2fa Renamed totalBorrowsStable, totalBorrowsVariable 2020-09-14 15:13:30 +02:00
The3D
bb4e1b5c4b Fixed errors 2020-09-14 15:09:16 +02:00
David Racero
202ddbdec4 Moved all pausable tests into their own Pausable test suite 2020-09-14 15:02:48 +02:00
andyk
d135c25b39 add borrowRateMode check on credit delegation 2020-09-14 15:41:44 +03:00
David Racero
b8a7237458 Remove whenNotPaused modifier for configurator functions. Added more test cases. 2020-09-14 14:36:12 +02:00
David Racero
ad2581b0a0 Added pausable tests 2020-09-14 13:57:40 +02:00
David Racero
bbc11eb092 Added pausable to Pool actions and aTokens at transfer, triggered by LendingPoolConfigurator. Added basic test to aToken transfer. 2020-09-14 13:03:39 +02:00
andyk
c0c3133763 makecredit delegation per debt token 2020-09-14 13:52:05 +03:00
The3D
d1ffac6380 Merge branch 'master' into fix/34 2020-09-14 11:33:34 +02:00
The3D
a64edb3011 Removed interest redirection leftovers 2020-09-14 11:13:53 +02:00
The3D
dbf1a0b9e7 Merge branch 'master' into fix/34 2020-09-14 09:22:39 +02:00
eboado
7a8a0d6ac5 Merge branch 'master' into 30-collateral-swap 2020-09-14 08:58:37 +02:00
eboado
0911f907a8 Fixes #35 2020-09-13 10:08:14 +02:00
The3D
0d9a18813f Added optimization on mint and burn 2020-09-12 13:18:17 +02:00
The3D
7383fc9786 Merge branch 'master' into fix/29 2020-09-11 16:47:47 +02:00
eboado
f355ae219f Merge branch 'master' into 33-add-native-credit-delegation 2020-09-11 11:25:42 +02:00
eboado
d3f9cd2191 Merge branch 'master' into 32-deposit-on-behalf-of 2020-09-10 21:40:26 +02:00
The3D
73d7ca001c added configurator tests 2020-09-10 13:52:07 +02:00
David Racero
831bc3d0eb Added tests to check repay with collateral when is disabled 2020-09-10 13:05:26 +02:00
The3D
de8ae523c8 Fixed total supply, tests 2020-09-10 13:05:02 +02:00
andyk
1d2617a4ce fix usageAsCollateral test 2020-09-10 13:31:43 +03:00
David Racero
53112c0982 Merge changes 2020-09-09 21:26:52 +02:00
David Racero
113c481512 Fixed coverage random failing tests. Added coverage network and minimal config. 2020-09-09 21:24:20 +02:00
The3D
a67c56c09f Removed interest redirection, fixed tests 2020-09-09 21:16:39 +02:00
eboado
4b3abac526 Merge branch 'master' into feat/26-repay-collateral 2020-09-09 21:12:36 +02:00
The3D
a3934152fe updated interest redirection 2020-09-09 19:43:41 +02:00
The3D
0f06c3b72e updated interest redirection tests 2020-09-09 17:20:36 +02:00
David Racero
23b7226a73 Fix bignumber global test config 2020-09-09 16:35:49 +02:00
David Racero
398335124f Added collateral test to flash liquidation 2020-09-09 15:43:02 +02:00
David Racero
2b930e4cd7 Merge branch 'feat/26-repay-collateral' of gitlab.com:aave-tech/protocol-v2 into feat/26-repay-collateral 2020-09-09 14:47:56 +02:00
David Racero
f1bd569346 Added reentrancy test and full amount flash liquidation test 2020-09-09 14:47:33 +02:00
andyk
3173bee782 initial implementation of the credit delegation + basic tests 2020-09-09 15:33:05 +03:00
eboado
75c5c7c615 - Added test for user's usage as collateral on repayWithCollateral(). 2020-09-09 14:22:35 +02:00
The3D
223690f5f1 Fixed test on transfer, updated interest redirection tests 2020-09-09 14:15:38 +02:00
eboado
91e064eb31 Merge branch 'feat/26-repay-collateral' of gitlab.com:aave-tech/protocol-v2 into feat/26-repay-collateral 2020-09-09 13:07:10 +02:00
eboado
37a9c7ad88 - Added reentrancy guard on repayWithCollateral() and test. 2020-09-09 13:06:46 +02:00
andyk
9d7bf388a6 initial changes + test 2020-09-09 13:47:27 +03:00
The3D
b0084aaf33 Fixes borrow, repay, swap rate mode, rebalance tests 2020-09-09 11:43:11 +02:00
andyk
77ca4b47f8 add failing test for setUsingAsCollateral 2020-09-09 12:36:13 +03:00
The3D
6454f040e8 Fixed withdrawal tests 2020-09-09 10:44:34 +02:00
The3D
90de5d2b0f Fixed transfer tests 2020-09-09 10:03:19 +02:00
David Racero
863d888be6 Added flash-liquidation tests, mimics self-liquidation tests 2020-09-08 20:06:28 +02:00
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
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
eboado
819cc65abd Merge branch 'master' into feat/27-new-erc20 2020-09-04 17:10:32 +02:00
The3D
9aad57978d Merged master 2020-09-04 10:27:32 +02:00
David Racero
e2bc6fbc73 Fix tests missing param 2020-09-03 16:24:27 +02: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
76b4fc6b2d All tests working. WIP look at old error messages to remove them all 2020-09-02 17:54:34 +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
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
David Racero
cf70929eee Merge and fix conflicts 2020-08-25 14:15:35 +02:00
David Racero
957f4921d6 Moved type outside of types due missing types prior compilation 2020-08-24 10:29:54 +02: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
4d054dd56d Optimized MathUtils, ReserveLogic 2020-08-22 13:01:41 +02:00
David Racero
f9fddfba59 Fix conflicts 2020-08-21 17:19:25 +02:00
David Racero
82ee09caef Added initialize task 2020-08-21 13:07:32 +02:00
andyk
94d8f38597 refactoring tokenization folder to fit current guideline, small gas optimizations 2020-08-21 13:38:08 +03:00
andyk
d2848105f7 fix liquidation test 2020-08-21 10:33:06 +03:00
David Racero
54d9e3a7ee Added missing stash work 2020-08-20 17:38:57 +02:00
The3D
2d769f4480 Fixes #19 2020-08-20 17:09:23 +02:00
andyk
39984383c6 remove payable, add IAToken and ILendingPool 2020-08-20 15:32:20 +03:00
The3D
8a8c75c713 Fixed flashloan test 2020-08-20 12:21:42 +02:00
andyk
1a2bfcbf45 remove FeeProvider setters and getters 2020-08-19 19:06:32 +03:00
andyk
d60f7b6272 removal of TokenDistributor, FeeProvider and FlashLoanVars 2020-08-19 18:56:51 +03:00
The3D
5b33ea65d1 Initial fix 2020-08-19 16:10:08 +02:00
andyk
d141d090e4 migrate to ethers v5 2020-08-19 15:23:41 +03:00
The3D
90b2625bc0 Refactored tests, burn and mint function 2020-08-19 12:56:39 +02:00
emilio
7b51fde8e7 Added tests for debt tokens upgradeability 2020-08-18 12:16:48 +02:00
emilio
3247fb8784 Added mock debt tokens for test 2020-08-18 11:39:34 +02:00
emilio
d7656839fa Fixes remaining tests 2020-08-17 13:48:23 +02:00
emilio
142cec24e7 fixed usage as collateral tests 2020-08-17 11:59:38 +02:00
emilio
ffb3c9f39d Fixes flashloans tests 2020-08-14 19:05:31 +02:00
emilio
fbc6205479 Fixes liquidation/transfer tests 2020-08-13 19:25:29 +02:00
emilio
db17958737 Fixes the borrow-repay-variable scenario 2020-08-13 16:58:06 +02:00
emilio
85f6feba89 Further fix 2020-08-13 16:15:34 +02:00
emilio
991fba36c3 Fixes borrow-repay-stable scenario 2020-08-13 16:15:02 +02:00
emilio
8af0e9fd11 Fixed borrow negatives 2020-08-13 15:46:31 +02:00
emilio
78023ae5c3 Fixed redeem negatives 2020-08-13 15:37:11 +02:00
emilio
f149d9e56a Fixed redeem scenarios 2020-08-13 14:58:44 +02:00
emilio
547c95dc1a Updated deposit scenarios 2020-08-13 14:32:41 +02:00
emilio
3c3e4d146a First refactor of the tests; replaced ETH with WETH in the configuration 2020-08-13 13:06:23 +02:00
emilio
b5264a7c66 Removed rayPow 2020-08-11 12:32:34 +02:00
emilio
9b0b190019 Fixed compounded interest approximation 2020-08-11 10:11:35 +02:00
emilio
413b648b41 implementation 2020-08-11 09:36:46 +02:00
The3D
b387bcf845 Added upgradeability tests 2020-08-10 20:20:08 +02:00
emilio
49bca9febb Optimized aToken - turned pool and underlying asset address into immutables 2020-08-08 19:21:23 +02:00
emilio
50bb9d39b0 Merge branch 'master' into feat/10 2020-08-07 19:32:34 +02:00
emilio
cf3f68653f Updated setup script 2020-08-07 19:29:13 +02:00
emilio
f9115b7030 refactored UserLogic 2020-08-06 09:52:15 +02:00
emilio
8df5182c59 Fixed bugs in user configuration 2020-08-06 00:46:22 +02:00
emilio
1eb2d11a3d initial commit 2020-08-05 12:40:24 +02:00
emilio
c86884ef28 Fixes tests on liquidation 2020-08-02 18:36:04 +02:00
The3D
692cc87f62 Updated PercentageMath to support two decimals of precision 2020-07-27 16:14:21 +02:00
The3D
6752203c5c Fixed scenario test 2020-07-27 10:00:26 +02:00
The3D
fa60f03d8d Updated parameters mapping 2020-07-23 17:18:06 +02:00
The3D
4d2406a5e1 Fixed liquidation tests 2020-07-15 16:49:56 +02:00
The3D
2add014fe5 Fixes issue on LiquidationManager 2020-07-15 16:44:20 +02:00
The-3D
7b66a05c5d Merge branch 'feat/funds-allocation' into 'master'
Feat/funds allocation

Closes #6

See merge request aave-tech/protocol-v2!4
2020-07-15 12:11:18 +00:00
The3D
92f2f2a9b3 Fixes aToken bug 2020-07-14 14:43:43 +02:00
The3D
40e3cd4f31 added tests for transferUnderlyingTo 2020-07-13 16:43:26 +02:00
andyk
89ad335912 pretty print 2020-07-13 11:54:08 +03:00
emilio
853f3118dc removed unused library, console.log 2020-07-09 17:02:16 +02:00
emilio
529115dd98 added stable and variable debt tokens tests 2020-07-09 16:46:49 +02:00
emilio
a3326fc86d Updated LendingPool to add a method to retrieve debt tokens 2020-07-09 16:27:19 +02:00
emilio
77be1963d1 added comments, cleaned up variable debt token, base debt token 2020-07-09 11:59:49 +02:00
emilio
7813e8cec0 Added natspec comments to stable debt token, cleaned up stable debt token code 2020-07-09 11:23:30 +02:00
The3D
f1743a5eac Fixed liquidation tests 2020-07-08 17:26:50 +02:00
The3D
6b2764f760 Renamed debt fetching function, updated liquidationManager 2020-07-07 17:14:44 +02:00
The3D
5b840dd577 Fixed interest redirection tests 2020-07-07 14:04:38 +02:00
The3D
d68261c1bc Fixed rebalance tests 2020-07-07 13:57:08 +02:00
The3D
dd1982010c Fixed swap rate tests 2020-07-07 12:07:31 +02:00
The3D
0d182d6436 Fixed swapBorrowRateMode, rebalanceBorrowRate 2020-07-05 23:44:19 +02:00
The3D
34efb0c917 fixed redeem tests, removed console.log 2020-07-04 09:32:54 +02:00
The3D
30ab5ddec2 Merge branch 'feat/debt' of gitlab.com:aave-tech/protocol-v2 into feat/debt 2020-07-04 09:32:01 +02:00
The3D
e16eed2d03 Fixed borrow tests 2020-07-03 23:20:02 +02:00
andyk
7690b22e8e repo cleanup -1 2020-07-03 12:15:30 +03:00
The3D
a784e42b78 Initial commit 2020-06-30 14:09:28 +02:00
The3D
abc0d3edb6 Fixed tests 2020-06-27 04:13:32 +02:00
The3D
1980773a58 Updated test cases 2020-06-26 21:28:18 +02:00
The3D
c298579908 Fixed tests 2020-06-26 16:58:52 +02:00
The3D
51fee50e50 Fixed setup 2020-06-26 14:34:44 +02:00
The3D
02d943b235 Refactoring migration 2020-06-21 01:40:03 +02:00
andyk
d1f21118c1 initial refactoring of liquidation-atoken.spec 2020-06-18 17:36:37 +03:00
eboado
595d169f5d - Migrated all the scenarios tests, except for borrow-repay-variable 2020-06-13 11:12:49 +02:00
eboado
ef3e5b2cbb - Finished migration of basic structure of scenarios and deposit story. 2020-06-12 22:12:53 +02:00
eboado
0b17abc6eb - Finished migration of flashloan.spec.ts.
- Fixed issue with buidlerevm snapshotting.
2020-06-12 15:41:52 +02:00
eboado
99cbb5f0a4 - Fixed typo on configurator.spec test name.
- Unified error messages for tests on types.ts.
- Finished migration of core-modifiers.spec.ts.
2020-06-12 10:39:42 +02:00
eboado
57cc16e665 - Finished migration of configurator.spec.ts 2020-06-12 09:41:30 +02:00
eboado
2e72a55c78 - Changes on make-suite and refactoring on tests 2020-06-10 17:01:32 +02:00
andyk
268dcdead8 fix snapshots 2020-06-10 15:47:39 +03:00
eboado
070b46552a - Finished migration o atoken-transfer tests. 2020-06-10 13:46:42 +02:00
eboado
466fa2cafc - Changed ganache version 2020-06-10 12:31:08 +02:00
eboado
84466f11b5 - Added ganache as buidler network option 2020-06-10 10:31:33 +02:00
eboado
2379fe7ae7 - Temporary removed nonReentrant from LendingPool, until this fix on ReentrancyGuard is released to prod https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2171. 2020-06-09 16:36:33 +02:00
andyk
0ac28cd89e change contracts vars declaration 2020-06-09 14:24:34 +03:00
eboado
18e19b4f84 - Added getAllReservesTokens for AaveProtocolTestHelpers. 2020-06-09 11:11:19 +02:00
eboado
0453a49f8f - Fixed issue on AaveProtocolTestHelpers.
- Migrated atoken-modifiers tests.
2020-06-08 21:06:26 +02:00
eboado
21e6697eda - Added AaveProtocolTestHelpers 2020-06-08 17:36:40 +02:00
eboado
82de55fdbf - Added mocha __setup script with snapshotting 2020-06-08 14:03:40 +02:00
eboado
03a6249875 - Ported LendingPoolAddressesProvider test. 2020-06-03 12:44:10 +02:00
eboado
0ca8e30fb2 Initial commit 2020-05-29 16:55:31 +02:00