diff --git a/src/core/distribution/distributeERC.ts b/src/core/distribution/distributeERC.ts index 750a11e..db49547 100644 --- a/src/core/distribution/distributeERC.ts +++ b/src/core/distribution/distributeERC.ts @@ -42,6 +42,10 @@ export const distributeERC = async (chain: Chain, tokenAddress: Hex) => { // axiosInstance: await refreshProxy(0), chain, }); - await sleep(getRandomArbitrary(2 * 3.6e6, 3 * 3.6e6)); + const time = getRandomArbitrary(2 * 3.6e6, 3 * 3.6e6); + logger.info(`sleep for ${time}`, { + label: "core/distributeERC", + }); + await sleep(time); } }; diff --git a/src/libs/erc20/approve.ts b/src/libs/erc20/approve.ts index cc1ebf6..db0cde9 100644 --- a/src/libs/erc20/approve.ts +++ b/src/libs/erc20/approve.ts @@ -30,6 +30,6 @@ export async function approve(params: ApproveSpendingParams) { const receipt = await walletClient.waitForTransactionReceipt({ hash: txHash, }); - logger.debug(`tx receipt: ${receipt}`, { label: "approve" }); + logger.info(`tx receipt: ${receipt.transactionHash}`, { label: "erc20/approve" }); return receipt; } diff --git a/src/libs/erc20/permit.ts b/src/libs/erc20/permit.ts index 66e691c..e384704 100644 --- a/src/libs/erc20/permit.ts +++ b/src/libs/erc20/permit.ts @@ -99,22 +99,6 @@ export const signPermit = async ({ deadline, }; - logger.debug( - `signature ${JSON.stringify( - { - // account: privateKeyToAccount(wallet.pkᵻ), - message, - domain: domainData, - primaryType: "Permit", - types, - }, - (_, v) => (typeof v === "bigint" ? v.toString() : v), - )}`, - { - label: "erc20/permit", - }, - ); - const signature = await client.signTypedData({ account: privateKeyToAccount(wallet.pkᵻ), message, diff --git a/src/libs/erc20/transfer.ts b/src/libs/erc20/transfer.ts index d2619f8..f8fdd6a 100644 --- a/src/libs/erc20/transfer.ts +++ b/src/libs/erc20/transfer.ts @@ -30,6 +30,6 @@ export async function transfer(params: TransferProps) { const receipt = await walletClient.waitForTransactionReceipt({ hash: txHash, }); - logger.debug(`tx receipt: ${receipt.transactionHash}`, { label: "approve" }); + logger.info(`tx receipt: ${receipt.transactionHash}`, { label: "erc20/transfer" }); return receipt; }