Skip to content

Commit 3b4b414

Browse files
authored
Update example.mdx
1 parent c16670f commit 3b4b414

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/pages/example.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ Below are some example snippets to help you get started.
99
## Bridging tokens
1010

1111
```solidity
12-
uint256 coreAmount = PrecompileLib.convertEvmToCoreAmount(usdc, evmAmount);
13-
CoreWriterLib.bridgeToCore(usdc, coreAmount, coreRecipient);
12+
uint256 coreAmount = PrecompileLib.convertEvmToCoreAmount(uBTC, evmAmount);
13+
CoreWriterLib.bridgeToCore(uBTC, coreAmount, coreRecipient);
1414
```
1515

1616
## Reading precompiles by EVM address
1717

1818
```solidity
19-
uint256 spotIdx = TokenRegistry.getSpotIndex(usdc);
20-
uint256 px = PrecompileLib.spotPxByAddress(usdc);
19+
uint256 spotIdx = TokenRegistry.getSpotIndex(uBTC);
20+
uint256 px = PrecompileLib.spotPxByAddress(uBTC);
2121
```
2222

2323
See the repository `examples/` directory for full working examples.

0 commit comments

Comments
 (0)