Skip to content

Commit

Permalink
Always send mainnet gas token for all withdrawals
Browse files Browse the repository at this point in the history
Fixes incorrect transaction creation for token withdrawals.
  • Loading branch information
paullinator authored and samholmes committed Apr 19, 2024
1 parent 233e489 commit f6b38b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- changed: Allow light accounts to buy up to $50 worth of crypto at a time
- fixed: Plaid bank linking with Kado
- fixed: Remove red error when deep linking into Edge with no URL path
- fixed: Unstaking tokens from Thorchain savers
- removed: USPs a/b/c/d test experiment - always uses default USPs

## 4.4.0 (2024-04-09)
Expand Down
4 changes: 3 additions & 1 deletion src/plugins/stake-plugins/thorchainSavers/tcSaversPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ const unstakeRequestInner = async (opts: EdgeGuiPluginOptions, request: ChangeQu
}

const spendInfo: EdgeSpendInfo = {
tokenId,
// For unstaking we always send just the mainnet coin since we are only sending a message
// to the Thorchain pool to withdraw the funds
tokenId: null,
spendTargets: [{ publicAddress: poolAddress, nativeAmount: sendNativeAmount }],
otherParams: { enableRbf: false, outputSort: 'targets', utxoSourceAddress, forceChangeAddress },
assetAction: { assetActionType: 'unstakeOrder' },
Expand Down

0 comments on commit f6b38b6

Please sign in to comment.