Skip to main content

Architecture overview

BlockFinaX has three layers. Rules live in the contracts; the services make them usable; wallets authorise.

LayerComponentsResponsibility
Contracts (Stellar Soroban)Currency pool, pool oracleCustody of capital, quote verification, reservation, premium distribution, settlement, payouts, withdrawals
Services (BlockFinaX API)Quote service, pricing engine, market data, chain adapter, fee relayer, oracle job, account service, business account service, routingPricing, preparing transactions, paying fees, submitting oracle rates, indexing
WalletsPasskey smart account per user; an OpenZeppelin smart account per business, with member roles; EVM deposit accountsAuthorising every user action

Protocol map​

The protocol map shows how users, contracts, services and funding connect.

Trust boundaries​

The contract enforcesThe services provide
A quote must be signed by the pricing key, at most 120 s old, used onceThe fair price inside the quote (how it is priced)
The reserve is fully funded from current backersWhich pool is chosen for a request
The buyer pays no more than max_costThe max_cost the buyer agrees to
Settlement uses only the oracle's agreed rateThe oracle job that submits rates
Only the owner of a position, balance or pool can act on itConvenience: preparing the call, paying the fee

The services cannot move a user's funds without that user's passkey, or a business's funds without a member's passkey within that member's role, and every payout follows the contract's rules.

Chains​

Stellar is the liquidity hub: all pools, contracts and settlement are there. EVM networks are funding networks: users deposit there and funds are routed to Stellar through Circle CCTP. See Design decisions: one liquidity hub.

Pages​