xclaim-sol
xclaim-sol copied to clipboard
XCLAIM(BTC,ETH): Solidity implementation for Bitcoin backed tokens on Ethereum
Add replay protection - identical to issue and redeem: - contract address - redeem request id/nonce -
When a redeem request is created after lockReplace has been called, the countdown of the redeem request must only be initiated AFTER the replace was finalized.
Otherwise, the new vault may end up having not enough time to fulfill the redeem requests and get's punished
Problem: currently surplus collateral given to the contract Fix: add the surplus collateral to the vault's balance
Required checks: - Redeem must be free! i.e., vault **cannot** charged a fee for this - User specifies bitcoin transaction fee? Challenge: if too low, tx never included. Who is...
"Unlock" vault collateral. Add boolean flag to decide if 1. Collateral remains in contract and is available for new issuing processes or 2. Collateral is send back to vault's account.
- can only be called by a vault - check digest is in OP_return