Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Feb 13, 2024
1 parent 699d845 commit bfaf01b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export default function DepositButton() {
args: [address ? address : "0x", env.NEXT_PUBLIC_DARKPOOL_CONTRACT as `0x${string}`],
watch: true
})
console.log("🚀 ~ DepositButton ~ allowance:", allowance)
const needsApproval = allowance === BigInt(0)
console.log("🚀 ~ DepositButton ~ needsApproval:", needsApproval)

const { config } = usePrepareErc20Approve({
address: Token.findAddressByTicker(baseTicker) as `0x${string}`,
Expand Down

0 comments on commit bfaf01b

Please sign in to comment.