XI. Appendix
Code Snippets
Sigmoid Function
The sigmoid function is used to model the reward distribution over time. It is represented as:
Create Fountain
The createFountain
function in the $NFAiUserStakes contract is used to create a new fountain.
Create Reward Contract for Fountain
The createRewardContractForFountain function in the NFAiRewardManager contract is used to create a reward contract for a fountain.
Diagrams
Sigmoid Function
The sigmoid function is used to model the reward distribution over time. The function is represented graphically as an S-shaped curve.
System Architecture
The system architecture diagram shows the interaction between the NFAiUserStakes, NFAiRewardManager, and AssetRewardContract contracts.
Glossary
Fountains: A category of stakes, each with its own reward contract.
Epoch: A period of time used for reward distribution.
Proportions: An array representing the output of the sigmoid function at different points.
Receipt Token: A token issued as proof of stake in certain fountains.
Reward Contract: A contract that calculates and distributes rewards based on the stake's duration and the sigmoid function.
Sigmoid Function: A mathematical function used to model the reward distribution over time.
References
Last updated
Was this helpful?