-
Notifications
You must be signed in to change notification settings - Fork 171
LIVE-1292 Cover Polkadot existential deposit edge case #1953
LIVE-1292 Cover Polkadot existential deposit edge case #1953
Conversation
Send max must be balances.transfer palletMethod instead of balances.transferKeepAlive
On the Polkadot network, an address is only active when it holds a minimum amount, currently set at 1 DOT. There's a limitation when you hold ~ 1 DOT. Use recommended 1.1 DOT value.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put the link to the JIRA ticket in the description of the PR + cleanup the title a bit it looks weird 😄
Don't use ternary operator
Restore EXISTENTIAL_DEPOSIT, use new constant EXISTENTIAL_DEPOSIT_RECOMMENDED_MARGIN to handle recommended margin
Codecov Report
@@ Coverage Diff @@
## develop #1953 +/- ##
===========================================
- Coverage 69.14% 59.46% -9.68%
===========================================
Files 545 510 -35
Lines 23534 21132 -2402
Branches 6194 5693 -501
===========================================
- Hits 16273 12567 -3706
- Misses 7219 8543 +1324
+ Partials 42 22 -20
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 👍
* LIVE-1292 Cover Polkadot existential deposit edge case (#1953) * Fix transaction mode mapping Send max must be balances.transfer palletMethod instead of balances.transferKeepAlive * Fix 1 DOT Polkadot limitation On the Polkadot network, an address is only active when it holds a minimum amount, currently set at 1 DOT. There's a limitation when you hold ~ 1 DOT. Use recommended 1.1 DOT value. * Improve code readability Don't use ternary operator * Split Existential Deposit and margin Restore EXISTENTIAL_DEPOSIT, use new constant EXISTENTIAL_DEPOSIT_RECOMMENDED_MARGIN to handle recommended margin * Polkabot * trigger bot * trigger bot * Change Polkadot bot to 'Mooncake' seed * Change Polkadot bot to 'Mere Denis' seed * Change Polkadot bot to 'Silicium' seed * Update Polkadot bot spec to withdraw staking funds sometimes * Fix bot condition to do bond transactions * trigger bot * trigger bot * trigger bot * trigger bot * trigger bot * lint - remove unused import Co-authored-by: Alexandre Alouit <[email protected]>
Context (issues, jira)
https://ledgerhq.atlassian.net/browse/LIVE-1292
Description / Usage
When trying to emptied an account, it doesn't work.
This happens when the balance is at ~1 DOT, this is a limitation of the Polkadot blockchain.
The logic of Ledger Live Common was not adapted, this PR fix this.
This PR also contains a fix on the optimistic operation which does not contain the correct type when it is a send max.
Expectations