TOYCHAIN / LOCAL ECONOMY
A small chain.
Real market mechanics.
Trade, provide liquidity, and borrow against your TOY.
Swap tokens
WTOY / USDCCONSTANT PRODUCT POOL
WTOY / lab USDC
—
Lab USDC per WTOY · reserve ratio
Each trade pays a fee to liquidity providers. Quotes change as the pool changes. Minimum output or maximum input is enforced by the contract.
Wrap native TOY in Wallet before trading. Approve the pool to spend the input token.
Pool liquidity
—
Add liquidity
Deposit both assets in the reserve ratio. The pool only takes the amounts needed.
Remove liquidity
Burn LP shares to redeem your portion of both reserves, including trading fees.
Lending market
Supply lab USDC. Borrow against WTOY.
Your position
Market
75% maximum loan-to-value · 80% liquidation threshold · 5% liquidation bonus · 50% close factor. Interest accrues by block, not wall-clock time.
Supply
Collateral
Borrow & repay
Liquidation & market maintenance
Liquidation repays unhealthy debt for collateral. Inspect a borrower first. A fresh oracle is required.
Oracle publisher
Only the displayed owner can publish. Lab prices are set manually.
Wallet & permissions
No wallet connected
Wrap TOY
Send tokens
Send native TOY
Token allowances
Authorize each spender separately. Use an exact limit, max for unlimited, or 0 to revoke.
| Asset | Pool allowance | Lending allowance |
|---|
Lab token issuer
Only the deployment owner can mint lab USDC. Any holder can burn their own tokens.
Composed markets
Route through multiple pools, hold a lending-backed vault position, or provide flash liquidity.
Multi-hop swap
Approve the router for your input token. Each hop uses a factory pool; 0 means token A to B and 1 means B to A.
Create a pool
Anyone can create one pool per asset pair in this factory. The receipt includes the new contract address.
Fund a factory pool
Approve this pool for both assets first. Minimum shares protect your deposit.
Redeem factory pool shares
Burn your LP shares and receive both assets.
Lending vault deposit
Approve the vault for lab USDC. Your transferable vault shares hold a position in the lending market.
Redeem vault shares
Returns lab USDC, including interest or losses. Withdrawal requires available lending liquidity.
Provide flash liquidity
Approve the flash contract for lab USDC. Fees increase the assets backing your transferable shares.
Withdraw flash liquidity
Redeem your shares for their portion of the available lab USDC.
Call your flash receiver
The receiver must implement the callback and return principal plus fee in this transaction. See the contract ABI documentation.
Run the example borrower
Only the deployment owner can start this receiver. Its seeded USDC pays the fee; it demonstrates an atomic round trip.
Approve a new pool or receiver
Use a full contract address for a pool you just created. Set the amount to zero to revoke.
Find a factory pool
Multisig treasury
Three immutable signers. The delay starts when approvals reach the threshold; losing quorum clears that timer. Anyone can execute a ready proposal.
Propose a token payment
A signer proposes a payment from treasury funds. Their proposal counts as its first approval.
Propose a native payment
A signer proposes sending native TOY from the treasury.
Approve
Only a treasury signer can approve, once per proposal.
Revoke approval
Remove your approval before execution.
Execute
Requires quorum and the full block delay.
Cancel
Only the proposer can cancel their pending proposal.
Fund native treasury balance
Anyone may deposit native TOY. Token funding uses a normal transfer to the treasury address.
Propose a contract call
For contract interactions: target, native value, and up to eight comma-separated integer arguments, including the method selector.
Inspect a proposal
Wallet activity
Transactions from this browser and transactions sent by this wallet in the latest 100 heights. Failed execution consumes a nonce and reverts asset movements.
| Operation / transaction | Status | Height | Output (base units) |
|---|