LogoLogo
  • Introduction
    • Whitepaper (Preface)
    • Investors
  • Community Pre-Sale
    • Overview
  • How to create a wallet
  • How to buy $HINK
  • HINKAL WALLET
    • Features
    • Hinkal Points
    • Points Eligibility
    • Compliance
  • Developers
    • Hinkal SDK
    • SDK Integration
    • Smart Contract Addresses
  • ECOSYSTEM
    • Supported Chains
    • Media Kit
  • TECHNICAL DESCRIPTION
    • Overview
    • Setup
      • Keys and Shielded Addresses
      • Nullifiers & Commitments
    • Smart Contracts
      • Unexpected Relay Costs Accounting - Stealth Addresses
      • Extensibility with Hooks
    • Compliance & Security
      • Access Tokens and User Authentication
    • Transactions
      • Deposits & Withdrawals
      • Swaps
      • Transfers
    • Risks
  • Anonymity Staking
  • FAQ
Powered by GitBook
On this page
  1. TECHNICAL DESCRIPTION
  2. Transactions

Staking & Yield Farming/Trading

Last updated 1 year ago

Hinkal Yield Farming allows users to deposit tokens in liquidity pools and stake those tokens to gain rewards, unstake tokens and withraw the tokens discreetly using Relayers. Currently we support , , and pools (more to be added in the future).

When a user wants to deposit, stake, unstake or withdraw some funds in a liquidity pool, they generate zk-proof that they are eligible to perform the action to a liquidity pool. To claim rewards, the user will generate zk-proof showing that they are eligible to receive certain amount of funds. The relayer will make the transaction on behalf of the user.

In the transaction, Hinkal Pool will call , , or ’s Smart Contract in order to deposit, stake, withdraw the assets or to claim rewards. If, for any reason, the operation fails, then the whole transaction will be reverted, so no additional commitments and nullifiers will be created.

Similar to Yield Farming, Hinkal enables users to execute their Yield Trading strategies discreetly, by integrating . Pendle's Smart Contract is called via External Action contract to handle all transaction logic for token swaps, mints, redeems, and reward claims. YT tokens, since they are interest-bearing, are first wrapped and then stored in the Hinkal Pool smart contract.

Since the protocol implements UTXO based model of commitments and nullifiers, the amount of reward the user wants to claim should be known at the time of zk-proof generation. At the time of the transaction submission, it is unknown how many other transactions will be submitted in the current block. Check out Hinkal's current used to fairly compensate for the costs.

Curve
Convex
Lido
Beefy
Curve
Convex
Lido
Beefy
Pendle
fee structure