ProfileMarketV1

setFeeDestination

Sets the destination address for protocol fees

function setFeeDestination(address _feeDestination) external onlyOwner

NameTypeDescription

_feeDestination

address

The address that receives the protocol fees

setProtocolBuyFeePercent

Sets the buy fee percentage for the protocol

function setProtocolBuyFeePercent(uint256 _feePercent) external onlyOwner

NameTypeDescription

_feePercent

uint256

The fee percent. 0 - 100%

setProtocolSellFeePercent

Sets the sell fee percentage for the protocol

function setProtocolSellFeePercent(uint256 _feePercent) external onlyOwner

NameTypeDescription

_feePercent

uint256

The fee percent. 0 - 100%

setCreatorBuyFeePercent

Sets the buy fee percentage for the creator

function setCreatorBuyFeePercent(uint256 _feePercent) external onlyOwner

NameTypeDescription

_feePercent

uint256

The fee percent. 0 - 100%

setCreatorSellFeePercent

Sets the sell fee percentage for the creator

function setCreatorSellFeePercent(uint256 _feePercent) external onlyOwner

NameTypeDescription

_feePercent

uint256

The fee percent. 0 - 100%

setOpenInit

Opens oc closes the platform for shares issuance

function setOpenInit(bool isOpen) external onlyOwner

NameTypeDescription

isOpen

bool

true or false

getBuyPrice

Retrieves the price for buying shares

function getBuyPrice(uint256 creatorId, uint256 amount) external view

NameTypeDescription

creatorId

uint256

The Farcaster ID of creator

amount

uint256

The amount of Key buys

getSellPrice

Retrieves the price for selling shares

function getSellPrice( uint256 creatorId, uint256 amount ) external view

NameTypeDescription

creatorId

uint256

The Farcaster ID of creator

amount

uint256

The amount of Key sells

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

NameTypeDescription

creatorId

uint256

The Farcaster ID of creator

startPrice

uint256

The amount of Key sells

initialSupply

uint256

totalSupply

uint256

a

uint256

b

uint256

signOfb

bool

k

uint256

signOfk

bool

buyShares

Allows a user to buy shares

function buyShares(uint256 creatorId, uint256 sharesAmount) public payable nonReentrant()

sellShare

Allows a user to sell a single share

function sellShare(uint256 tokenId, uint256 priceLimit) external nonReentrant

NameTypeDescription

tokenId

uint256

priceLimit

uint256

sellShares

Allows a user to sell multiple shares

function sellShares(uint256[] memory tokenIds, uint256 priceLimit) external nonReentrant

NameTypeDescription

tokenIds

uint256[]

priceLimit

uint256

claim

Allows a user to claim accumulated fees

function claim() external nonReentrant

Last updated