MCPcopy Create free account
hub / github.com/circlefin/arc-node / toNative

Method toNative

tests/helpers/FiatToken.ts:180–182  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 5

verifyBatchEventsFunction · 0.80
verifySuccessFunction · 0.80
subcall.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 2

verifyBatchEventsFunction · 0.64
verifySuccessFunction · 0.64