🍉Bridge
When some send Ferc721
NFT to this contract(the onERC721Received
function will be called) or call batchDeposit
function, the bridge contract will keep the NFT and mint Ferc20
tokens.
When some one call withdraw
function (he must have Ferc20 balance), the bridge contract will burn the Ferc20
tokens and send back Ferc721
NFT to the sender.
nftTokenIds
keep all deposited Ferc721
NFTs' tokenIds.
ferc20Addresses
is mapping from Ferc721
NFT addresses to Ferc20
token addresses.
ferc721Addresses
is mapping from Ferc20
token addresses to Ferc721
NFTaddresses.
Last updated