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 |
---|---|---|
|
| The stolen nft filter oracle address. |
create
Creates a new pair.
Parameters
Name | Type | Description |
---|---|---|
|
| The NFT contract address. |
|
| The base token contract address. |
|
| The merkle root for the valid tokenIds. |
Returns
Name | Type | Description |
---|---|---|
|
| The address of the new pair. |
destroy
Deletes the pair for the given NFT, base token, and merkle root.
Parameters
Name | Type | Description |
---|---|---|
|
| The NFT contract address. |
|
| The base token contract address. |
|
| The merkle root for the valid tokenIds. |
Events
SetStolenNftFilterOracle
Create
Destroy
Last updated