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

Investigate Transfer Fees #576

Open
sam0x17 opened this issue Jun 25, 2024 · 0 comments
Open

Investigate Transfer Fees #576

sam0x17 opened this issue Jun 25, 2024 · 0 comments
Assignees

Comments

@sam0x17
Copy link
Contributor

sam0x17 commented Jun 25, 2024

The transfer fee is currently exorbitantly low. This value should be investigated and made more suitable to protect the chain against DDOS.

The current implementation for calculating our fees is fee = 0 + (0.001 × weight) based on:

fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
    let coefficient = WeightToFeeCoefficient {
        coeff_integer: 0,
        coeff_frac: Perbill::from_parts(1),
        negative: false,
        degree: 1,
    };

    smallvec!(coefficient)
}

In this implementation we are increasing the fees linearly degree: 1.

We can increase the fee by increasing the weight to fee ratio, charging per byte in the transaction, enabling the FeeMultiplier, raising the base fee from 0, or ditching this and writing our own algorithm.

https://docs.substrate.io/reference/how-to-guides/weights/calculate-fees/

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

2 participants