Skip to content

Commit

Permalink
Merge pull request #17 from aavegotchi/updateReceiptToken
Browse files Browse the repository at this point in the history
Update receipt token
  • Loading branch information
cinnabarhorse authored Jan 8, 2022
2 parents 7934eb1 + fa54801 commit a3f200b
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 238 deletions.
5 changes: 5 additions & 0 deletions contracts/facets/StakingFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ contract StakingFacet {
emit EpochIncreased(0);
}

function updateReceiptToken(address _poolAddress, address _tokenAddress) external {
LibDiamond.enforceIsContractOwner();
s.pools[_poolAddress].receiptToken = _tokenAddress;
}

function updateRates(uint256 _currentEpoch, PoolInput[] calldata _newPools) external onlyRateManager {
require(_newPools.length > 0, "StakingFacet: Pools length cannot be zero");
//Used to prevent duplicate rate updates from happening in bad network conditions
Expand Down
Loading

0 comments on commit a3f200b

Please sign in to comment.