We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create refund handlers, covering the basic cases for atomiq.
Allows escrow to be refunded after a specific time in the future.
contract Timelock { function refund(bytes32 refundData, bytes calldata _witness) view external { require(block.timestamp>uint256(refundData), "Not refundable yet"); } }
Allows escrow to be refunded after bitcoin blockchain reaches a specific blockheight. Depends on #2
contract BlockheightLock { BtcRelay public immutable btcRelay; function refund(bytes32 refundData, bytes calldata _witness) view external { require(btcRelay.blockheight>=uint256(refundData), "Not refundable yet"); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Create refund handlers, covering the basic cases for atomiq.
Timelock refund handler
Allows escrow to be refunded after a specific time in the future.
Example timelock in Solidity
Blockheight refund handler
Allows escrow to be refunded after bitcoin blockchain reaches a specific blockheight. Depends on #2
Example blockheight lock in Solidity
The text was updated successfully, but these errors were encountered: