[ARCHIVE] Developers
  • 📌Getting Started
  • Integrating with BarnBridge
  • Setting up your private testnet
  • Using our public testnet
  • Specs
    • DAO Specifications
    • SMART Yield Specifications
    • SMART Exposure Specifications
  • SMART Yield
    • Minting and Redeeming Junior Tranche tokens (ERC-20)
    • Minting and Redeeming Senior Tranche Tokens (ERC-721)
    • Originator Yield Oracle
    • Governance Token Harvesting
  • Resources
  • 📎Smart Contract Addresses
    • BarnBridge DAO
    • SMART Yield
    • SMART Alpha
    • Yield Farming
  • 📋GitHub Repos
  • 🔒Security Audits
  • 👥Discord Community
  • Unofficial Code Walkthrough - SMART Yield
  • Unofficial Code Walkthrough - SMART Exposure
  • Access Controls
Powered by GitBook
On this page

Was this helpful?

  1. SMART Yield

Governance Token Harvesting

PreviousOriginator Yield OracleNextSmart Contract Addresses

Last updated 4 years ago

Was this helpful?

The mechanics of harvesting governance tokens can be found on the relevant smart contracts corresponding to the originator (e.g. for Compound) and its relevant interface . Please refer to the code in the Github repository for references made throughout this page.

The smart contract can harvest() governance tokens earned from underlying originators (such as for Compound) by selling them on Uniswap at their spot price. Currently, the maximum acceptable cost of harvesting HARVEST_COST is set to 4% (see IController.sol) and will revert if governance tokens value accrued is less than cost.

CompoundController.sol
IController.sol
COMP tokens