⚙️ Architecture

Smart Contract Architecture

  • VIBES Token - The ERC-20 token contract for VIBES

  • VIBES Wellspring V1 - The original VIBES Wellspring contract that handles the bookkeeping associated with provenance mining. Read data is proxied through the Wellspring V2 contract now, but the original infused VIBES are still locked in this contract.

  • VIBES Wellspring V2 - Wellspring V2 improves on V1 by adding support for multiple NFT contracts, better on-chain enumerability, and multi-artist support. Locked tokens cannot be removed except by NFT owners via provenance mining

  • Token Lock Manager V1 - Simple lock/unlock switch for a given token ID with a time-release for unlocking. "Locking" a token just sets a flag on this contract, which can be checked by other contracts before allowing actions (such as claiming mined VIBES)

  • Token Lock Manager V2 - Same as V1, except it supports multiple NFT contracts

  • SQNCR - Core ERC-721 for SQNCR. Controls minting and metadata management

  • SQNCR Shell v1 - Current metadata resolver for the SQNCR NFTs.

  • Vote Power Adapter - Exposes the VIBES vote power for a given address. Maintains a list of strategy contracts that are summed together

  • Strategy Contracts - Individual vote power strategies such as checking token balance, checking claimable VIBES, and checking pooled VIBES on QuickSwap.

See the Protocol Info page on the VIBES site for real-time metrics and info about the smart contract cluster.

VIBES Contract Addresses

All contracts are open source and verified on Polygonscan:

View the contracts.ts file in the VIBES site source code:

https://github.com/sickvibes/vibes-site/blob/main/src/contracts.ts

Third-party Contracts

These contracts are used in the VIBES contract cluster but are from external protocols:

Last updated