Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
Fractionalized ERC721 Options
copy icon
verumlotus
• version 1.0.0
NFT
ERC721
Fractional
Option

Fractionalized ERC721 Options

Options for ERC721 assets via fractionalizing into ERC20 tokens & depositing into Primitve

*Visit desktop site to download or deploy

Version

1.0.0

Creator

verumlotus

Recent Use

🍞 0x9dc2 saved

Last Publish

10/17/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
depositLiquidity(uint256,uint256) :
This function allows a user to deposit liquidity into a pool. It takes two parameters, delRisky and delStable, which represent the amount of risky and stable assets the user is depositing. The function then uses the safeTransferFrom function to transfer the assets from the user's address to the address of the pool. Finally, the engine.allocate function is used to allocate the assets to the pool. (autogenerated documentation)
withdrawInitialLiquidity(uint256,uint256) :
This function allows the owner of the contract to withdraw liquidity from the contract. It takes two parameters, delRisky and delStable, which represent the amount of risky and stable tokens to be withdrawn. The function then calls the withdraw function of the engine contract, passing in the address of the owner and the amounts of tokens to be withdrawn. (autogenerated documentation)
createCallback(uint256,uint256) :
This function is used to transfer a certain amount of tokens from the FractionalArtVault and a stablecoin to the Engine contract. The function takes three parameters: delRisky, delStable, and calldata. delRisky is the amount of tokens to be transferred from the FractionalArtVault, delStable is the amount of stablecoin to be transferred, and calldata is any additional data that may be needed for the transfer. The function then uses the safeTransfer function to securely transfer the tokens from the FractionalArtVault and the stablecoin to the Engine contract. (autogenerated documentation)
depositCallback(uint256,uint256) :
This function is used to deposit funds into the Engine contract. It takes in two parameters, delRisky and delStable, which represent the amount of risky and stable tokens to be deposited, respectively. It also takes in a calldata parameter, which is used to provide additional data to the function. The function then transfers the specified amounts of tokens to the Engine contract, using the safeTransfer function to ensure that the tokens are transferred securely. (autogenerated documentation)
allocateCallback(uint256,uint256) :
This function is used to allocate funds from the FractionalArtVault and a stablecoin to the Engine contract. It takes in two uint256 parameters (delRisky and delStable) which represent the amount of funds to be allocated from the FractionalArtVault and the stablecoin respectively. It also takes in a bytes calldata parameter which is used to pass in additional data to the function. The function then calls the safeTransfer function on both the FractionalArtVault and the stablecoin to transfer the specified amounts to the Engine contract. (autogenerated documentation)
onERC721Received(uint256,) :
This function is an event that is triggered when an ERC721 token is received. It takes four parameters: the address of the operator, the address of the from account, the ID of the token, and a byte array of data. It returns a bytes4 value, which is the selector of the onERC721Received function. This function is used to track the transfer of ERC721 tokens and is typically used in smart contracts that manage ERC721 tokens. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i verumlotus-fractionalized-ERC721-Options
copy icon

Recent Use

🍞 0x9dc2 saved

Last Publish

10/17/2022

Version

1.0.0

Creator

verumlotus

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.