# What is wst\[TARA]

## 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

```solidity
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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.laraprotocol.com/whitepaper/what-is-wst-tara.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
