Exercise Balancer Add Liquidity

A detailed guide to Balancer liquidity joining. The lesson covers transferring rETH and WETH from the message sender, approving Balancer to spend these tokens, calling the internal function to add liquidity, and refunding any leftover rETH and WETH to the message sender.

Join the Rocket Pool Discord Server

Stay in the loop with the latest Rocket Pool updates and connect with over 5,000 developers in the community.

Solidity Developer

Rocket Pool rETH Integration

1. Balancer Intro
A detailed guide to understanding the voting escrow tokenomics on Balancer V2. The lesson covers the process of providing liquidity on Balancer V2, staking liquidity provider tokens, and the benefits of locking those tokens into the Voting Escrow contract, including increased rewards and voting power. Duration: 6min
2. Aura Intro
A detailed explanation of the Aura protocol - The lesson covers how the Aura protocol streamlines the process of earning boosted Balancer rewards by using a dedicated contract to automatically lock BPT tokens, claim rewards, and convert them to liquid Balancer liquidity provider tokens (BPT). This lesson also explains how the protocol splits the boosted rewards between the protocol and the users. Duration: 2min
3. Balancer UI Walkthrough
A comprehensive guide to liquidity providing on Balancer. The video lesson covers how to provide liquidity to a Balancer pool, how to stake your BPT tokens for a boosted APR, and how to claim your rewards. Duration: 2min
4. Aura UI Walkthrough
A comprehensive guide to providing liquidity to a Balancer pool on Aura Finance. The lesson covers the process of providing liquidity to a Balancer pool on Aura Finance, including how to locate the specific pool, deposit liquidity, and claim rewards. Duration: 1min
5. Balancer Aura Transactions
A comprehensive guide to interacting with the Balancer and Aura protocols - Learn how to add liquidity to a Balancer pool, stake your LP tokens in a Liquidity Gauge, lock your LP tokens, vote for rewards, and claim rewards. This lesson also includes real-world examples of transactions on the mainnet. Duration: 1min
7. Exercise Balancer Add Liquidity
A detailed guide to Balancer liquidity joining. The lesson covers transferring rETH and WETH from the message sender, approving Balancer to spend these tokens, calling the internal function to add liquidity, and refunding any leftover rETH and WETH to the message sender. Reading Time: 0min
8. Solution Balancer Add Liquidity
A comprehensive guide to adding liquidity to a Balancer B2AMM. This lesson covers the code needed to transfer tokens to the Balancer B2AMM contract, approve the Balancer B2 Vault contract to spend the tokens, and call the internal join function to add liquidity to the pool. We also demonstrate a test function to verify the process. Duration: 5min
9. Exercise Balancer Remove Liquidity
A practical guide to mastering the `BalancerLiquidity.exit` function. This lesson focuses on how to remove liquidity from Balancer, including transferring BPT and calling the internal `_exit` function with correct parameters and recipient. Reading Time: 0min
10. Solution Balancer Remove Liquidity
A comprehensive guide to exiting liquidity from a Balancer B2M pool. This lesson covers the essential steps of transferring your Balancer Pool Tokens (BPT) to the contract, calling the internal 'exitPool' function, and preparing the parameters for this internal function. Duration: 3min
11. Exercise Aura Add Liquidity
An insightful exercise to `AuraLiquidity.deposit` - This lesson walks you through the process of depositing rETH into the Aura liquidity pool, covering rETH transfers, liquidity addition via depositWrapper, refunds, and share retrieval. Reading Time: 0min
12. Solution Aura Add Liquidity
A comprehensive guide to adding liquidity to a Balancer v2 pool using Aura Finance. The lesson covers the functions necessary to transfer RETH from the sender to the Aura liquidity contract and to prepare the parameters required to add liquidity through the deposit wrapper contract. The video also provides examples of the parameters that should be utilized when adding liquidity to a Balancer v2 pool. Duration: 5min
13. Exercise Aura Get Reward
A comprehensive guide to getReward on AuraLiquidity - Learn how to claim rewards using rewardPool.getReward function. This lesson covers the process of claiming earned rewards within the AuraLiquidity system, focusing on the specific function call required to initiate the reward retrieval. Duration: 0min
14. Solution Aura Get Reward
A basic guide to claiming rewards from a reward pool smart contract. The lesson covers how to trigger the reward claim from the reward pool on behalf of the contract as well as how to transfer the claimed rewards to a destination address. Duration: 1min
15. Exercise Aura Remove Liquidity
A detailed guide to AuraLiquidity.exit - This lesson walks you through how to safely withdraw from Aura and Balancer. You'll learn how to withdraw BPT from Aura and how to remove liquidity from Balancer. Reading Time: 0min
16. Solution Aura Remove Liquidity
A comprehensive guide to exiting liquidity from the Aura protocol. This lesson covers withdrawing BPT tokens from the balancer pool, claiming rewards, and executing the necessary test to confirm the results. Duration: 4min

Course Overview

About the course

What you'll learn

Rocket Pool rETH staking, yield mechanisms, trading options, and contract architecture

How to distribute rewards and calculate rETH/ETH exchange rate

How to acquire and redeem rETH

Integrating rETH into DeFi protocols like AAVE V3

How to how to create leveraged ETH positions using rETH

How to provide rETH as liquidity to Balancer and Aura

Getting the USD price of rETH using Rocket Pool NAV oracle

Re-staking with EigenLayer

Course Description

Who is this course for?

  • Web3 Developers
  • Software Engineers
  • Financial Analysts
  • Finance developers
  • Smart Contract Security Researchers

Potential Careers

DeFi Developer

$75,000 - $200,000 (avg. salary)

Smart Contract Engineer

$100,000 - $150,000 (avg. salary)

Web3 developer

$60,000 - $150,000 (avg. salary)

Smart Contract Auditor

$100,000 - $200,000 (avg. salary)

Blockchain Financial Analyst

$100,000 - $150,000 (avg. salary)

Web3 Developer Relations

$85,000 - $125,000 (avg. salary)

Last updated on May 12, 2025

Testimonials

Students Reviews

Read what our students have to say about this course.

Chainlink

Chainlink

Chainlink

Gustavo Gonzalez

Gustavo Gonzalez

Solutions Engineer at OpenZeppelin

Francesco Andreoli

Francesco Andreoli

Lead Devrel at Metamask

Albert Hu

Albert Hu

DeForm Founding Engineer

Radek

Radek

Senior Developer Advocate at Ceramic

Boidushya

Boidushya

WalletConnect

Idris

Idris

Developer Relations Engineer at Axelar