Function: processClaimable(address _token, uint16 _srcChainId)
Allows accounts from rewardReceiver mapping to claim the reward. Only owner is able to add address to the rewardReceiver mapping.
Inputs
_tokenControl: Full control.
Constraints:
claimable[_token][_srcChainId]> 0.Impact: The address of reward tokens that will be claimed.
_srcChainIdControl: Full control.
Constraints:
claimable[_token][_srcChainId]> 0 .Impact: The source chain ID. The address of receiver is taken from
rewardReceiver[_srcChainId]set by owner.
Branches and code coverage (including function calls)
Intended branches
claimable[_token][_srcChainId]is reset.totalClaimable[_token]is increased.
Negative behavior
rewardReceiver[_srcChainId]does not contain_srcChainId.claimable[_token][_srcChainId]== 0.
Function call analysis
_lzSendExternal/internal? Internal.
Argument control?
_srcChainId.Impact Send the
innerTokenreward to the receiver to the_srcChainId.
IProxyOFT(oft).sendFromExternal/internal? External.
Argument control?
_srcChainId.Impact Send the
_tokenreward to the receiver to the_srcChainId.