Skip to content

Commit

Permalink
Merge pull request #289 from EdgeApp/matthew/moveData
Browse files Browse the repository at this point in the history
Fix data field placement
  • Loading branch information
peachbits authored Sep 14, 2023
2 parents 051968a + 21f4eca commit 220e213
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
9 changes: 3 additions & 6 deletions src/swap/defi/uni-v2-based/plugins/spookySwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,20 +113,17 @@ export function makeSpookySwapPlugin(
currencyCode: request.fromCurrencyCode, // what is being sent out, only if token. Blank if not token
spendTargets: [
{
memo: swapTx.data,
nativeAmount: swapTx.value != null ? swapTx.value.toString() : '0', // biggy/number string integer
publicAddress: swapTx.to,

otherParams: {
data: swapTx.data
}
publicAddress: swapTx.to
}
],
customNetworkFee: {
gasPrice:
swapTx.gasPrice != null
? ethers.utils.formatUnits(swapTx.gasPrice, 'gwei').toString()
: '0',
gasLimits: swapTx.gasLimit?.toString() ?? '0'
gasLimit: swapTx.gasLimit?.toString() ?? '0'
},
networkFeeOption: 'custom',
swapData: {
Expand Down
7 changes: 2 additions & 5 deletions src/swap/defi/uni-v2-based/plugins/tombSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,9 @@ export function makeTombSwapPlugin(
currencyCode: request.fromCurrencyCode, // what is being sent out, only if token. Blank if not token
spendTargets: [
{
memo: swapTx.data,
nativeAmount: swapTx.value != null ? swapTx.value.toString() : '0', // biggy/number string integer
publicAddress: swapTx.to,

otherParams: {
data: swapTx.data
}
publicAddress: swapTx.to
}
],
customNetworkFee: {
Expand Down
7 changes: 2 additions & 5 deletions src/swap/defi/uni-v2-based/plugins/velodrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,9 @@ export function makeVelodromePlugin(
currencyCode: request.fromCurrencyCode, // what is being sent out, only if token. Blank if not token
spendTargets: [
{
memo: swapTx.data,
nativeAmount: swapTx.value != null ? swapTx.value.toString() : '0', // biggy/number string integer
publicAddress: swapTx.to,

otherParams: {
data: swapTx.data
}
publicAddress: swapTx.to
}
],
customNetworkFee: {
Expand Down

0 comments on commit 220e213

Please sign in to comment.