Skip to content

Commit

Permalink
Fix xTokens transfer on Bifrost Polkadot
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldev5 committed Dec 14, 2023
1 parent 92dcf44 commit 1c1d862
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nodes/supported/BifrostPolkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export class BifrostPolkadot extends ParachainNode implements IXTokensTransfer {
}

transferXTokens(input: XTokensTransferInput): Extrinsic | TSerializedApiCall {
// Multiple asset options need addressing
const currencySelection = { Native: input.currency }
const currencySelection = { [input.currency === 'BNC' ? 'Native' : 'Token']: input.currency }
return XTokensTransferImpl.transferXTokens(input, currencySelection)
}
}

0 comments on commit 1c1d862

Please sign in to comment.