ExocoreNetwork / exocore-contracts

5 stars 5 forks source link

`submitReward` should be successful #115

Open adu-web3 opened 1 month ago

adu-web3 commented 1 month ago

Description

According to protocol design, deposit request from client chain should always be successful. For submitReward, though it is also a kind of deposit for reward, it's difficult to assume that it would always be successful: e.g. if someone submits reward for a not existing AVS, it's meaningless to account for the deposit of reward in this case.

Otherwise we should consider the situation where submitReward could fail and unlock the assets that have been locked in the reward vault, so that the depositor could withdraw them out of vault later.