* toNative convert the ERC20 USDC (6 decimals) amount to native USDC (18 decimals) amount. * * @param amount {bigint} - the USDC ERC20 string amount. * @returns {bigint} - the native USDC amount.
(amount: bigint)
| 178 | * @returns {bigint} - the native USDC amount. |
| 179 | */ |
| 180 | static toNative(amount: bigint): bigint { |
| 181 | return amount * 1_000_000_000_000n |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * wrapper for getContract to attch to existing USDC contract. |
no outgoing calls