Skip to main content

StAztec

What is StAztec?

StAztec is the ERC-20 receipt token representing a user's share of the Olla staking pool. When users deposit Aztec tokens into OllaVault, they receive stAztec. As staking rewards accumulate, each stAztec becomes worth more Aztec. The number of tokens doesn't change, but the exchange rate increases.

StAztec supports ERC-2612 (gasless approvals via permit), making it compatible with permit-based deposits and redemptions throughout the protocol.

StAztec is not upgradeable. Only the immutable OLLA_VAULT address can mint and burn tokens. No governance action can change the authorized minter/burner. This is enforced at the contract level.

Methods

mint()

Mint new stAztec shares on deposit or fee distribution. OllaVault only.

function mint(address to, uint256 amount) external

burn()

Burn stAztec shares on withdrawal or redemption. OllaVault only.

function burn(address from, uint256 amount) external

All standard ERC-20 methods (transfer, approve, transferFrom, permit) are available to any holder.

View methods

balanceOf()

stAztec balance of an address.

function balanceOf(address account) external view returns (uint256)

totalSupply()

Total stAztec in circulation.

function totalSupply() external view returns (uint256)

decimals()

Token decimals (18).

function decimals() external view returns (uint8)

Events

event Transfer(address indexed from, address indexed to, uint256 amount)

Tokens transferred, minted, or burned.

event Approval(address indexed owner, address indexed spender, uint256 amount)

Spending allowance set.

Standards