Commit Graph

819 Commits

Author SHA1 Message Date
Lasse Herskind
d12318591c fix: Add claimRewardsToSelf() to force receiver = msg.sender 2021-06-23 15:09:24 +02:00
Lasse Herskind
4373b61d76 fix: Update claimRewards() to limit access 2021-06-23 13:30:36 +02:00
Lasse Herskind
2644aaca7f fix: Remove block number constraint from collectAndUpdateRewards() + add test 2021-06-21 16:07:44 +02:00
Lasse Herskind
80854db63b fix: Update style and variable naming of StaticATokenLM.sol 2021-06-17 14:52:30 +02:00
Lasse Herskind
14fc0f6d90 fix: Remove VamToken and attack files 2021-06-17 13:03:36 +02:00
Lasse Herskind
51d60987f2 fix: Update visibility and reentrance possibility 2021-06-04 09:20:37 +02:00
Lasse Herskind
27ec584490 fix: Removed some comments 2021-06-03 16:06:23 +02:00
Lasse Herskind
e36a2f0e21 fix: Refactor, simplifying _beforeTokenTransfer 2021-06-03 15:59:20 +02:00
Lasse Herskind
c1ce8475de fix: Use userIndex instead of absolute debt 2021-06-03 15:36:22 +02:00
Lasse Herskind
fd38f1f4d8 fix: Minor refactor, variable renaming and cleanup 2021-06-03 15:20:10 +02:00
Lasse Herskind
d1ff677045 fix: Minor update of comments in token contract 2021-06-02 21:08:16 +02:00
Lasse Herskind
782d8acca2 fix: Use virtual rewards/balances when possible (update tests accordingly) 2021-06-02 20:48:47 +02:00
Lasse Herskind
9010a5e0d3 doc: Clean comments in StaticAtokenLM 2021-06-01 12:29:20 +02:00
Lasse Herskind
26f6dc8472 fix: Update paths in tests and contract. 2021-06-01 12:05:51 +02:00
Lasse Herskind
8866ffdfa8 fix: Replace _safeRewardsTransfer by IERC20 safeTransfer directly 2021-06-01 11:33:26 +02:00
Lasse Herskind
053b186777 feat: Add contracts for static aToken with liquidity mining 2021-06-01 11:33:01 +02:00
Lasse Herskind
7376a11c9d feature: vamtoken + attack 2021-06-01 11:33:01 +02:00
eboado
70898687b6 - Added return params for deposit and withdrawal
- Fixed amountToBurn and amountToWithdraw on _withdraw()
2021-06-01 11:25:49 +02:00
eboado
e96c9e7283 - Added possibility of withdraw using dynamic amounts 2021-06-01 11:25:49 +02:00
eboado
151b240bc4 - Fixed _withdraw() logic StaticAToken 2021-06-01 11:25:49 +02:00
eboado
51bd4ecee9 - Fixed recipient of aTokens 2021-06-01 11:25:49 +02:00
eboado
f342ec1555 - Initial version of StaticAToken 2021-06-01 11:25:49 +02: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
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