Skip to content

Commit

Permalink
chore: only log debug msg if not dai-like
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Nov 14, 2023
1 parent 212cf48 commit a87e4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/permit-utils/src/lib/getTokenPermitInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ async function actuallyCheckTokenIsPermittable(params: GetTokenPermitInfoParams)
return await estimateTokenPermit({ ...baseParams, type: 'eip-2612', provider })
} catch (e) {
// Not eip-2612, try dai-like
console.debug(`[checkTokenIsPermittable] Failed to estimate eip-2612 permit for ${tokenAddress}`, e)
try {
const isDaiLike = await isDaiLikeTypeHash(tokenAddress, eip2612PermitUtils)

if (!isDaiLike) {
console.debug(`[checkTokenIsPermittable] Failed to estimate eip-2612 permit for ${tokenAddress}`, e)
return { error: e.message || e.toString() }
}

Expand Down

0 comments on commit a87e4b5

Please sign in to comment.