1
1
import { ExecuteInstruction , ExecuteResult } from '@cosmjs/cosmwasm-stargate' ;
2
2
import { Coin , coin } from '@cosmjs/proto-signing' ;
3
- import { DeliverTxResponse , GasPrice , StdFee } from '@cosmjs/stargate' ;
3
+ import { DeliverTxResponse , GasPrice } from '@cosmjs/stargate' ;
4
4
import {
5
5
CosmosChainId ,
6
6
IBCInfo ,
@@ -11,7 +11,13 @@ import {
11
11
ibcInfosOld ,
12
12
oraichain2oraib ,
13
13
BigDecimal ,
14
- GAS_ESTIMATION_BRIDGE_DEFAULT
14
+ GAS_ESTIMATION_BRIDGE_DEFAULT ,
15
+ buildMultipleExecuteMessages ,
16
+ calculateTimeoutTimestamp ,
17
+ getEncodedExecuteContractMsgs ,
18
+ parseTokenInfo ,
19
+ toAmount ,
20
+ MULTIPLIER_ESTIMATE_OSMOSIS
15
21
} from '@oraichain/oraidex-common' ;
16
22
import { flattenTokens , kawaiiTokens , tokenMap } from 'config/bridgeTokens' ;
17
23
import { chainInfos } from 'config/chainInfos' ;
@@ -20,13 +26,6 @@ import { feeEstimate, getNetworkGasPrice } from 'helper';
20
26
21
27
import { CwIcs20LatestClient } from '@oraichain/common-contracts-sdk' ;
22
28
import { TransferBackMsg } from '@oraichain/common-contracts-sdk/build/CwIcs20Latest.types' ;
23
- import {
24
- buildMultipleExecuteMessages ,
25
- calculateTimeoutTimestamp ,
26
- getEncodedExecuteContractMsgs ,
27
- parseTokenInfo ,
28
- toAmount
29
- } from '@oraichain/oraidex-common' ;
30
29
import { OraiswapTokenClient } from '@oraichain/oraidex-contracts-sdk' ;
31
30
import { Long } from 'cosmjs-types/helpers' ;
32
31
import { MsgTransfer } from 'cosmjs-types/ibc/applications/transfer/v1/tx' ;
@@ -179,8 +178,7 @@ export const transferIBCMultiple = async (
179
178
} ) ;
180
179
// hardcode fix bug osmosis
181
180
let fee : 'auto' | number = 'auto' ;
182
- const MULTIPLIER_OSMOSIS = 3 ;
183
- if ( fromChainId === 'osmosis-1' ) fee = MULTIPLIER_OSMOSIS ;
181
+ if ( fromChainId === 'osmosis-1' ) fee = MULTIPLIER_ESTIMATE_OSMOSIS ;
184
182
const result = await client . signAndBroadcast ( fromAddress , encodedMessages , fee ) ;
185
183
return result as DeliverTxResponse ;
186
184
} ;
0 commit comments