🛑Be Aware: DB & Gas
We store commission paid for
Users Can Only Claim Commission for 1 Event at a Time
Currently, users will have to pay a gas fee to claim commission from the contract. Because commission can not be claimed all at once for all events with one transaction, it is possible that it will not be capital efficient for you to claim your commission earned.
To mitigate the capital inefficiency of this process, the unclaimed commission will be eligible to be transferred into the community vault for the next version of the contract.
We expect users to pay ~210888 gwei to claim commission.
We store fees from each bet in a database to display to the user efficiently in the UI.
To keep contract prices reasonable, only the total commission earned from each address in a betting pool is stored on-chain. This can be found by calling the totalCommissions
method on the betting contract.
To show users a more detailed breakdown of how much commission they have earned, a copy of each bet is stored off-chain. This allows displaying to each user how much commission they have earned from each bet. The purpose of this is to enhance the user interface.
If the database is down it will not affect users' ability to claim commission from the smart contract.
Last updated