$1 Million USDC vs 1 Wrapped Bitcoin 90-day term bet, inspired by Balaji's tweet
Simple smart contract that configures a 1M USDC vs 1 Wrapped Bitcoin 90-day term bet, inspired by Balaji's tweet.
createBet()
initializing a bet between two partiesA
and B
deposit their funds, contract marks second deposit as startTimestamp
startTimestamp
settleBet()
, using the Chainlink BTC/USD oracle to settle the bet.Note: settleBet()
can also be called earlier than 90 days, if in favor of partyUSDC (kudos banteg).
Tests use Foundry: Forge.
Install Foundry using the installation steps in the README of the linked repo.
# Get dependencies
forge update
# Run tests
forge test