Skip to content

Fee-Based Tokens in Nano: Behavior and Scenarios #97

@raul-oliveira

Description

@raul-oliveira

I’ll use this issue for us to decide (and vote) a few things related to the behavior of fee-based tokens in Nano.

In the UTXO world, we calculate the number of outputs to determine the fee value. In the Nano world, we don’t have outputs.

Some scenarios have been raised:

UTXO vs NC – Action

When a transaction makes a deposit into a nano contract. For example, a transaction with:

  • 1 input with 5 FBT
  • 1 output with 2 FBT
    • ✅ Here we already charge 0.01 HTR for output count
  • 1 deposit into nano with 3 FBT
    • ❓ Should we also charge 0.01 HTR here?

Nano Contract

Below is my opinion for the topics.

Syscall (NC)

Create Token

  • 0.01 HTR is charged when creating a fee-based token

Mint

  • 0.01 HTR is charged when minting a fee-based token

Melt

  • 0.01 HTR is charged when melting a fee-based token

NC vs NC – Action

Deposit

  • Charge 0.01 HTR when making a deposit from one NC to another NC

Withdraw

  • Charge 0.01 HTR when withdrawing from one NC to another NC

Fee in the Nano Universe

The fee will be calculated and will be charge similar to how the deposit tokens works.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions