crossclaim / xclaim-sol

XCLAIM(BTC,ETH): Solidity implementation for Bitcoin backed tokens on Ethereum
https://xclaim.io/
GNU General Public License v3.0
24 stars 8 forks source link

issueToken: add separate function for vault to claim collateral/fee for failed issue commitments #15

Open alexeiZamyatin opened 5 years ago

alexeiZamyatin commented 5 years ago

Cheap: vault tracks all emitted events and submits the expired commit ids - but vault must be online. Alternative/additionally: vault calls claimAllFailed function, which checks all failed or expired commitments

alexeiZamyatin commented 5 years ago

In any case: add getAllExpiredCommitments(address vaultAddress) which returns all expired commitments for each vault (off chain)