ProfileMarketV1
Last updated
Last updated
Sets the destination address for protocol fees
function setFeeDestination(address _feeDestination) external onlyOwner
Name | Type | Description |
---|---|---|
Sets the buy fee percentage for the protocol
function setProtocolBuyFeePercent(uint256 _feePercent) external onlyOwner
Name | Type | Description |
---|---|---|
Sets the sell fee percentage for the protocol
function setProtocolSellFeePercent(uint256 _feePercent) external onlyOwner
Name | Type | Description |
---|---|---|
Sets the buy fee percentage for the creator
function setCreatorBuyFeePercent(uint256 _feePercent) external onlyOwner
Sets the sell fee percentage for the creator
function setCreatorSellFeePercent(uint256 _feePercent) external onlyOwner
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
Retrieves the price for selling shares
function getSellPrice( uint256 creatorId, uint256 amount ) external view
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
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
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_feeDestination
address
The address that receives the protocol fees
_feePercent
uint256
The fee percent. 0 - 100%
_feePercent
uint256
The fee percent. 0 - 100%
_feePercent
uint256
The fee percent. 0 - 100%
_feePercent
uint256
The fee percent. 0 - 100%
isOpen
bool
true or false
creatorId
uint256
The Farcaster ID of creator
amount
uint256
The amount of Key buys
creatorId
uint256
The Farcaster ID of creator
amount
uint256
The amount of Key sells
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
tokenId
uint256
priceLimit
uint256
tokenIds
uint256[]
priceLimit
uint256