galacticcouncil / galacticcouncil/hydration-node

Bug: transfer all with leftover get dusted

Open
#1,098 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
208
Forks
109
Avg merge
6d 3h
Merged PRs (30d)
3

Description

When someone transfer amount where leftover is less then ED, then the leftover get dusted and the account killed.

We could consider transferring all amount when the totalBalance - toBeSentAmount is smaller then ED.

We do the same for Atokens, but for that case we needed due tue rounding in AAVE contract: https://github.com/galacticcouncil/hydration-node/pull/1093

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.