Documentation
Packfolio Documentation
Understand every step from pack selection to direct Stock Token delivery.
Overview
Protocol map
Choose a live pack
Review the possible Stock Tokens and published odds. Only packs marked Live can be opened.
Contract settles
The contract selects one enabled result, validates its route, and executes the purchase onchain.
Stock Token arrives
The purchased Stock Token is delivered directly to the wallet that opened the pack.
Opening economics
Only packs marked Live can be opened. Coming Soon packs are visible for discovery but cannot transact.
What Packfolio does
Every successful opening follows the same onchain route. The payment, random selection, Stock Token purchase, and direct delivery are enforced by Packfolio contracts. Packfolio does not issue points, an IOU, or an offchain claim in place of the delivered token.
Pack Anatomy
A pack is an onchain configuration with a price, a set of eligible Stock Tokens, and a published weight for every possible result. One opening produces one selected Stock Token.
Every possible company or fund is visible before confirmation.
The listed weights determine selection probability and total 100%.
Each successful opening sends one purchased Stock Token to your wallet.
Live Packs
Packfolio fails closed. A pack becomes Live only when its complete production route passes current health checks, including deployed contracts, supported Stock Tokens, price feeds, liquidity routes, settlement simulation, and randomness capacity.
Odds & Selection
After payment, the contract commits the opening to its pack snapshot and uses the configured randomness coordinator to select one enabled option. Settlement retries keep the same selected token. A failed swap cannot reroll the result.
Payments
Settlement
- Payment acceptedThe contract records the opening and protects the payment as a liability.
- Result selectedRandomness resolves one option from the opening's published weights.
- Route revalidatedLiquidity, price, and minimum output checks run again before the swap.
- Delivery confirmedThe Stock Token reaches the opener before any protocol fee accrues.
Delivery
The settlement adapter sends the purchased Stock Token directly to the wallet that opened the pack. Packfolio does not maintain a custodial balance for the user and does not require a later claim transaction.
Retries & Refunds
If settlement fails after selection, the opening remains recoverable. The owner can retry the same selected token. When the contract's refund conditions are met, the owner can instead recover the original payment asset.
Uses the existing selected Stock Token. It never rerolls the opening.
Contracts
Packfolio runs on Robinhood Chain mainnet, chain ID 4663. The primary public contracts can be inspected directly on Blockscout.
