segment-finance

Installation
SKILL.md

Segment Finance

Segment Finance is a Compound V2 fork on BNB Smart Chain (BSC, chain 56). It allows users to supply assets to earn interest (via seTokens) and borrow against collateral.

Architecture

  • Read ops (get-markets, get-positions) use direct eth_call via public BSC RPC; no confirmation needed
  • Write ops (supply, withdraw, borrow, repay, enter-market) submit via onchainos wallet contract-call after user confirmation
  • All on-chain operations target BSC (chain ID 56)
  • Comptroller uses Diamond proxy pattern (EIP-2535)

Execution Flow for Write Operations

  1. Run with --dry-run to preview calldata and parameters
  2. Ask user to confirm the transaction details before executing on-chain
  3. Execute only after explicit user approval
  4. Report transaction hash and outcome

Related skills
Installs
3
First Seen
Apr 9, 2026