1---2name: fb3description: FlareBank protocol — all-in-one. Dashboard, mint/burn BANK, claim/compound dividends, price checker. Triggers on "/fb", "/fbdashboard", "/bankrate", "flarebank", "bank token", "mint bank", "burn bank", "bank price", "bank rate".4---56# FlareBank Skill (Unified)78All FlareBank operations in one skill.910## Quick Command1112```bash13node skills/fb/scripts/fb.js <command> [options]14```1516## Subcommands1718| Command | Description |19|---------|-------------|20| `dashboard` | Full protocol analytics (TVL, supply, rewards, validators, activity) |21| `status` | Vault status, balances, pending dividends |22| `mint <amount>` | Mint BANK by depositing FLR |23| `burn <amount>` | Burn BANK to withdraw FLR |24| `claim` | Claim pending dividends to wallet |25| `compound` | Compound dividends into more BANK |26| `bankrate` | BANK price comparison — LP market vs contract mint/burn rates |2728## Command Aliases2930| Trigger | Maps To |31|---------|---------|32| `/fbdashboard` | `/fb dashboard` |33| `/bankrate` | `/fb bankrate` |34| `/fb stats` | `/fb dashboard` |35| `/fb sell` | `/fb burn` |36| `/fb buy` | `/fb mint` |37| `/fb withdraw` | `/fb claim` |38| `/fb reinvest` | `/fb compound` |39| `/fb rate` | `/fb bankrate` |40| `/fb price` | `/fb bankrate` |4142## Usage Examples4344```bash45/fb dashboard # Full protocol overview46/fb status # Vault balances + pending divs47/fb mint 100 # Mint BANK with 100 FLR48/fb burn 10 # Burn 10 BANK for FLR49/fb claim # Claim dividends50/fb compound # Compound dividends51/fb bankrate # LP vs contract price comparison52```5354## ⚠️ Dashboard Output Rules5556When running `/fb dashboard` or `/fbdashboard`:571. Run: `node skills/fb/scripts/fb.js dashboard`582. **Copy-paste the ENTIRE output** — every table, every section593. Do NOT summarize, truncate, or add commentary6061## Dashboard Sections6263- **📈 PROTOCOL TVL** — FB Main, DAO Treasury, LP WFLR, IBDP queue64- **🏦 BANK TOKEN** — Supply, circulating, price, mint/burn prices, backing65- **🏛️ DAO TREASURY** — All token holdings with WFLR valuations66- **💧 LP POSITIONS** — Enosys V2, SparkDex V2, V3 details67- **🌾 CDP EARN POOLS** — Deposits, pending yield, liquidation collateral68- **🎁 PENDING REWARDS** — CDP yield and collateral claimable69- **🥩 APS STAKING** — DAO staked APS, held APS70- **🔒 rFLR VESTING** — Vested vs unvested71- **🪂 FLAREDROP CLAIMS** — DAO, IBDP, FB Main (All Time/30d/7d/24h)72- **📊 FTSO DELEGATION REWARDS** — Per source, per period73- **🏛️ FTSO PROVIDER FEES** — Provider fee breakdown74- **🔐 VALIDATOR FEES CLAIMED** — Self-bond + operation fees75- **🌐 FTSO** — Total WFLR delegated76- **🔐 VALIDATORS** — Stake, delegation, uptime, expiry77- **💰 PROVIDER EARNINGS** — Estimated per epoch/month/year78- **🏭 MINT/🔥 BURN/📤 TRANSFER/🔄 SWAP STATISTICS** — Activity + fee distribution79- **📋 SUPPLY SUMMARY** — Current, minted, burned80- **💱 PRICES** — FXRP, stXRP, sFLR, FLR/USD8182## Bankrate Output8384- **LP Price** — BANK/WFLR from Enosys V2 pool reserves85- **Contract Buy Price** — Mint rate86- **Contract Sell Price** — Burn rate87- **Spread** — Buy vs sell difference88- **LP vs Contract** — Premium/discount analysis8990## Protocol Overview9192### How BANK Works931. **Minting:** Send FLR → receive BANK at `buyPrice()` rate942. **Burning:** Send BANK → receive FLR at `sellPrice()` rate953. **Spread:** Buy price > sell price (value accrual)964. **Dividends:** 10% fee on all activity → distributed to holders975. **Compounding:** `reinvest()` auto-buys BANK with pending divs9899### Fee Structure100101| Action | Fee | Distribution |102|--------|-----|--------------|103| Mint | 10% of WFLR | 80% holders, 15% team, 5% DAO |104| Burn | 10% of WFLR | 80% holders, 15% team, 5% DAO |105| Transfer | 1% burn + 1% fee | 80% holders, 15% team, 5% DAO |106| LP Swap | 1% burn + 1% fee | 80% holders, 15% team, 5% DAO |107108## Contract Reference109110| Contract | Address |111|----------|---------|112| BANK Token (FB Main) | `0x194726F6C2aE988f1Ab5e1C943c17e591a6f6059` |113| IBDP | `0x90679234fe693b39bfdf5642060cb10571adc59b` |114| DAO Treasury | `0xaa68bc4bab9a63958466f49f5a58c54a412d4906` |115| Enosys V2 BANK/WFLR | `0x5f29c8d049e47dd180c2b83e3560e8e271110335` |116117## Function Selectors118119| Function | Selector |120|----------|----------|121| `buy(address)` | `0xf088d547` |122| `sell(uint256)` | `0x35a4f939` |123| `withdraw()` | `0x3ccfd60b` |124| `reinvest()` | `0xfdb5a03e` |125| `buyPrice()` | `0x8620410b` |126| `sellPrice()` | `0x4b750334` |127128## Keystore129130Default: `./keystore.json` (set via AGENT_KEYSTORE)131Agent wallet: (set via AGENT_WALLET env var)132133---134135## Routing Guide136137### Use when...138- Any FlareBank-related query: dashboard, minting, burning, prices, analytics139- `/fb`, `/fbdashboard`, `/bankrate` commands140- "bank price", "bank rate", "flarebank", "mint bank", "burn bank"141142### Don't use when...143- Managing LP positions (use `/lp` or `/fblpmanager`)144- General token prices unrelated to BANK (use `/price`)145146### Edge Cases147- Dashboard output is intentionally long — send ALL tables148- Script may take 10-20s due to many RPC calls149- Contract includes 10% mint/burn fee — always account for it150- LP price can diverge from contract during low liquidity