Caviar.sol
Inherits: Owned
Author: out.eth (@outdoteth)
An AMM for creating and trading fractionalized NFTs.
State Variables
pairs
pairs[nft][baseToken][merkleRoot] -> pair
stolenNftFilterOracle
The stolen nft filter oracle address
Functions
constructor
setStolenNftFilterOracle
Sets the stolen nft filter oracle address.
Parameters
Name
Type
Description
_stolenNftFilterOracle
address
The stolen nft filter oracle address.
create
Creates a new pair.
Parameters
Name
Type
Description
nft
address
The NFT contract address.
baseToken
address
The base token contract address.
merkleRoot
bytes32
The merkle root for the valid tokenIds.
Returns
Name
Type
Description
pair
Pair
The address of the new pair.
destroy
Deletes the pair for the given NFT, base token, and merkle root.
Parameters
Name
Type
Description
nft
address
The NFT contract address.
baseToken
address
The base token contract address.
merkleRoot
bytes32
The merkle root for the valid tokenIds.
Events
SetStolenNftFilterOracle
Create
Destroy
Last updated