This article is a detailed explanation of the principles of OKTC's contract handling fee distribution project (Gas Back).
Gas Back is a new function added to OKTC v188.8.131.52, which supports the proportional distribution of handling fees between block producers and contract deployers. The handling fee for calling a contract is distributed proportionally to the deployer of the contract.
Gas Back aims to encourage more developers to deploy contracts on OKTC and enrichen the OKTC ecosystem.
|No effect, no additional handling fees will be charged
|Deploy contractGas Back Participate in Gas Back
|Needs to register for Gas Back, pay a certain amount in handling feesAfter registering, the contract's handling fees will be proportionally distributed to the deployer
|Handling fee dividend
|Profit from handling fee dividends will lessen
split_fee= tx.GasUsed * tx.GasPrice * DeveloperShares
split_feeA single transaction, the amount of handling fees the contract deployer can distribute out
tx.GasUsedAmount of gas the transaction consumed
tx.GasPriceGas price of the transaction
DeveloperShareshandling fee dividend distribution ratio, this value is controlled by 2 variables:
For example, if the system dividend distribution ratio is
account a(Deployer of
contract A)register to Gas Back function, and set
account bas withdraw.
contract Ato consume
gas price=0.1gwei, with
account band through
Dividend distribution ratio amount = 41624 * 0.1gwei * 0.5 = 0.000002081200000000 (OKT)