var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=1&rec=1&url=https://docs.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

FeeShare

ℹ️info

The FeeShare module is an open-source module created by the Juno network. This document is a stub and mainly covers Terra-specific notes on how it is used. Visit the original documentation for more information.

The FeeShare module enables contracts to share in the distribution of fees generated from contract transactions. Whenever a transaction occurs, a gas fee is incurred and distributed to validators via the Distribution module. With FeeShare, a portion of this fee can be diverted back to an address specified by the contract from which the transaction originated. In order to participate in fee sharing, contracts must be registered with the module.

Governance parameters

The following parameters can be adjusted by creating a governance proposal.

KeyTypeDefault Value
EnableFeeSharebooltrue
DeveloperSharessdk.Dec50%
AllowedDenoms[]string[]string(nil)

EnableFeeShare

This parameter enables the module. When set to false, it will disable all feeshare capabilities.

DeveloperShares

This parameter denotes the percentage of fees diverted back to a registered contract. When set at 50%, half of all fees generated will be sent to the withdraw address specified by the registered contract.

AllowedDenoms

This parameter specifies which denominations will be diverted back to a registered contract. If empty, all denominations available as fees will be diverted.

Registering a contract

To register a new or existing contract, follow the FeeShare registration guide.