mirror of
https://github.com/basicswap/basicswap.git
synced 2026-05-09 07:52:13 +02:00
feat: implement Spark balance display and withdrawal options
feat: complete FIRO + Spark integration (balance, withdrawal, address caching, refactor) feat: add support for Spark address handling remove white space ref
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
types: ['default'],
|
||||
hasSubfee: false,
|
||||
hasSweepAll: true
|
||||
},
|
||||
13: {
|
||||
types: ['plain', 'spark'],
|
||||
hasSubfee: true,
|
||||
hasSweepAll: false
|
||||
}
|
||||
},
|
||||
|
||||
@@ -64,6 +69,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (cid === 13) {
|
||||
switch(selectedType) {
|
||||
case 'plain':
|
||||
return this.safeParseFloat(balances.main || balances.balance);
|
||||
case 'spark':
|
||||
return this.safeParseFloat(balances.spark);
|
||||
default:
|
||||
return this.safeParseFloat(balances.main || balances.balance);
|
||||
}
|
||||
}
|
||||
|
||||
return this.safeParseFloat(balances.main || balances.balance);
|
||||
},
|
||||
|
||||
@@ -188,7 +204,8 @@
|
||||
balance: balance,
|
||||
blind: balance2,
|
||||
anon: balance3,
|
||||
mweb: balance2
|
||||
mweb: balance2,
|
||||
spark: balance2
|
||||
};
|
||||
WalletAmountManager.setAmount(percent, balances, coinId);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user