Implement monetization lottery
MERGE REQUEST
Overview
This MR implements a method that probabilistically computes a payout for a given amount and base. The amount is the amount of money that a monetizer wants to receive for accessing their resource. The base is the minimum amount that we are willing to pay out at once.
So if the monetizer wants $5 and the base is $5 they will always get $5. If they want $6 and the base is $5 they will get $6. If they want $1 and the base is $5 they have a 20% chance of receiving $5 and a 80% chance of receiving $0.
Checklist
Review and complete the checklist to ensure that the MR is complete before assigned to an approver.
-
All new methods or updated methods have clear docstrings -
Testing added or updated for new methods -
Any new packages are added to Makefile and .gitlab-ci.yml -
API documentation updated for API updates -
Module README.md updated for changes to workflow -
Issue added to Sia-UI repo for new supporting features -
Changelog File Created