> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anchorage.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using DApps and smart contracts

> Connect your Porto wallet to decentralized applications and smart contracts.

Porto allows you to connect your vault wallets to decentralized applications (DApps) like DEXes, lending protocols, and other blockchain services. You can then use your assets for trading, staking, lending, and other operations while maintaining the security of your vaults.

## What is a DApp

A DApp (decentralized application) is an application running on a blockchain that you can interact with using your crypto wallet. Examples include:

* **DEX (Decentralized Exchange)** — Uniswap, Curve, SushiSwap
* **Lending protocols** — Aave, Compound, dYdX
* **Staking services** — Lido, Frax, Curve staking
* **Bridges** — Cross-chain bridges for moving assets between blockchains
* **NFT marketplaces** — OpenSea, Blur, other NFT platforms

## Connect Porto to a DApp

<Steps>
  <Step title="Find the DApp">
    Open the DApp website or app in your browser on your mobile device.
  </Step>

  <Step title="Select connect wallet">
    Most DApps have a "Connect wallet" or "Select wallet" button. Tap it.
  </Step>

  <Step title="Choose WalletConnect or mobile wallet option">
    Select the option for connecting a mobile wallet. Common options include:

    * **WalletConnect** — Scan a QR code to connect securely
    * **Mobile wallet** — Direct connection if Porto is installed
    * **Metamask** — If the DApp supports Metamask-like wallets
  </Step>

  <Step title="Approve the connection">
    Porto will prompt you to approve connecting to the DApp. Review the DApp's request carefully.
  </Step>

  <Step title="Authenticate with biometric">
    Complete Face ID or Touch ID to authorize the wallet connection.
  </Step>

  <Step title="Start using the DApp">
    Once connected, your wallet address will appear in the DApp. You can now execute transactions.
  </Step>
</Steps>

## Approving transactions

When you execute a transaction on a DApp (like trading or staking):

<Steps>
  <Step title="Review the transaction">
    The DApp will show you:

    * Assets you're sending
    * Assets you're receiving
    * Gas fees or network costs
    * Any other transaction details
  </Step>

  <Step title="Approve in Porto">
    Porto will prompt you to approve the transaction. Review the details carefully — **you cannot undo transactions once they're on-chain**.
  </Step>

  <Step title="Confirm with biometric">
    Complete Face ID or Touch ID to authorize the transaction.
  </Step>

  <Step title="Transaction processing">
    The DApp will submit your transaction to the blockchain. You'll see a status indicator while the transaction is processing.
  </Step>

  <Step title="Monitor completion">
    Use the [Activity log](/knowledge-base/porto/assets/activity-history) to track the transaction status and see when it confirms on-chain.
  </Step>
</Steps>

<Warning>
  Smart contracts and DApps carry risks. A malicious or buggy smart contract could:

  * Drain your wallet unexpectedly
  * Execute trades with poor prices
  * Lock your assets or make them inaccessible

  Only use DApps you trust, and start with small amounts if you're unfamiliar with a service.
</Warning>

## DApp permissions and security

When you connect Porto to a DApp, you're granting it certain permissions:

| Permission               | What it allows                                                           |
| :----------------------- | :----------------------------------------------------------------------- |
| **Read address**         | The DApp can see your wallet address and balance                         |
| **Send transactions**    | The DApp can create transactions you must approve in Porto               |
| **Approve ERC20 tokens** | The DApp can be allowed to spend specific tokens (you approve the limit) |

Each time you interact with a DApp, you'll be asked to approve that specific action. Porto never gives blanket access — you approve each transaction individually.

## Disconnect from a DApp

If you want to revoke a DApp's access:

<Steps>
  <Step title="Open the DApp settings">
    Most DApps have a **Settings** or **Account** menu.
  </Step>

  <Step title="Find wallet connections">
    Look for **Connected wallets**, **Wallet permissions**, or **Connected accounts**.
  </Step>

  <Step title="Disconnect Porto">
    Select your Porto wallet and tap **Disconnect** or **Revoke access**.
  </Step>

  <Step title="Confirm disconnection">
    The DApp will no longer be able to initiate transactions from your wallet.
  </Step>
</Steps>

## Best practices for DApp safety

* **Start small** — Test a DApp with a small amount first
* **Use testnet** — Many DApps have test versions where you can practice without real money
* **Research the DApp** — Check reviews, audit reports, and community feedback before using
* **Understand the contract** — Read the DApp's documentation to understand what the smart contract does
* **Keep your password safe** — Your Porto password is your master key — never share it, even with DApps
* **Monitor your balance** — Regularly check your wallet balance to spot unauthorized activity
* **Use [trusted destinations](/knowledge-base/porto/assets/trusted-destinations)** — For frequently used DApps, you can set up trusted addresses to speed up transactions

## For advanced users

See [Smart contracts](/knowledge-base/porto/advanced/smart-contracts) for details on interacting with complex smart contracts and understanding contract interactions at a deeper level.
