LogoLogo
Home
  • πŸ‘‹Welcome to Yield Yak
  • Milk Vaults
    • Intelligent On-Chain Yield
    • Suzaku Restaking
  • For Yield Farmers
    • πŸ‘‰Why use Yield Yak?
      • πŸ’ͺOptimal Auto-Compounding
      • βš’οΈSingle-Asset Leverage Strategies
    • πŸ“ˆReturns and Tracking
    • πŸ’ΈCompound Interest
    • πŸ”The Reinvest Button
    • ⚠️Farming Risks
      • Pool 2
      • Impermanent Loss
      • Underlying Assets
    • 🚁Support
      • Stuck Transactions
      • Manual Withdrawal
    • Farms
  • For Traders
    • πŸ‘‰Why use Yak Swap?
    • Yak Swap
  • For Yak Holders
    • πŸƒYAK Token
    • πŸͺ™Using YAK
    • πŸ’°Treasury
    • 🏧Yak ARC
    • πŸ—³οΈVoting
    • Stake
  • For Developers
    • πŸ‘¨β€πŸ’»Integrations
    • πŸ›Bug Bounty
    • Yak Devs Telegram
    • GitHub
  • More Info
    • Website
    • Twitter
    • Telegram
    • Medium
    • Discord
    • Debank
Powered by GitBook
On this page
  • Background
  • Example Integration
  • User Balances
  • User Actions
  • Example Integrations
  • Asset Management
  • Asset Trackers
  • Contributors Email Inbox

Was this helpful?

  1. For Developers

Integrations

PreviousVotingNextBug Bounty

Last updated 1 year ago

Was this helpful?

Background

Auto-compounders give small token holders the same compounding advantages as big token holders. Auto-compounders are more effective when they hold more deposits. For this reason, YY Strategies are designed to be primitives that any project can easily integrate.

Example Integration

Compounding BAG:

User Balances

User balances are accounted with Yak Receipt Tokens (YRT). The number of shares corresponds to ownership of each pool's underlying assets.

User balance of BAG = YRT shares * (total BAG / total shares)

View Function

Description

balanceOf(address)

Amount of shares a user owns (number does not go up)

getDepositTokensForShares(uint256)

Conversion rate for a given amount of shares (number goes up over time)

User Actions

Each strategy allows users to deposit and withdraw. The simplest implementation may use only two functions:

Write Function

Description

deposit(uint256)

Deposit deposit tokens

withdraw(uint256)

Redeem shares to withdraw deposit tokens

There is no need for integrations to manage reinvest() functionality, as the YY community β€œjust handles” it.

Example Integrations

Asset Management

Asset Trackers

Contributors Email Inbox

Used for official listings and admin: yakcontributors@proton.me

For dev-related inquiries, visit the Yak Devs Telegram group:

πŸ‘¨β€πŸ’»
https://cchain.explorer.avax.network/address/0xf487044eD85F2d47A8eAD6b86c834976B8c31736/read-contract
Baguette Finance
Avme Wallet
Markr
Zapper
DeBank
0xTracker
https://t.me/yakdevs