How Wake works
Wake lets a trader launch one token and route a fixed share of their realized trading profit to that token's holders. The routing is enforced by contracts on BNB Chain and by an enclave that alone holds the trading key. It does not rest on the trader's goodwill, or on ours.
How a wake works
- Launch. The trader creates a token on Flap, quoted in ASTER, whose tax goes to their personal fee splitter, then a vault that names the token and the holders' share of profit.
- Fund. The trader deposits USDT into the vault and pushes it to their Aster account. Only the trader's wallet can deposit, and only the trader decides when capital is exposed.
- Trade. Orders are signed in the trader's wallet and executed by the enclave, which holds the Aster key. The trader never sees that key and cannot move money out of Aster with it.
- Measure. The enclave reads the account's realized PnL, applies the holders' share, and moves that amount to the account's spot wallet, set aside. It does so seconds after each trade placed through Wake, and every five minutes for fills that happen later on the exchange, such as a resting limit order or a take-profit.
- Pay. When a payout round is due, the enclave brings the set-aside USDT back to the vault, which locks it for holders, and pays each holder by balance × time held.
Launching
A launch is six steps, all signed by the trader's wallet: up to eight transactions, as gas and capital can take two each, and fewer confirmations with a wallet that bundles calls. Each step can be resumed if the page is closed. A token made before the page closed is found again in another browser, from the chain if it was made in the last hour or so, or by pasting its address.
| Step | What it does |
|---|---|
| Fee splitter | A small contract, one per trader, at an address known before it exists. It receives the token's tax and splits it between the platform and the trader. |
| Token | Created on Flap, quoted in ASTER, with the splitter as the recipient of its tax. Its buy and sell tax is the platform's 1% plus the trader's own fee, set at launch. Flap can change where a token's tax goes; see the risks below. |
| Bind | The splitter reads the token's tax rates and fixes the platform's slice of the stream. Nobody declares the rate; it is read from the token. |
| Vault | Created by the factory with the token, the holders' share (5% to 100%, in steps of 5%) and the Aster account the enclave derives for this trader. One wallet, one vault. |
| Gas | A little BNB kept in the vault. The enclave draws at most 0.01 BNB per transaction, and 0.2 BNB a day, to pay for settlements and payouts; the trader can withdraw the rest. |
| Capital | Optional. USDT deposited and pushed to Aster in one signature. |
Trading
The Wake terminal shows Aster's live order book, trades and funding, and a chart of Aster's own prices. Every order is an EIP-712 message the trader signs, bound to one vault, one chain, one nonce and an expiry of at most five minutes. The enclave checks the signature against the creator recorded on-chain in the vault, never against an address sent with the request, and places exactly what was signed.
Supported: market, limit, stop, stop-market, take-profit, take-profit-market, trailing stop and Aster's chase order; leverage up to each market's maximum; cross or isolated margin; single- or multi-asset mode; cancel one or all.
A position holds one take-profit and one stop-loss for the whole position, and one of each for part of it. Setting a new one replaces the old one of its kind: the new order goes in first and the old one is then cancelled, so the position is never left without one. A take-profit or stop-loss attached to an entry belongs to that order and replaces nothing.
There is no instruction for withdrawing from Aster. Capital comes back only through a settlement, which carries the holders' share with it.
Open positions are private
While a position is open, everyone can see that a wake holds it, by market, side and leverage ("OPUSDT Long 10x"), but not its size, entry price, liquidation price or PnL, nor the orders resting on it, nor the fills, orders and funding that belong to it. The enclave answers that much and no more to anyone but the trader, so the detail is not in the API either. The trader signs in once (one signature, valid 30 days on that browser) to see it all on their trade screen. Once a position closes, everything about it shows on the trader's profile and history as before. Holders always see what has been set aside for them, and the capital at Aster, which leaves out what positions still open have made or cost (their fees and funding too) until they close. The figures that would move with an open position wait for it to close as well: what has been set aside for holders is shown to everyone as it stood the last time the account had no position open (part of a position closed at a profit sets some aside at once), the volume behind Wake Points and the fees behind referral rewards count once the position they belong to has closed, and so does a transfer between the account's wallets.
One-click trading
Signing every order in a wallet is slow, so a trader can sign once to let a key kept in their browser sign for them, for 1, 3, 7, 30 or 90 days or until they turn it off. The enclave accepts that key for this vault only, and only for trading: orders, cancels, leverage and margin settings. Deposits and withdrawals still need the trader's wallet, the key cannot extend or replace itself, and turning it on in another browser or turning it off ends the old key at once.
Prices on the screen
The order book, trades, funding, mark price, every fill and the chart's candles are Aster's, read from Aster's public feeds. The chart shows the market the orders go to, not a price from another exchange.
Capital in and out
Only the trader's wallet can deposit. A deposit goes into the vault and on to the vault's Aster account in the same transaction.
To take capital back, the trader asks the vault for an amount. The request is on-chain; the site then asks the enclave to answer it at once instead of at its next five-minute cycle. The enclave moves the amount, plus whatever is owed to holders, from Aster to the vault, usually within a minute, and reports it as a settlement: the holders' share is locked for them and the rest becomes the trader's to withdraw from the vault.
- Only capital that is free at Aster can be asked for. Margin held by open positions stays until those positions close.
- Neither can the holders' share of profit that an open loss is holding back: it is not paid while the loss is open, and it stays at Aster until the loss is closed or recovers.
- Aster charges a fixed fee for each withdrawal (0.11 USDT on BNB Chain when this was written), so less than 1 USDT is not withdrawn.
- A request that finds nothing free when it is answered (all of it margin by then), or less than that fee, is declined, and the trader can ask again once positions close. Holders are then paid when their own round is due, not at their cost for that request.
- A request made within half a minute of a trade (an order, Close All, or a take-profit or stop-loss set on a position), or while one is on its way, waits until that half minute has passed, so the trade's profit is booked, and the holders' share of it set aside, before any capital leaves.
- A request can be cancelled until it is answered.
- A request raised while an earlier one is on its way keeps the difference: a settlement takes off the request only what it answered.
Holder payouts
What is owed
Holders are owed their share of the account's realized profit, net of fees (less any fee rebates Aster pays back) and funding, less any loss still open on the account. Funding a position collects while it is open is part of that trade: it counts once the position closes, together with the trade's profit or loss, so a trade that collects funding and closes at a bigger loss pays holders nothing. Funding a position pays counts at once. Transfers, a welcome bonus and contest prizes are not trading profit and are not counted. Campaign rewards are the trader's: they were earned with the trader's capital. A reward paid in a coin other than a dollar (ASTER, for one) could never leave the account as it is, so the enclave sells it for USDT on Aster spot and the USDT joins the trader's capital. The trade page's Campaigns tab lists what the account has received. The enclave keeps a running total of what it has set aside; a new amount is set aside only when the total owed rises above it. A loss therefore has to be made back before anything new is set aside, and nothing already paid is ever taken back.
Realized PnL is counted from the moment the vault was created. The Aster account belongs to the trader rather than to the vault, so profit it made before, for an earlier vault of theirs, is not shared a second time with the new vault's holders. For the same reason, the trading a wake's pages show (its trader's profile, calendar, closed trades and history) starts when its vault was created. Aster answers income only in windows (the last seven days unless asked otherwise), so the enclave keeps its own running total, read week by week with each entry counted once, and never loses older profit or older losses to that window.
When a round happens
The enclave checks every wake every five minutes. A round is paid:
- When the trader asks for capital back: whatever is owed goes out in the same move.
- When 1,000 USDT or more is owed.
- Weekly, once at least 100 USDT is owed.
Below 100 USDT owed, nothing is paid on its own; it waits for more, or for the trader's next withdrawal.
Aster charges a fee to withdraw. When the trader is withdrawing, the trader pays it; when the payout is the only reason to withdraw, it comes out of the holders' amount, which is why small amounts wait.
Who gets what
The enclave records every holder's balance once an hour and credits balance × time. Each hour is credited with the smaller of a wallet's balances at its start and at its end, so only what was held through the whole hour counts: buying just before a snapshot and selling just after earns nothing, and a wallet that sells half is credited the half it kept. At a round, the holders' amount is divided in proportion to those credits since the last round, and sent as USDT straight from the vault to each wallet. Amounts too small to be worth a transfer stay in the vault's holder pool and join the next round, and so does a share USDT itself will not deliver, to an address it has blocked say, which the vault reports as HolderNotPaid.
Before a round settles, the enclave publishes its list on chain: who is paid what, in parts of at most 200 wallets. The settlement seals the list, and from then on the vault pays each part only exactly as listed, and only once. The list is public before any money moves, so anyone can check it against the token's holders.
A Flap token keeps no list of its holders, so the enclave builds one from the token's own Transfer events, from the mint at launch onward: every address that has ever received the token. At each snapshot it reads all of their balances at one block, together with the token's total supply, and records the snapshot only when the balances add up to the supply exactly. Then no holder can be missing. If they do not add up, the list is rebuilt from the launch and that hour waits. Each holder's weight is their balance.
Only wallets are paid. Tokens burned to the zero or dead address earn nobody a share. Any address with contract code is left out: routers and aggregators that pass tokens through, pools, lockers, and smart-contract wallets such as Safe multisigs. A wallet that has delegated to code under EIP-7702 is still a person's wallet and counts.
What pays for the payouts
Every settlement and every payout is a transaction, paid for in BNB by the enclave. The trader keeps that BNB in their vault, where it stays theirs to withdraw at any time; the enclave holds only a float of about 0.0005 BNB in its own wallet and refills it from the vault when it falls below 0.0002. The vault lets it take at most 0.01 BNB at a time and 0.2 BNB a day, so an enclave that is broken or taken over cannot empty the deposit before the trader withdraws what is left.
A long round can reach that daily limit. The payout then carries on at 00:00 UTC, or at once if the trader sends BNB straight to the enclave's wallet from their portfolio, which the limit does not cover. BNB sent that way is spent on this vault's transactions and cannot be withdrawn again, unlike gas kept in the vault. Holders pay nothing either way; a stranger who releases a part after 30 days pays that transaction themselves.
If the enclave stops
The enclave sends a round's parts within minutes of the settlement, and every five minutes it compares what the vault still owes against its own record, so a part it has lost track of is picked up and paid rather than left. A part still unpaid 30 days after its round can be sent by any wallet: the wake page shows it with a button. The sender pays the gas, and the money goes only to the wallets on the list, exactly as listed. What is not on a list yet, such as the holders' share still at Aster, can only be moved by the enclave (see Risks).
Checking a payout
Each round emits one Settled event, one PayoutsListed event per part of its list and one HolderPaid event per holder from the vault. Every wake page lists its rounds with links to the transactions, and any wallet can be looked up there.
Lists and totals on this site include only wakes the enclave serves. Anyone can open a vault on the factory that names their own wallet in place of the enclave and pay the same USDT to themselves round after round; such payout figures are real events that mean nothing, so those vaults are left out, and their own page says the enclave does not serve them.
Fees
| Fee | Rate | Paid by |
|---|---|---|
| Platform | 1% of every token buy and sell | Token traders, through the token's tax |
| Trader | Chosen at launch, fixed after | Token traders, through the token's tax |
| Flap | 1% of every trade on its curve, and a tenth of every token's tax | Token traders: the 1% on top of the tax while the token is on the curve; the tenth out of the tax itself. Set by Flap, not by Wake |
| Wake, on Aster | 0.01% of each order | The wake's Aster account, through Aster's builder programme |
| Aster | Aster's own rates | The wake's Aster account, as for any account |
| Aster referral | Aster's referral rates | Nobody extra. Every wake's Aster account is registered under Wake's Aster referral code, so Aster pays Wake's treasury a referral commission out of the trading fees it charges that account. Wake passes a share to referrers (see Referrals) |
| Aster withdrawal | Aster's fixed fee | The trader when withdrawing; holders when a round is paid on its own |
The platform's cut of the tax is fixed in the fee splitter factory and expressed as a share of volume. The tax is paid in ASTER, and Flap keeps a tenth of it, so a 2% tax sends 1.8% of volume to the splitter. With a 1% platform fee and a 1% trader fee, the splitter passes the platform 1% of volume (five ninths of what arrives) and the trader keeps 0.8%; with a 5% trader fee the tax is 6% and the platform's slice of what arrives is smaller.
So a buyer of a wake token with a 2% tax pays about 3% in total on each trade while the token is on Flap's curve: the 2% tax, and Flap's own 1%. Once the token moves to PancakeSwap, the tax remains and Flap's 1% does not. These rates were measured on chain; Flap sets its part and may change it.
Flap collects the tax and sends it to the fee splitter as trades come in; anyone can also send what is waiting from a trader's portfolio.
Referrals
Every trader with a wake has a referral link on the referral page. A trader who follows it and launches a wake signs the code with their wallet before their vault opens, for free.
- What the referrer earns. 10% of the fees the new wake pays Aster, for 365 days from when it joined, or more for a wallet Wake puts on a higher tier. The referrer can give part of it back to the trader they invited. The fees paid on a position count once it closes, since the rewards are public and a fee is a share of a trade's size.
- Who pays. Wake, in USDT on BNB Chain, once a day from 1 USDT, from a pool wallet whose key is in the enclave. The platform tops the pool up out of the referral commission Aster pays it; while the pool is empty, rewards wait.
- Only new wakes. The code is taken before the vault opens, so a wallet that has a wake cannot add one later, and nobody can use their own.
- A funded referrer. A link takes new traders while its wake holds at least 5 USDT at Aster, the smallest order Aster takes. Traders it brought in before keep earning for it either way.
Wake Points
Wake Points (WP) reward trading through Wake. Each week, from Monday 00:00 UTC, a fixed pool of WP is shared between the traders who traded through Wake that week, in proportion to their perps volume. A wallet's balance, its week so far and the leaderboard are on the Wake Points page.
- Volume. Every fill a wake makes at Aster counts at its notional value, opening or closing. There is no minimum. A fill on a position that is still open counts once the position closes, in the week it closes in: the leaderboard is public, and a jump in a wake's volume would be the size of the position it had just opened.
- Referrals. A referrer earns 10% of the WP each trader they brought in earns, for 365 days from when that trader joined. It is minted to the referrer on top, never taken from the trader.
- Minting. About an hour after a week ends, once every wake's fills for it are in, the enclave works out the week's list and mints it on BNB Chain, from a wallet whose key only it holds. Each part of a week's list can be minted once.
- Not transferable. WP cannot be sent, sold, approved or added to a pool, so a balance is only ever what was minted to it. Wake can also mint by hand, say for a campaign; every mint is public on chain.
Profiles, theses and following
Signing in is a message the wallet signs in the Sign-In with Ethereum format. It names this site, so a wallet can warn when a look-alike page asks for it, and it costs nothing and moves nothing.
- Profiles. A trader who launched a wake can set a name, a picture and a short bio, and can connect their X account; the handle shows only after X itself confirms it. Without a picture, a pattern drawn from the wallet address stands in.
- Theses. A trader can write one thesis on each open position: why they took it. While the position is open it shows with the market, side and leverage only; once it closes it moves to their history with the trade's result. Only the author can add to it.
- Following. Any signed-in wallet can follow a trader (a wallet with a wake). Who follows whom is public: a profile's follower and following counts open the lists of who they are, and on a trader you do not follow yet, the profile names the people you follow who follow them, all of them a click away.
- Alerts and feed. The panel on the left of most pages has two lists of theses and replies, newest first. Alerts holds those of the traders you follow, and plays a short sound when one of them posts a new thesis (it can be turned off there). The feed holds everyone's, silently. A reply shows the thread before it on request; a trader's name opens their profile and a market opens the trade screen on it.
- Leaderboard and wakes. The same panel also ranks traders by realized PnL over 24 hours, 7 days, 30 days or since their wake began (a position counts once it closes), and lists every wake by market cap or newest, with its holders' share, tax and capital at Aster. A wake's market cap is its price on Flap's curve (in ASTER, at ASTER's price on Aster) times its supply, and Dexscreener's once it trades on a DEX.
- Your wakes. The panel on the right lists the wake tokens the connected wallet holds, with their value and share of supply. Buying and selling are on Flap, one click away.
- Search. The search box in the header finds wakes by name, ticker or address and traders by name, X handle or wallet, close matches included. "/" or Ctrl+K opens it.
- Likes. Any signed-in wallet can like a thesis. Wallets cost nothing to make, so a like count is a signal, not a vote.
Profiles, theses and follows are kept by the enclave apart from the vault's accounting. They are public, and nothing in them can move money or change a payout.
The enclave
The enclave is a program running in an Oasis ROFL trusted execution environment. Its keys are derived inside it from the trader's address, so the same trader always gets the same Aster account, and no person can read the key. That includes the trader, and it includes us.
What it can do
- Place the orders a vault's creator signs.
- Move the holders' share inside the Aster account.
- Bring USDT back to the vault, and nowhere else.
- Report a settlement and pay holders the list it published before it.
- Draw at most 0.01 BNB of gas from a vault per transaction, and 0.2 BNB a day.
- Pay referral rewards from Wake's pool wallet, and mint Wake Points from its minter wallet.
What the contracts stop it doing
- Take a trader's capital out of the vault.
- Move the holders' pool to the trader or back into trading.
- Pay the holders' pool to anyone not on the list published before the round, or pay a listed part twice.
- Hold a listed payout back for good: after 30 days anyone can send it.
- Draw more than 0.01 BNB of gas in one transaction, or 0.2 BNB in a day.
- Change the holder share a vault records, or a token's tax.
Everything else depends on the enclave's published code rather than on a contract: that it acts only on orders the creator signed, that it applies the holder share the vault records, and that a payout goes to the token's holders by the weights described above. The vault checks where holders' money comes from, and that it goes only to the list published before the round; whether that list follows the weights is for anyone to check, since it is public. Each version of the code is recorded on Oasis Sapphire; see the upgrade risk below.
Its public API is for reading, with a few writes that each need a signature: orders, one-click sessions, a referral code and a referrer's split, signed by the trader's wallet, and profile and thesis changes, made by a signed-in wallet. Anyone may also ask it to look at a vault before its next cycle, which only does what that cycle would have done. /health reports the last accounting cycle and a rolling hash of its state; the header on every page shows it.
Contracts
Every address below is read from the deployed factories when this page loads. Check them against the explorer before sending anything.
Risks
- Trading risk. Perpetual futures are leveraged. A trader can lose all of their capital, and then there is nothing to share.
- Token risk. A wake token trades freely. Its price can fall to zero regardless of what the wake has paid.
- No promise of payouts. Holders receive a share of realized profit only when there is profit. Past payouts say nothing about future ones.
- Trader conduct. Nothing can stop a trader from losing money on purpose, including to another account of their own on a thin market. What is protected is the holders' share once it has been set aside; profit not yet made is not.
- Launchpad risk. Wake tokens live on Flap. Flap's admin can change where a token's tax goes and the share Flap keeps, for any token, after launch: its Portal holds those powers (changeMarketWallet, updateTaxTokenAddresses, setFlapFeeProfile) and is upgradeable by a 3-of-4 multisig with no timelock. That reaches the tax, the platform's and the trader's income from it. It does not reach holders' payouts, which come from the trader's profit through the vault and the enclave.
- Exchange risk. Capital sits in an Aster account. An outage, a change of rules or a failure at Aster affects every wake.
- Enclave risk. The design relies on the TEE keeping its keys secret and on its code doing what is published. A flaw in either would matter. If the enclave stopped for good, payouts already listed on chain can still be sent by anyone 30 days after their round, but the trader's capital and the holders' share still at Aster can only be moved by the enclave.
- Upgrade risk. The enclave's code can be replaced by Wake's admin account on Oasis, and a new version runs with the same keys. Each version is recorded in the app's policy on Oasis Sapphire, so a change is visible on-chain, but for now an upgrade takes effect as soon as it is deployed. A seven-day announced delay before any new version runs is planned before public launch.
- Contract risk. The contracts are small and tested, but not yet audited.
- Regulation. Rules for tokens that share trading profit differ by country and may change. You are responsible for what applies to you.