Skip to content

Commit

Permalink
feat: submit reward must be successful on exocore chain (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
adu-web3 authored Oct 18, 2024
1 parent 09197a8 commit cfbf125
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/ExocoreGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ contract ExocoreGateway is
} else {
(success,) = REWARD_CONTRACT.claimReward(srcChainId, token, avsOrWithdrawer, amount);
}
if (isSubmitReward && !success) {
revert Errors.DepositRequestShouldNotFail(srcChainId, lzNonce); // we should not let this happen
}
emit RewardOperation(isSubmitReward, success, bytes32(token), bytes32(avsOrWithdrawer), amount);

response = isSubmitReward ? bytes("") : abi.encodePacked(lzNonce, success);
Expand Down

0 comments on commit cfbf125

Please sign in to comment.