From 1af78d61cf0183faad901192b46cae959dee84a1 Mon Sep 17 00:00:00 2001 From: asiaznik Date: Wed, 31 Jan 2024 14:51:05 +0100 Subject: [PATCH] chore: added comment about the contract method and where they are from --- libs/utils/src/lib/format/ether.ts | 1 - libs/web3/src/lib/use-gas-price.ts | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/utils/src/lib/format/ether.ts b/libs/utils/src/lib/format/ether.ts index 1043476b3..eb56a6d40 100644 --- a/libs/utils/src/lib/format/ether.ts +++ b/libs/utils/src/lib/format/ether.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line no-restricted-imports import { formatNumber, toBigNum } from './number'; import type BigNumber from 'bignumber.js'; diff --git a/libs/web3/src/lib/use-gas-price.ts b/libs/web3/src/lib/use-gas-price.ts index c860456ee..76b824f6c 100644 --- a/libs/web3/src/lib/use-gas-price.ts +++ b/libs/web3/src/lib/use-gas-price.ts @@ -5,6 +5,12 @@ import BigNumber from 'bignumber.js'; const DEFAULT_INTERVAL = 15000; // 15 seconds +/** + * These are the hex values of the collateral bridge contract methods. + * + * Collateral bridge address: 0x23872549cE10B40e31D6577e0A920088B0E0666a + * Etherscan: https://etherscan.io/address/0x23872549cE10B40e31D6577e0A920088B0E0666a#writeContract + */ export enum ContractMethod { DEPOSIT_ASSET = '0xf7683932', EXEMPT_DEPOSITOR = '0xb76fbb75',