@clonegod/ttd-bsc-common 3.0.20 → 3.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -121,6 +121,7 @@ class AbstractDexTrade extends ttd_core_1.AbastrcatTrade {
|
|
|
121
121
|
const transfer_amount_gwei = this.getBuilderTipAmoutGwei(context);
|
|
122
122
|
context.ui_tip_amount = new decimal_js_1.default(transfer_amount_gwei).div(Math.pow(10, 9)).toNumber();
|
|
123
123
|
const mainTx = {
|
|
124
|
+
type: 0,
|
|
124
125
|
to: this.tradeConfig.vaultAddress,
|
|
125
126
|
data: vaultCalldata,
|
|
126
127
|
gasLimit: this.chainConfig.gasOptions.gasLimit,
|
|
@@ -202,6 +203,7 @@ class AbstractDexTrade extends ttd_core_1.AbastrcatTrade {
|
|
|
202
203
|
const real_transfer_amount_gwei = Math.min(Number(transfer_amount_gwei), this.chainConfig.gasOptions.maxTipAmountGwei).toString();
|
|
203
204
|
const real_gas_price_gwei = Math.min(Number(gas_price_gwei), this.chainConfig.gasOptions.maxGasPriceGwei).toString();
|
|
204
205
|
const tx_data = {
|
|
206
|
+
type: 0,
|
|
205
207
|
from: wallet.address,
|
|
206
208
|
to,
|
|
207
209
|
value: ethersCompat.parseUnits(real_transfer_amount_gwei, 'gwei'),
|