From 0735a4b4e3dfda4a9e370d7db6b835b652d18765 Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Fri, 1 Apr 2022 16:31:37 +0200 Subject: [PATCH] update comments related to amount units --- src/utils/TokenUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/TokenUtils.ts b/src/utils/TokenUtils.ts index 6d28225f..ec29d788 100644 --- a/src/utils/TokenUtils.ts +++ b/src/utils/TokenUtils.ts @@ -45,7 +45,7 @@ export async function estApprove( * @param {String} account * @param {String} tokenAddress * @param {String} spender - * @param {String} amount (always expressed as wei) + * @param {String} amount amount of ERC20 tokens, expressed without decimals (not as wei) * @param {String} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed */ export async function approve( @@ -126,7 +126,7 @@ export async function estTransfer( * @param {String} account * @param {String} tokenAddress * @param {String} recipient - * @param {String} amount (always expressed as wei) + * @param {String} amount amount of ERC20 tokens, expressed without decimals (not as wei) * @param {String} force if true, will overwrite any previous allowence. Else, will check if allowence is enough and will not send a transaction if it's not needed */ export async function transfer(