Treasury
Protocol fee treasury
This Solidity smart contract is a standard Membership Treasury contract that allows the exchange of membership points with rewards. Let's break down the variables, events, functions, and internal functions present in this contract:
State Variables
Modifiers
onlyRole
onlyRole
Restricts the execution of a function to only accounts that have a specific role assigned.
Functions
constructor
constructor
Initializes the Treasury contract with the provided parameters.
Parameters
exchange
exchange
Allows subscribers to exchange membership points for rewards.
Parameters
claim
claim
Allows investors to claim rewards with the allocated revenue percentage.
Parameters
settle
settle
Allows developers to settle the revenue with the allocated revenue percentage.
Parameters
setClaim
setClaim
Sets the number of claims available for a specific member.
Parameters
setSettlement
setSettlement
Sets the settlement for a specific member.
Parameters
refundFee
refundFee
Refunds the fee to a specific address.
Parameters
getReward
getReward
Returns the reward amount for a given token, era, and membership points.
Parameters
getClaim
getClaim
Returns the claim amount for a given token, member UID, and era.
Parameters
getSettlement
getSettlement
Returns the settlement amount for a given token and era.
Parameters
Last updated