setFeeDestination
Sets the destination address for protocol fees
function setFeeDestination(address _feeDestination) external onlyOwner
The address that receives the protocol fees
setProtocolBuyFeePercent
Sets the buy fee percentage for the protocol
function setProtocolBuyFeePercent(uint256 _feePercent) external onlyOwner
The fee percent. 0 - 100%
setProtocolSellFeePercent
Sets the sell fee percentage for the protocol
function setProtocolSellFeePercent(uint256 _feePercent) external onlyOwner
The fee percent. 0 - 100%
setCreatorBuyFeePercent
Sets the buy fee percentage for the creator
function setCreatorBuyFeePercent(uint256 _feePercent) external onlyOwner
The fee percent. 0 - 100%
setCreatorSellFeePercent
Sets the sell fee percentage for the creator
function setCreatorSellFeePercent(uint256 _feePercent) external onlyOwner
The fee percent. 0 - 100%
Opens oc closes the platform for shares issuance
function setOpenInit(bool isOpen) external onlyOwner
Retrieves the price for buying shares
function getBuyPrice(uint256 creatorId, uint256 amount) external view
The Farcaster ID of creator
Retrieves the price for selling shares
function getSellPrice( uint256 creatorId, uint256 amount ) external view
The Farcaster ID of creator
createSharesForPiecewise
Allows a creator to issue shares with a piecewise pricing model
function createSharesForPiecewise(uint256 creatorId, uint256 startPrice, uint256 initialSupply, uint256 totalSupply, uint256 a, uint256 b, bool signOfb, uint256 k, bool signOfk) public nonReentrant
The Farcaster ID of creator
Allows a user to buy shares
function buyShares(uint256 creatorId, uint256 sharesAmount) public payable nonReentrant()
Allows a user to sell a single share
function sellShare(uint256 tokenId, uint256 priceLimit) external nonReentrant
Allows a user to sell multiple shares
function sellShares(uint256[] memory tokenIds, uint256 priceLimit) external nonReentrant
Allows a user to claim accumulated fees
function claim() external nonReentrant