/polybond-core

Primary LanguageSolidityMIT LicenseMIT

PolyBond

PolyBond is a Polygon based tool that helps any blockchain product with tokens manage their liquidity in a more sustainable way. It does this by enabling the project owners to quickly and automatically deploy a bonding system (complete with contracts, UI etc) through which users with LP Tokens can deposit them in the projects treasury in exchange for its tokens (or any payout token determined by the owners) at a discounted price.

  • PolyBond can help ensure project tokens always have adequate liquidity in DEXes, even during bear markets
  • Some projects using similar tools have profited massively from liquidity pool rewards
  • It helps remove the risk of impermanent loss for liquidity miners

The mechanism implemented by PolyBond is called Protocol Owned Liquidity (POL) and it was pioneered by Olympus DAO. It has been termed DeFi 2.0.

Here is a short video explaining how PolyBond works. Here are slides that explain Protocol-Owned Liquidity, the concept PolyBond helps execute.

Interact with PolyBond here.

Tech Stack

PolyBond was built on the Polygon blockchain. It was deployed on the Mumbai testnet using Alchemy.

Other Tools Used

  1. Solidity
  2. Hardhat
  3. Next.js
  4. Tailwind CSS

It is an EIP-2535 Diamond Standard compliant project. This means it follows the most up to date best practices for building software on EVM-compatible networks. Projects built with the Diamond Standard are more gas efficient, secure and flexible.

Installation

  1. Clone this repo:
git clone git@github.com:name_of_organisation/name_of_repo.git
  1. Install NPM packages:
cd name_of_repo
yarn install

Deployment

npx hardhat run scripts/deploy.ts

Run tests:

npx hardhat test

Useful Links

  1. Why Web3 Projects Should Move to Protocol-Owned Liquidity
  2. DeFi 2.0: An Alternative Solution to Liquidity Mining
  3. Introduction to the Diamond Standard, EIP-2535 Diamonds
  4. EIP-2535 Diamonds