polygon aave claim function update

This commit is contained in:
Thrilok Kumar 2021-06-02 05:41:26 +05:30
parent 9ba2885a0f
commit 1fd9c651f5

View File

@ -33,6 +33,11 @@ abstract contract IncentivesResolver is Helpers, Events {
_amt = incentives.claimRewards(assets, _amt, address(this));
TokenInterface wmatic = TokenInterface(wmaticAddr);
uint256 wmaticAmount = wmatic.balanceOf(address(this));
convertWmaticToMatic(wmaticAmount > 0, wmatic, wmaticAmount);
setUint(setId, _amt);
_eventName = "LogClaimed(address[],uint256,uint256,uint256)";