Flip a hashmask against the floor price in NFTX.
- a hashmasks NFT can be transfered into the contract
- the contract flips the NFT for a mask token
- the received mask token is swapped on sushi-swap for WETH
- WETH is paid out to the user
All this is happening in one transaction.
Mask Flipper uses dapp.tools for development. Please install the dapp client.
The RPC test is using the deployed mainnet contracts of NFTX, HashMasks and Sushiswap. install dependencies
dapp update
export ETH_RPC_URL= <INFURA/NODE URL>
make test