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

Restricts the execution of a function to only accounts that have a specific role assigned.

Functions

constructor

Initializes the Treasury contract with the provided parameters.

Parameters

exchange

Allows subscribers to exchange membership points for rewards.

Parameters

claim

Allows investors to claim rewards with the allocated revenue percentage.

Parameters

settle

Allows developers to settle the revenue with the allocated revenue percentage.

Parameters

setClaim

Sets the number of claims available for a specific member.

Parameters

setSettlement

Sets the settlement for a specific member.

Parameters

refundFee

Refunds the fee to a specific address.

Parameters

getReward

Returns the reward amount for a given token, era, and membership points.

Parameters

getClaim

Returns the claim amount for a given token, member UID, and era.

Parameters

getSettlement

Returns the settlement amount for a given token and era.

Parameters

Last updated