diff --git a/src/bridges/xtoken-next.ts b/src/bridges/xtoken-next.ts index dcc0c593..2e7d0802 100644 --- a/src/bridges/xtoken-next.ts +++ b/src/bridges/xtoken-next.ts @@ -234,7 +234,7 @@ export class XTokenNextBridge extends BaseBridge { const limit = await this.targetPublicClient.readContract({ address: this.contract.targetAddress, abi: (await import("@/abi/xtoken-issuing-next")).default, - functionName: "dailyLimit", + functionName: "calcMaxWithdraw", args: [this.targetToken.inner], }); return { limit, spent: 0n, token: this.sourceToken }; diff --git a/src/bridges/xtoken-v3.ts b/src/bridges/xtoken-v3.ts index 022e5d99..a602f9f1 100644 --- a/src/bridges/xtoken-v3.ts +++ b/src/bridges/xtoken-v3.ts @@ -155,7 +155,7 @@ export class XTokenV3Bridge extends BaseBridge { const limit = await this.targetPublicClient.readContract({ address: this.contract.targetAddress, abi: (await import("@/abi/xtoken-issuing")).default, - functionName: "dailyLimit", + functionName: "calcMaxWithdraw", args: [this.targetToken.address], }); return { limit, spent: 0n, token: this.sourceToken };