Based Rewards
Based Rewards is the amount of Moxie that a user will automatically earn for every eligibile transaction that they execute on Base.
In this tutorial, you will explore the key parameters and concepts used to calculate Based Rewards. An example is also provided at the end to illustrate these concepts in action.
Pre-requisites
- Read the Moxie Scores page.
Multipliers
A multiplier value is applied to each eligible transaction, depending on the amount of protocol fees paid by the user to the allowlisted protocol contract that the user interacts with.
The applicable multipliers are as follows based on the percentage of protocol fees paid per transactions:
Transaction Type | Multiplier Value |
---|---|
Tx on allowlisted contracts with protocol fee | |
Tx on allowlisted contracts with protocol fee | |
Tx on allowlisted contracts with protocol fee | |
Tx on allowlisted contracts with protocol fee | |
Tx on Moxie Bonding Curve & Staking (Creator Coins Transactions) | |
Tx on Non-Allowlisted Contracts |
To view the current contracts allowlisted and their associated fees and multipliers assigned, click here.
Total Gas Used
The Total Gas Used by a user is calculated as the sum of all gas fees (in gwei), multiplied by a multiplier value, for all eligible transactions completed by the user within a single day.
A transaction is considered eligible for this calculation if it satisfies both of the following conditions:
- The
to
address of the transaction must belong to one of the allowlisted contracts on Moxie. These contracts, listed here, are selected from the top 50 Base protocols with user fees. - The value of the transaction must be at least $5, which can have either Ether or ERC20 tokens transferred within the transactions.
Based rewards program is a great opportunity for builders on Base to increase the usage of their app, grow the user base, and get a greater level of exposure through the Moxie ecosystem.
As a Based Rewards Partner, all eligible contract addresses from your project will be allowlisted, and Moxie users will be to earn rewards when interacting with your contracts onchain.
To apply to be a Based Rewards Partner, click on this link here.
Using the criteria and multipliers above, given user has made transactions on the Base chain, then the Total Gas Used for user can be formulated using the following equations:
where:
Notation | Description |
---|---|
Total gas used by user on Base. | |
Multiplier on transaction , which is based the protocol fee paid. Check details in Multiplier tables above. | |
If transaction is eligible, return 1. Otherwise, return 0. | |
Gas used on transaction |
Reward & Percentage Contribution
Each day a fixed number of Moxie, represented by variable , will be distributed to all users proportionally based on the % amount they contributed to the pool that day. It is important to keep in mind that the variable will differ from day to day.
The Base Usage of user is defined as the amount contributed to the pool in a given day.
This can be formulated as the sum of the product of the Moxie Score, the total eligible gas spent by each user on Base, and the total USD amount transacted in the day, which can be written as an equation shown below:
where , that is the average $USD value spent by user , can be expanded further to:
By summing up all the Base Usages from all users , the Total Base Usage to the reward pool can be defined as follows:
And the Percentage of Contribution of a user to the pool in a given day can be calculated using the equation below:
Thus, by definition, the Based Rewards of a user can be represented as follows:
where:
Notation | Description |
---|---|
Total number of users | |
Total amount contributed to the pool in a given day | |
Total amount of transactions made by user | |
The Base usage by user | |
Based Rewards of user | |
Moxie Score of user | |
Total gas used by user on Base. For more details, read Total Gas Used. | |
Average USD amount transacted in the day | |
Total USD amount transacted in the day |
As shown by the equation above, the amount of Based Rewards is directly proportional to the amount of Moxie Score you have. Thus, the more account you connect to your Moxie profile, the higher amount of Based Rewards you will earn for each transaction on Base.
Similarly, the more active you are on Base, the higher amount of gas on Base you will spend, which will result in higher amount of Based Rewards you will earn for each transaction on Base.
These data is available in Dune publicly where you can fetch the data for your own analysis, projects, or apps. To learn more about this, click here.
Example
Let's consider an example where there are 3 users on Base, and the total amount of Moxie distributed on a given day is 5,000 Moxie. The Moxie Score and gas spent by each user on Base are as follows:
User | Moxie Score | Gas Used | Total USD transacted | Number of Transactions |
---|---|---|---|---|
A | ||||
B | ||||
C |
The total amount contributed to the pool in a given day can be calculated as follows:
Thus, the % of contribution of each user to the pool will be:
User | % Contribution |
---|---|
A | |
B | |
C |
Finally, the total 5,000 Moxie will be distributed to each user as Based Rewards based on their % contribution to the pool:
User | Based Rewards |
---|---|
A | |
B | |
C |