hackquest logo

Nexoar on Flow

Nexoar is a decentralized application for options trading on Flow, featuring robust liquidity management. Users can provide liquidity to earn fees, and our locked liquidity mechanism ensures payouts a

Videos

Description

Try it out here

# Nexoar On Flow

Nexoar is a decentralized application for options trading on Flow, featuring robust liquidity management. Users can provide liquidity to earn fees, and our locked liquidity mechanism ensures payouts are secure and predictable. The protocol includes a comprehensive, on-chain premium calculation logic designed for efficiency and transparency.

## On-Chain Options Pricing - Rationale and Approach

Traditional options pricing models like Black-Scholes are mathematically complex and computationally expensive for on-chain execution. Nexoar’s formula is engineered to closely mimic Black-Scholes behavior while remaining practical for smart contracts. This approach balances accuracy and performance, enabling real-time, decentralized options pricing without the heavy resource demands of floating-point math and advanced functions.

Below is a comparison between the Black-Scholes model and Nexoar’s on-chain formula:

## Premium Calculation Logic

## Automated Option Exercise with Flow Scheduled Transactions

The Flow blockchain now supports scheduled transactions, which significantly simplifies our system design.

In the past, exercising options at expiry required an off-chain script or service to trigger the exercise function.

With scheduled transactions, the entire process is now fully automated and decentralized — no external infrastructure or cron jobs needed.

Below are two diagrams illustrating the flow before and after using scheduled transactions.

Explanation:

- User creates an option.

- At expiry, an off-chain service or user must trigger the exercise manually.

- This requires extra infrastructure (e.g., a backend cronjob or bot).

Explanation:

- When user creates the option, NexShore also registers a scheduled transaction.

- At expiry, Flow blockchain automatically triggers the exerciseOption() call.

- No external bot or infra is needed, fully on-chain automation.

Tech Stack

React
Cadence
Web3
Node
Team Leader
AAkbar Idria
Sector
DeFi