Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable and predictable costs: pay fees in TEER #113

Open
echevrier opened this issue Mar 15, 2022 · 1 comment
Open

Stable and predictable costs: pay fees in TEER #113

echevrier opened this issue Mar 15, 2022 · 1 comment

Comments

@echevrier
Copy link
Contributor

echevrier commented Mar 15, 2022

See epic: integritee-network/pallets#40
Define fees in USD as a standard config, convert these fees into TEER value and charge them.

@echevrier
Copy link
Contributor Author

  • Fees in USD:

    • Change runtime configuration of the Transaction Payment Pallet: TransferFee, CreationFee, TransactionByteFee constants
      USD, MILLIUSD, MICROUSD, .... ?
  • Implement a new CurrencyAdapter for the OnChargeTransaction of the Transaction Payment Pallet: CurrencyAdapTEER. It takes the exchange rate from the stable-fee pallet and converts the fee to a TEER fee:

    • CurrencyAdapTEER<C, OU,CON>, with CON: FeeConversion (according to Balance Conversion in Asset)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant