Skip to content

Fee off by 1 #292

Closed
Closed
@theeldermillenial

Description

@theeldermillenial

I'm running into a case where building a transaction with a script input is resulting in an incorrect fee calculation, which is off by 1.

Doing some debugging on pycardano.utils.fee, it looks like everything is rounded down with a cast to int. Would it make sense to add all raw values and round? In some cases, the values sum to a value with 0.5 ADA getting rounded down, and if we just rounded up this would resolve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions