Skip to content

Commit f131122

Browse files
peachbitssamholmes
authored andcommitted
Fix tcy stake plugin tokenId in quote allocation
1 parent 98337fb commit f131122

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎eslint.config.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ export default [
467467
'src/plugins/stake-plugins/generic/policyAdapters/EthereumKilnAdaptor.ts',
468468
'src/plugins/stake-plugins/generic/policyAdapters/GlifInfinityPoolAdapter.ts',
469469
'src/plugins/stake-plugins/generic/policyAdapters/TarotPoolAdaptor.ts',
470-
'src/plugins/stake-plugins/generic/policyAdapters/ThorchainYieldAdaptor.ts',
470+
471471
'src/plugins/stake-plugins/generic/util/EdgeWalletSigner.ts',
472472
'src/plugins/stake-plugins/generic/util/KilnApi.ts',
473473
'src/plugins/stake-plugins/generic/util/tarotUtils.ts',

‎src/plugins/stake-plugins/generic/policyAdapters/ThorchainYieldAdaptor.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const makeThorchainYieldAdapter = (
147147
{
148148
allocationType: 'stake',
149149
pluginId: requestAssetId.pluginId,
150-
tokenId: null,
150+
tokenId: requestAssetId.tokenId,
151151
currencyCode: requestAssetId.currencyCode,
152152
nativeAmount: requestNativeAmount
153153
},
@@ -160,7 +160,7 @@ export const makeThorchainYieldAdapter = (
160160
}
161161
]
162162

163-
const approve = async () => {
163+
const approve = async (): Promise<void> => {
164164
let signedTx = await wallet.signTx(edgeTx)
165165
signedTx = await wallet.broadcastTx(signedTx)
166166
await wallet.saveTx(signedTx)
@@ -241,7 +241,7 @@ export const makeThorchainYieldAdapter = (
241241
}
242242
]
243243

244-
const approve = async () => {
244+
const approve = async (): Promise<void> => {
245245
let signedTx = await wallet.signTx(edgeTx)
246246
signedTx = await wallet.broadcastTx(signedTx)
247247
await wallet.saveTx(signedTx)

0 commit comments

Comments
 (0)