-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge the develop branch to the master branch, preparation to v1.1.0
This update for the `master` branch contains the changes addressed the findings discovered during a security audit: * [Improvement] Add claiming of stkAAVE rewards (#65) * [Fix] Small gas optimization after EIP2929 (#58) * [Fix] Fix interest impl comments (#59) * [Fix] Use single delete (#62) * [Fix] Fix minor issues (#63) * [Fix] Lazy AAVE token balance query (#60) * [Fix] Stricter preconditions for payInterest (#57) * [Fix] Use SafeERC20 in interest implementations (#64) * [Fix] Use SafeERC20.safeApprove (#67) * [Other] Bump package and contracts interfaces version prior to 1.1.0 (#66)
- Loading branch information
Showing
14 changed files
with
334 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma solidity 0.7.5; | ||
|
||
interface ILegacyERC20 { | ||
function approve(address spender, uint256 amount) external; // returns (bool); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pragma solidity 0.7.5; | ||
|
||
interface IStakedAave { | ||
function stakersCooldowns(address staker) external view returns (uint256); | ||
|
||
function balanceOf(address user) external view returns (uint256); | ||
|
||
function stake(address to, uint256 amount) external; | ||
|
||
function redeem(address to, uint256 amount) external; | ||
|
||
function cooldown() external; | ||
|
||
function claimRewards(address to, uint256 amount) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pragma solidity 0.7.5; | ||
|
||
interface IStakedTokenIncentivesController { | ||
function claimRewards( | ||
address[] calldata assets, | ||
uint256 amount, | ||
address to | ||
) external; | ||
|
||
function getRewardsBalance(address[] calldata assets, address user) external view returns (uint256); | ||
|
||
function configureAssets(address[] calldata assets, uint256[] calldata emissionsPerSecond) external; | ||
|
||
function setDistributionEnd(uint256 distributionEnd) external; | ||
|
||
function initialize(address addressesProvider) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.