Skip to content

Commit e107322

Browse files
committed
FIX: MAYA Discard ERC20 Synths for EVM aprovals
1 parent e0c0dd0 commit e107322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/xchain-mayachain-amm/src/mayachain-amm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class MayachainAMM {
319319
private isERC20Asset(asset: Asset): boolean {
320320
// Check if the asset's chain is an EVM chain and if the symbol matches AssetETH.symbol
321321
return this.isEVMChain(asset.chain)
322-
? [AssetETH].findIndex((nativeEVMAsset) => eqAsset(nativeEVMAsset, asset)) === -1
322+
? [AssetETH].findIndex((nativeEVMAsset) => eqAsset(nativeEVMAsset, asset)) === -1 && !asset.synth
323323
: false
324324
}
325325

0 commit comments

Comments
 (0)