🛠 Babylon on-chain SDK

Ramon Recuero
Babylon.finance
Published in
5 min readMay 10, 2022

Babylon is a community-led asset management protocol that enables users to create investment clubs (we call them gardens) and invest in DeFi together. It’s built on the Ethereum network and it’s non-custodial, transparent, permission-less, and governed by the community. BABL is the governance token behind it.

TLDR: We have now open-sourced most of our smart contracts and released an SDK with all our interfaces so you can create tokenized ERC-20 investment clubs on-chain, aka Gardens.

Babylon Finance allows everybody to create their DeFi investment club and build wealth together with their community.

Until now, the easiest way to interact with Babylon was through our website.

We are really excited to announce that you can now create gardens directly from any smart contract.

🏛 Why build on Babylon?

Babylon provides a new DeFi lego building block for developers. The first DeFi Investment DAO primitive (ERC-20).

🌴🌴🌴 Babylon Gardens 🌴🌴🌴🌴

Gardens are tokenized investment clubs/DAOs where users can deposit digital assets and receive a tokenized share (ERC-20) representing their ownership priced in real-time.

Developers can build on top of Babylon Gardens and get a long list of benefits out of the box:

  • 🧱 Garden ERC-20 tokens are fully composable and transferrable.
  • 👌 Gardens are non-custodial and trust is minimized. Only users have access to their funds. Capital can only be allocated to strategies approved by the club.
  • 🎨 Gardens also provide an NFT Membership token (ERC-721). Members of a garden that meet selected requirements can mint their membership NFT.
  • 🗳️ Built-in light governance system with signature-based voting. Gas-free.
  • 🧙‍♂️ No code UI to create strategies and deploy capital to +15 DeFi protocols including Aave, Compound, Uniswap, Curve, and Convex.
  • DeFi execution costs are automatically shared between all members of a garden, increasing capital efficiency.
  • 💻 Garden UI where & managers can deposit/withdraw and monitor the performance of the investment club.

👐 Open-sourcing Babylon

We are taking a slow and deliberate approach to open-sourcing our smart contracts.

We are maintaining a balance between security and transparency.

Open-sourcing your contracts too early makes your protocol more vulnerable to vampire attacks, hostile takeovers, and black hat hackers that can kill it before it has had a chance to mature. Open-sourcing your contracts too late makes your protocol opaque and less appealing to build upon.

As we complete more and more security audits and our smart contracts become more battle-tested we are open-sourcing them and making them available on Etherscan.

Last summer, we released our critical governance contracts.

These contracts show how Babylon is owned directly by BABL holders: on-chain governor, the treasury, and the main controller.

Last week, we completed our 8th security audit. These audits paired with the public launch have propelled the protocol to the maturity needed to open-source the core contracts of Babylon: our gardens and the heart.

You can see all of our contracts in our docs.

🗒️ Smart Contract API

We just released a developer section in our documentation. It contains all the information you need to get started.

https://docs.babylon.finance/developers/building-on-babylon

In addition, we have released a Github repository with all the interfaces needed to start creating on-chain investment DAOs and DeFi strategies on-chain.

This repository includes tests with sample code that show you how to create gardens and strategies.

📹 How to get started

Babylon Finance is sponsoring HackMoney, an ETH global Hackathon that lasts for three weeks.

We have recorded a 30 minutes workshop to help developers get started building on Babylon. You can watch it here:

Here are some ideas of what you can build using Babylon.

  • Create an investment club with your friends through a Babylon garden. This was the original use case that prompted us to start Babylon. You can learn more about our origin here.
  • You can use it as a way to generate an index of different DeFi. For example, The pickle Field is a garden that gives exposure to many different Pickle Jars at once.
  • You can use it to simplify access to DeFi across different protocols. For example, the ⛲ Fountain of ETH generates yield on ETH by taking advantage of staking across different protocols.
  • You can use a garden to create a supercharged staking mechanic for any ERC-20 token. You can see more here. We use to create a staking mechanic for BABL itself, see the Heart.
  • Automatically create and deploy strategies to react to and market conditions. You can execute and trigger strategies directly from your smart contracts.

🌴 Join Babylon

If you haven’t used Babylon yet, you can visit Babylon by clicking this link👇

https://babylon.finance/explore

We are building Babylon to help people access the best opportunities in crypto through native DeFi investment clubs or gardens. You can now invest along with others, save on gas, speed up your learning and minimize your transactions all at once.

Here are some of the top-performing gardens in Babylon:

⛲️ The Fountain of ETH. Deposit ETH and grow it using staking and lending strategies.

💲The Stable Garden. Deposit and grow your DAI with yield farming strategies.

🫀The Heart of Babylon. Stake your BABL, reinvest protocol fees and vote on governance for free.

If you have any questions, comments, or ideas please join our Discord.

--

--

Ramon Recuero
Babylon.finance

Cofounder at Kinto. Previously at Babylon Finance, Y Combinator, Zynga, Google and OpenZeppelin.