Skip to content
Snippets Groups Projects

Bugfix: correctly compute transfer amount

Closed Carles Barrobés requested to merge transfer-fee-bug into develop
1 unresolved thread
+ 1
1
@@ -463,7 +463,7 @@ export class AccountsService extends RxStartableService<AccountsState> {
// Compute total amount (with fee) and remove decimals
const powBase = Math.pow(10, currency.decimals || 0);
const totalAmount = Math.floor((amount + fee) * powBase);
const totalAmount = Math.floor(amount * powBase + fee);
Please register or sign in to reply
// Get pair, and unlock it
const issuerPair = keyring.getPair(issuerAccount.address);
Loading