Lara Docs
  • ๐Ÿ‘‹Welcome to LARA
  • ๐Ÿ‘๏ธVision
  • ๐Ÿ›ฃ๏ธRoadmap
  • ๐ŸงชLara Testnet Campaign
  • Whitepaper
    • ๐Ÿ’ธValue Propositions
    • ๐Ÿš€APR and fees on Taraxa
    • ๐Ÿ’ตManaging st[TARA]
    • What is wst[TARA]
  • ๐Ÿ$Lara Token
    • ๐ŸLARA tokenomics
    • ๐Ÿ’šLARA presale
    • ๐Ÿ‹Private Sale
  • ๐Ÿค‘Lara staking
    • ๐ŸŽ–๏ธStaking Milestones
    • ๐Ÿช™Explaning $veLARA
    • ๐Ÿ’ฑRedeeming $veLARA
  • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘Lara DAO
    • ๐Ÿ“ชWhy a DAO?
    • ๐Ÿ“œDAO Terms & Conditions
    • ๐Ÿ“ŽUnderstanding the DAO
    • ๐Ÿ™ŒProposal guidelines & template
  • ๐Ÿ“”Smart Contracts
    • ๐Ÿ› ๏ธContracts
      • ๐Ÿ”Security Audit
  • ๐Ÿ–ฅ๏ธLara App walkthrough
  • Use Cases
    • ๐Ÿ˜ŽFor Passive Stakers
    • ๐Ÿ™‹For DAO members
Powered by GitBook
On this page
  • wstTARA: Wrapped Staked TARA Token
  • Overview
  • Key Features
  • How It Works
  • Benefits
  • Technical Implementation
  • Use Cases
  • Conclusion
  1. Whitepaper

What is wst[TARA]

What is the wrapped staked TARA and why you should use it

wstTARA: Wrapped Staked TARA Token

Overview

wstTARA (Wrapped Staked TARA) is an ERC-4626 compliant vault token that wraps stTARA (Staked TARA) tokens to make them more compatible with DeFi protocols while preserving their yield-generating capabilities. It solves the common problem of rebasing tokens being difficult to integrate with DeFi applications.

Key Features

1. ERC-4626 Vault Standard

  • Implements the ERC-4626 vault standard, which is specifically designed for yield-bearing tokens

  • Provides standardized deposit, withdrawal, and conversion functions

  • Enables seamless integration with DeFi protocols that support ERC-4626

2. Yield Preservation

  • Maintains the yield-generating capabilities of stTARA

  • Automatically accrues and distributes staking rewards

  • Preserves the underlying value of staked tokens

3. DeFi Compatibility

  • Converts rebasing stTARA into a non-rebasing token format

  • Maintains a stable token balance while the underlying value increases

  • Enables easier integration with:

    • DEXs (Decentralized Exchanges)

    • Lending protocols

    • Yield aggregators

    • Other DeFi applications

How It Works

Token Wrapping

  1. Users deposit stTARA tokens into the wstTARA contract

  2. The contract mints wstTARA tokens in a 1:1 ratio initially

  3. The underlying stTARA tokens are locked in the contract

Yield Accrual

  1. As stTARA generates staking rewards, the total value of locked tokens increases

  2. The wstTARA contract tracks the increasing value of underlying assets

  3. Users can withdraw more stTARA than they deposited, reflecting the accrued yield

Value Conversion

  • The contract maintains conversion rates between wstTARA and stTARA

  • As rewards accrue, the conversion rate adjusts automatically

  • Users can withdraw their stTARA plus accrued rewards at any time

Benefits

For Users

  • Simplified yield tracking (no need to track rebasing events)

  • Stable token balances for DeFi interactions

  • Maintained exposure to staking rewards

  • Easy conversion between stTARA and wstTARA

For DeFi Protocols

  • Standardized interface through ERC-4626

  • Predictable token balances

  • No need to handle rebasing mechanics

  • Simplified integration with existing DeFi infrastructure

Technical Implementation

The wstTARA contract inherits from three key OpenZeppelin contracts:

  • ERC20: Basic token functionality

  • ERC20Permit: Gasless approvals

  • ERC4626: Vault standard for yield-bearing tokens

contract WrappedStTara is ERC20, ERC4626, ERC20Permit {
    IstTara public immutable stTARA;
    
    constructor(address _stTARA)
        ERC20("Wrapped Staked TARA", "wstTARA")
        ERC20Permit("Wrapped Staked TARA")
        ERC4626(IERC20(_stTARA))
    {
        stTARA = IstTara(_stTARA);
    }
}

Use Cases

  1. DEX Liquidity Pools

    • Provide liquidity with wstTARA without dealing with rebasing

    • Earn both staking rewards and trading fees

  2. Lending Protocols

    • Use wstTARA as collateral

    • Maintain stable collateral value while earning staking rewards

  3. Yield Aggregators

    • Automatically compound staking rewards

    • Optimize yield strategies with stable token balances

  4. Cross-Protocol Integration

    • Seamlessly move between different DeFi protocols

    • Maintain yield exposure throughout the DeFi ecosystem

Conclusion

wstTARA serves as a crucial bridge between staking rewards and DeFi applications. By wrapping stTARA in an ERC-4626 vault, it enables users to participate in DeFi while maintaining their exposure to staking rewards. This solution makes rebasing tokens more accessible and usable in the broader DeFi ecosystem.

PreviousManaging st[TARA]Next$Lara Token

Last updated 2 days ago