mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
send from spark balance for trades instead of lelantus
This commit is contained in:
parent
63b76df9ca
commit
1f0fc010b7
3 changed files with 11 additions and 11 deletions
|
@ -111,7 +111,7 @@ class _ConfirmChangeNowSendViewState
|
|||
|
||||
try {
|
||||
if (wallet is FiroWallet && widget.shouldSendPublicFiroFunds == false) {
|
||||
txidFuture = wallet.confirmSendLelantus(txData: widget.txData);
|
||||
txidFuture = wallet.confirmSendSpark(txData: widget.txData);
|
||||
} else {
|
||||
txidFuture = wallet.confirmSend(txData: widget.txData);
|
||||
}
|
||||
|
|
|
@ -241,10 +241,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
|
||||
Future<TxData> txDataFuture;
|
||||
|
||||
// TODO: [prio=high] Firo spark
|
||||
|
||||
if (wallet is FiroWallet && !firoPublicSend) {
|
||||
txDataFuture = wallet.prepareSendLelantus(
|
||||
txDataFuture = wallet.prepareSendSpark(
|
||||
txData: TxData(
|
||||
recipients: [
|
||||
(
|
||||
|
|
|
@ -287,7 +287,8 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
|||
recipients: [
|
||||
(
|
||||
address: address,
|
||||
amount: amount, isChange: false,
|
||||
amount: amount,
|
||||
isChange: false,
|
||||
),
|
||||
],
|
||||
memo: memo,
|
||||
|
@ -303,19 +304,21 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
|||
recipients: [
|
||||
(
|
||||
address: address,
|
||||
amount: amount, isChange: false,
|
||||
amount: amount,
|
||||
isChange: false,
|
||||
),
|
||||
],
|
||||
feeRateType: FeeRateType.average,
|
||||
),
|
||||
);
|
||||
} else {
|
||||
txDataFuture = firoWallet.prepareSendLelantus(
|
||||
txDataFuture = firoWallet.prepareSendSpark(
|
||||
txData: TxData(
|
||||
recipients: [
|
||||
(
|
||||
address: address,
|
||||
amount: amount, isChange: false,
|
||||
amount: amount,
|
||||
isChange: false,
|
||||
),
|
||||
],
|
||||
// feeRateType: FeeRateType.average,
|
||||
|
@ -481,7 +484,7 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
|||
),
|
||||
Text(
|
||||
ref.watch(pAmountFormatter(coin)).format(ref
|
||||
.watch(pWalletBalance(walletId))
|
||||
.watch(pWalletBalanceTertiary(walletId))
|
||||
.spendable),
|
||||
style: STextStyles.itemSubtitle(context),
|
||||
),
|
||||
|
@ -543,8 +546,7 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
|||
Text(
|
||||
ref.watch(pAmountFormatter(coin)).format(
|
||||
ref
|
||||
.watch(
|
||||
pWalletBalanceSecondary(walletId))
|
||||
.watch(pWalletBalance(walletId))
|
||||
.spendable,
|
||||
),
|
||||
style: STextStyles.itemSubtitle(context),
|
||||
|
|
Loading…
Reference in a new issue