Problem statement
Nexter Finance is a decentralized prediction market — users forecast the price movement of crypto assets over fixed time windows. It supports both lossy predictions (stake at risk) and a no-loss model where deposits are preserved and only the yield is wagered. I built V1 from scratch.
What I built
- Prediction contracts — the core market where users bet on the price movement of MATIC, ETH, and BTC across rounds of 5 minutes, 30 minutes, 1 hour, and 3 hours.
- Vaults and tokens — ERC4626 vaults for deposit/yield accounting alongside ERC20 tokens for participation and rewards.
- Round automation — Chainlink Keepers and Gelato start and settle each round on schedule, so the market runs continuously without manual operation.
- On-chain pricing — Chainlink price feeds fetch the asset price on-chain to resolve each round trustlessly.
Why ERC4626
Using the ERC4626 tokenized-vault standard for the deposit layer keeps share accounting consistent and composable — important for the no-loss model, where user principal is preserved in the vault and only the generated yield is put at stake.