Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base
Description
Liquid staking token factory contract for minting, burning, and accounting of staking derivatives. Implements rebasing or exchange-rate LST models with oracle-fed validator balance updates, withdrawal processing, and protocol fee collection.
Features
- ✓ ERC-20 compliant liquid staking token
- ✓ Exchange-rate model (stETH-style)
- ✓ Oracle-fed validator balance updates
- ✓ Mint LST on deposit, burn on withdrawal
- ✓ Protocol fee collection (configurable)
- ✓ Withdrawal request queue integration
- ✓ Ownable2Step governance
- ✓ Full Foundry test suite with fuzz tests
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title LST Factory /// @notice Liquid staking token factory contract (mint/burn/accounting). contract LstFactory { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }