Skip to main content

Contracts

The rules of BlockFinaX are enforced on chain. These contracts hold every dollar of capital, check every quote, and settle every position. Read them, call them directly, or use the API, which prepares the same calls for you.

Stellar
Currency pool

Pools, underwriter balances and positions: buy protection, back sales, settle and pay out.

Stellar
Pool oracle

Collects operator rates after expiry and records one agreed settlement rate per position.

Off-chain
Pricing engine

Computes each contract's fair rate and signs it as the quote the currency pool verifies.

Base
Deposit contracts

Personal deposit addresses that forward USDC to a user's Stellar wallet through Circle CCTP.

Circle
Circle CCTP

Circle's burn-and-mint transfer protocol, used to move USDC between Base and Stellar.

How the contracts connect​

The protocol map shows how the contracts connect to users and services.

Which contract do I need?​

You want toContractKey functions
Buy protection for a customerCurrency poolbuy_protection, claim_payout
Provide or manage liquidityCurrency pooldeposit, request_withdrawal, set_lp_preferences
Run a poolCurrency poolcreate_pool, set_tenor, set_structures
Price a contract or check a quotePricing engine, Currency poolquote, signQuote, buy_protection
Follow settlementPool oracle, Currency poolget_consensus, settle_position
Let customers fund from BaseDeposit contractsaddressFor, flush

Function types​

BadgeMeaning
READReads state. Free to simulate; no signature.
WRITEChanges state. Needs the caller's authorisation unless marked "anyone".
ADMINOwner only. Listed for transparency; see Privileged controls.

Networks​

ContractNetworkAddress
Currency poolStellar testnetCAEKJTUSZIWY5OMK6EVOSNPMEULI3MDO3BLP6Y5OKPHRNKM6KTH5YURM
Pool oracleStellar testnetCBOXFJTK5DGVKOEMEYMHMLYKXUHL2ZETWZY3HEF3FO7PO3GD42YH4G5Q
Deposit factoryBase Sepolia0x05672D3bD02b1ebBFA6F4f5C104A7f2b7d0a2291
Deposit implementationBase Sepolia0x937a715805Bd525CBBF2817f5Eb184a322D7016c