π Using the cAssets / dToken Wrapper with MetaMask
π Table of Contentsβ
- π‘ What is the cAssets dToken Wrapper?
- β Requirements
- π Step 1 β Open the dApp & Connect Wallet
- π Step 2 β Wrap cAssets into dTokens
- β©οΈ Step 3 β Unwrap dTokens into cAssets
- π± Step 4 β Swap Tokens (DEX)
π‘ What is the cAssets dToken Wrapper?β
The cAssets dToken Wrapper is a community frontend built by the DeFiChain Community, developed by the DTL Team (Dex Trading Live). It was created as a replacement for the discontinued VanillaSwap UI.
| Feature | Description |
|---|---|
| Wrap | Convert cAssets (EVM side) into dTokens (native DeFiChain) |
| Unwrap | Convert dTokens back into cAssets |
| Swap | Exchange tokens directly via the DeFiMetaChain DEX |
Examples of supported assets:
| cAsset (EVM) | dToken (Native) |
|---|---|
cUSDC | dUSDC |
cDFI | DFI |
βΉοΈ cAssets are tokens on the EVM side of DeFiMetaChain (compatible with MetaMask). dTokens are tokens on the native DeFiChain side. The wrapper bridges both sides.
β οΈ The dApp is still in active development β minor bugs may occur.
β Requirementsβ
- MetaMask installed (browser extension)
- DeFiMetaChain network added to MetaMask
- cAssets or DFI in your wallet for transactions
- Some DFI for gas fees
β οΈ Without DFI for gas, no transactions can be made!
π Step 1 β Open the dApp & Connect Walletβ
1.1 β Open the dAppβ
Open your browser and type the URL manually:
https://defichaincommunity.github.io/cAssets_dToken_wrapper/
β οΈ Always type the URL manually β phishing sites imitate dApps!
1.2 β Connect Your Walletβ
Click "Connect Wallet" on the homepage and select "MetaMask".
1.3 β Confirm the Connection in MetaMaskβ
MetaMask will open automatically:
- Check the displayed website address:
defichaincommunity.github.io
- Select your account
- Click "Connect"
β Your wallet address will appear at the top of the dApp β connection active!
π Step 2 β Wrap cAssets into dTokensβ
"Wrapping" means transferring cAssets from the EVM side to the native DeFiChain side.
2.1 β Open the Wrap Functionβ
Click "Wrap" or "Convert" in the navigation.
2.2 β Select Token and Amountβ
- Select the cAsset you want to wrap (e.g.
cUSDC) - Enter the amount
- The target dToken is shown automatically (e.g.
dUSDC)
2.3 β Approve the Token (first time only)β
On first use, you need to allow MetaMask to use the token:
- Click "Approve"
- MetaMask opens with an approval request
- Check the token and amount
- Click "Confirm"
βΉοΈ The approval transaction costs a small gas fee in DFI and only needs to be done once per token.
2.4 β Confirm the Wrapβ
- Click "Wrap" / "Convert"
- MetaMask opens with the transaction request
- Check the amount and gas fees
- Click "Confirm"
β After confirmation, the dTokens will appear in your native DeFiChain wallet.
β©οΈ Step 3 β Unwrap dTokens into cAssetsβ
"Unwrapping" means transferring dTokens from the native DeFiChain side back to the EVM side.
3.1 β Open the Unwrap Functionβ
Click "Unwrap" or switch the direction of the converter.
3.2 β Select Token and Amountβ
- Select the dToken you want to unwrap (e.g.
dUSDC) - Enter the amount
- The target cAsset is shown automatically (e.g.
cUSDC)
3.3 β Confirm the Transactionβ
- Click "Unwrap"
- Confirm in MetaMask
- cAssets will appear in your MetaMask wallet
π± Step 4 β Swap Tokens (DEX)β
The wrapper also includes a swap function for the DeFiMetaChain DEX.
4.1 β Open Swapβ
Click "Swap" in the navigation.
4.2 β Select Tokensβ
- Select the token you are selling (e.g.
DFI) - Select the token you want to receive (e.g.
cUSDC) - Enter the amount
- The exchange rate and expected output are displayed
4.3 β Check Slippageβ
π‘ Slippage is the maximum price deviation you accept. Increase it if liquidity is low.
4.4 β Confirm the Swapβ
- Click "Swap"
- MetaMask opens with the transaction request
- Check: amount, token received, gas fees
- Click "Confirm"
β The swapped tokens will appear in your wallet after confirmation!
π Official Linksβ
| Resource | Link |
|---|---|
| π cAssets dToken Wrapper | defichaincommunity.github.io |
| π DeFiChain Blog | blog.defichain.com |
| π DeFiChain Website | defichain.com |