How to withdraw your funds from Gain vaults using Smart Contracts: A complete guide

How to withdraw your funds from Gain vaults using Smart Contracts: A complete guide

How to withdraw your funds from Gain vaults using Smart Contracts: A complete guide

Giri

Sep 2, 2025

Sep 2, 2025

Sep 2, 2025

4 min

4 min

4 min

If you want to withdraw your funds without using the Gain dApp, you can do so directly through the smart contracts on Etherscan. This guide explains the exact steps for both the Airdrop Gain vault (agETH) and the High Growth vault (hgETH).

Important: This process requires direct blockchain interaction. Follow each step exactly as written. If you're unsure about any step, seek help from someone experienced with blockchain transactions.

Overview of the process

The withdrawal process has three main stages:

  1. Connect your wallet to Etherscan (the blockchain explorer)

  2. Request withdrawal of your funds (then wait 3-4 days)

  3. Claim your ETH after the waiting period

You'll need:

  • Your cryptocurrency wallet (MetaMask, Trust Wallet, etc.)

  • Your vault receipt tokens (agETH or hgETH)

  • Enough ETH for transaction fees (gas)

Part 1: Withdrawing from the Airdrop Gain vault (agETH)

Step 1: Connect your wallet to Etherscan

  1. Open your browser and go to this exact link: https://etherscan.io/address/0xe1B4d34E8754600962Cd944B535180Bd758E6c2e#writeProxyContract

  2. Look for the "Connect to Web3" button (found under the "Contract" tab in the "Write Contract" section). Click it.

  3. Your wallet will pop up. Select the wallet address that holds your agETH tokens and click "Connect".

Step 2: Request your withdrawal

  1. On the same Etherscan page, make sure you're on the "Write Contract" tab.

  2. Find the function called requestRedeem (0x7d41c86e). Click the dropdown arrow to expand it.

  3. Fill in these three fields exactly:
    shares (uint256): Enter your agETH amount in Wei format

    • To convert: multiply your agETH amount by 10^18

    • Examples:

      • 1 agETH = 1000000000000000000

      • 0.5 agETH = 500000000000000000

      • 2 agETH = 2000000000000000000

      • 0.1 agETH = 100000000000000000

  4. receiverAddr (address): Your Ethereum wallet address (where you want to receive the ETH)
    holderAddr (address): The same wallet address that currently holds your agETH tokens (usually the same as receiverAddr)

  5. Click the "Write" button.

  6. Your wallet will ask you to confirm the transaction. Check the details and gas fee, then click "Confirm".

Step 3: Wait 3-4 days

After your transaction confirms, you must wait approximately 3-4 days. This waiting period is built into the vault's mechanism and cannot be skipped.

Step 4: Claim your ETH

After the waiting period:

  1. Return to the same Etherscan page. Ensure your wallet is still connected.

  2. Find the function called claim (0xb3c9e83d). Click the dropdown arrow to expand it.

  3. Fill in these four fields:
    year (uint256): Enter the year the withdrawal was processed
    month (uint256): Enter the month the withdrawal was processed
    day (uint256): Enter the day the withdrawal was processed
    (Note: You can generally use any past date - the system verifies eligibility based on your requestRedeem transaction)
    receiverAddr (address): The same Ethereum address you used in Step 2

  4. Click the "Write" button.

  5. Confirm the transaction in your wallet.

Once this transaction confirms, your ETH will be in your wallet.

Part 2: Withdrawing from the High Growth vault (hgETH)

Step 1: Connect your wallet to Etherscan

  1. Open your browser and go to this exact link: https://etherscan.io/address/0xc824A08dB624942c5E5F330d56530cD1598859fD#writeProxyContract

  2. Look for the "Connect to Web3" button (found under the "Contract" tab in the "Write Contract" section). Click it.

  3. Your wallet will pop up. Select the wallet address that holds your hgETH tokens and click "Connect".

Step 2: Process your withdrawal

  1. On the same Etherscan page, make sure you're on the "Write Contract" tab.

  2. Find the function called processWithdrawal (0x8260910c). Click the dropdown arrow to expand it.

  3. Fill in these two fields exactly:
    account (address): Your Ethereum wallet address that holds the hgETH tokens
    shares (uint256): Enter your hgETH amount in Wei format

    • To convert: multiply your hgETH amount by 10^18

    • Examples:

      • 1 hgETH = 1000000000000000000

      • 0.5 hgETH = 500000000000000000

      • 2 hgETH = 2000000000000000000

      • 0.1 hgETH = 100000000000000000

  4. Click the "Write" button.

  5. Your wallet will ask you to confirm the transaction. Check the details and gas fee, then click "Confirm".

Step 3: Wait 3-4 days

After your transaction confirms, you must wait approximately 3-4 days. This waiting period is built into the vault's mechanism and cannot be skipped.

Step 4: Claim your ETH

After the waiting period:

  1. Return to the same Etherscan page. Ensure your wallet is still connected.

  2. Find the function called claim (0xb3c9e83d). Click the dropdown arrow to expand it.

  3. Fill in these four fields:
    year (uint256): Enter the year the withdrawal was processed (or any past year)
    month (uint256): Enter the month the withdrawal was processed (or any past month)
    day (uint256): Enter the day the withdrawal was processed (or any past day)
    receiverAddr (address): The same Ethereum address that holds your hgETH

  4. Click the "Write" button.

  5. Confirm the transaction in your wallet.

Once this transaction confirms, your ETH will be in your wallet.

Critical reminders

  • Double-check all contract addresses - Use only the exact links provided above

  • Wei conversion is crucial - Entering the wrong amount can result in loss of funds. Always multiply by 10^18 (add 18 zeros)

  • Keep enough ETH for gas - You need ETH for both the initial withdrawal request AND the final claim transaction

  • The 3-4 day wait is mandatory - This is an estimate and may vary slightly

  • Test with small amounts first if you're unsure

  • Seek help if needed - If you encounter issues or are unsure about any step, ask for help from someone experienced with blockchain transactions

Remember: You're interacting directly with smart contracts. There's no "undo" button. Take your time and verify each step before proceeding.

Sign up for more interesting blogs & updates