genericbounties's Introduction
genericbounties's People
genericbounties's Issues
Create a math function and implement it in Solidity [Paid Bounty]
For this bounty you'll design a math function and implement it in Solidity.
In this scenario, users receive a set amount of tokens as a reward each cycle, and have to maintain a safety margin
that is expressed as a percent.
Right now, the safety margin does not impact the users rewards. 1e18 tokens earned = 1 e18 tokens paid out.
You should design a math function that will act as a multiplier for this reward.
The function should:
- Reward at a rate of 1x when a users safety margin is 400%.
- Reward at a rate of 1.10x when a users safety margin is 500%.
- Reward at a rate of 0x if a users safety margin is 250% or lower.
- The reward rate should be skewed in favor of higher numbers. It should not be linear.
Your final work should include both:
- A math equation.
- The equation implemented as a function in Solidity.
- Unit tests showing the function works correctly, can be used with safe math, and properly handles any rounding or truncating.
The payout for this bounty is $250.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.