four-flap-meme-sdk 1.9.35 → 1.9.36
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.
|
@@ -242,7 +242,7 @@ function getBaseTokenAddress(baseToken, chain, customAddress) {
|
|
|
242
242
|
function getRouterAddress(tradeType, chain, v2RouterOverride) {
|
|
243
243
|
if (chain === 'ENI') {
|
|
244
244
|
switch (tradeType) {
|
|
245
|
-
case 'v2': return ENI_V2_ROUTER_ADDRESS;
|
|
245
|
+
case 'v2': return v2RouterOverride || ENI_V2_ROUTER_ADDRESS;
|
|
246
246
|
case 'daoaas': return ENI_DAOAAS_PORTAL_ADDRESS;
|
|
247
247
|
default: throw new Error(`ENI 链不支持交易类型: ${tradeType},仅支持 daoaas/v2`);
|
|
248
248
|
}
|