Sluice docs Buy $SLUICE

Getting started

Sluice docs

Sluice is a coin with a weir in it. Every creator fee $SLUICE earns comes down one channel and is split three ways, in equal parts, with no person in the loop. This page is the whole manual: what each gate does, the exact arithmetic, the ledger the site is drawn from and the small module that does the math.

SaltBuys the coin on the market and burns it. Supply goes down.
FieldBuys the coin and sends it to traders who do not hold it. One wallet, once.
BasinAdds both sides to the pool and burns the LP. Depth goes up and stays.

Why not just pay holders

A fee that goes back to holders rewards whoever is already there, and that is all it does. A coin also needs fewer tokens in circulation and a pool that can take a sell without falling over. The weir spends one fee on all three problems at once and writes down every lamport.

What is real on this site

Numbers come from two places only. The chain: supply, burned tokens, pool depth, price. And the ledger: a plain file of events the engine appends to. Anything you compute yourself with a slider is marked dry run and never mixed into either.

Getting started

Quick start

The gate math ships as one ES module with no dependencies. Import it straight from this site and split a fee.

import { route, fieldPlan, toLamports, toSol } from "https://sluicefun.vercel.app/lib/sluice.js";

// a 0.25 SOL creator fee comes down the channel
const r = route(toLamports(0.25));

console.log(toSol(r.salt), toSol(r.field), toSol(r.basin));
// 0.08332333  0.08332333  0.08334833

console.log(fieldPlan(r.field).wallets);
// 37 new wallets watered

Try it

This runs the same route() the rest of the site uses, in your browser, right now.

Loading the module…

Getting started

How it works

Five steps, on a loop, all of them on-chain.

  1. Fees are collected. Every trade of $SLUICE pays a creator fee. The engine claims it once it is worth more than the transaction that claims it, and books it once, by signature.
  2. The fee hits the weir. The network cost comes off first, then the operating reserve is topped up if it is below its floor. What is left is divided into three parts. Each part has its own book, so one gate can never spend another gate's water.
  3. Salt dries out. The salt book buys $SLUICE on the market and burns it.
  4. The field is watered. The field book buys $SLUICE and sends small amounts to active traders who do not hold it yet, one wallet once.
  5. The basin fills. The basin book waits as SOL until the coin leaves the curve. Then half is swapped, both sides go into the pool, and the LP tokens are burned in the same transaction.

Order of deductions

StepAmountWhere it goes
Gross feefeeLamportsClaimed only above minClaim, 0.01 SOL
Networksignatures × 5000Paid to validators, reported on its own line
Reserveup to reserveOwedKeeps the engine wallet at 0.05 SOL so it can always sign
Netthe restSplit by the plan, dust falls into the basin
NOTEInteger math only. Three floors would lose up to 2 lamports per fee, so the basin share is defined as the remainder: salt + field + basin always equals the net, to the lamport.

The gates

Salt

The salt gate is a buyback and burn. It swaps its SOL for $SLUICE in the coin's own pool and burns every token it received with a standard SPL Burn instruction. Nothing is sent to a dead address and nothing is kept.

How much gets burned

The pool is a constant-product market, so the amount is a function of the pool and nothing else. saltPlan() returns it together with the price move the buy causes.

salt.js
import { saltPlan, readMarket, toLamports } from "https://sluicefun.vercel.app/lib/sluice.js";

const coin = await readMarket("<any Solana CA>");
const plan = saltPlan(toLamports(0.5), coin.pool);

console.log(plan.burned, plan.shareOfSupply, plan.impact);

Reading the burn yourself

Do not trust the site for the big number. Ask the mint: readSupply(ca) reads the mint account with getAccountInfo on a public RPC and subtracts its supply from the 1,000,000,000 minted at launch.

The gates

Field

The field gate turns SOL into new holders. It buys $SLUICE and sends a small amount to wallets that trade on Solana but have never held the coin. A wallet is a plot, and a plot is watered once, enforced by a unique key in the engine's database and visible in the ledger.

What one plot costs

PartLamportsWhy
Token-account rent2,039,280The recipient has no account for the coin yet, the engine opens it
Network fee5,000One signature per delivery
The drop200,000SOL value of the tokens bought for that wallet
WARNINGMost of a plot's cost is rent, not tokens. That is why rent has its own line in the ledger and is never reported as "sent". If you see a site that counts rent as distribution, it is flattering itself.

Who gets watered

eligibility() is the whole rulebook. A wallet must pass every line.

RuleFails when
User walletThe address is a program, a pool or any account not owned by the system program
Not a holderIt already holds the coin
OnceIt was watered before
ActiveFewer than 5 trades in the last 30 days
Not a one-coin walletFewer than 2 different coins traded
Not a botMore than 6 transactions a minute, sustained

The Field page runs these rules live with inspectWallet(), which reads the last 200 signatures of any address from a public RPC. The browser version cannot count distinct coins without parsing every transaction, so it treats five or more recent transactions as the activity signal and says so.

The gates

Basin

The basin gate deepens the pool and throws away the key. On the bonding curve there is no pool to add to, so the share waits as SOL in the LP fund, shown live. After graduation it is deposited in a few transactions close together so no single one moves the price.

One deposit, one transaction

  1. Swap half of the SOL for $SLUICE in the pool.
  2. Deposit the remaining SOL and the tokens just bought as liquidity.
  3. Burn the LP tokens received in step 2.

All three are instructions of the same transaction. If the burn fails, the deposit never happened.

basin.js
import { basinPlan, toLamports } from "https://sluicefun.vercel.app/lib/sluice.js";

const pool = { sol: 85, tokens: 206_900_000 };
console.log(basinPlan(toLamports(1), pool, true));
// { waiting: false, solAdded: 0.5, tokensAdded: 1206..., depthGain: 0.0117..., lpBurned: true }

Building

Launch a coin

A coin drafted on the Launch page carries the same weir. Its creator is not you, it is the coin's own engine wallet, which is the reason its creator fees can be split by code and not by a promise.

SharePlan launchWhat it does
Salt25%Buys your coin back and burns it
Field25%Buys your coin and sends it to new traders
Basin25%Goes into your coin's pool, LP burned
Upstream25%Buys back and burns $SLUICE

At launch you pay the coin's account rent, a 0.01 SOL seed for the engine's first network fees and your optional first buy. The tokens from the first buy are yours. The creator fees are not.

NOTEDrafts live in your browser's localStorage under the key sluice.drafts. Nothing is uploaded, and clearing site data deletes them.

Building

Boost a coin

A boost puts the weir on a coin that already exists. Anybody can do it for any coin, with no permission from its developer, because the SOL goes to that coin's own engine wallet and that wallet has exactly three verbs.

SharePlan boostWhat it does
Field30%Buys the coin and sends it to new holders
Salt30%Buys the coin back and burns it
Basin30%Goes into its pool, LP burned
Upstream10%Buys back and burns $SLUICE

The Boost page looks the coin up on the live market and works out all four numbers for any size from 0.5 SOL.

boost.js
import { split, toLamports, toSol } from "https://sluicefun.vercel.app/lib/sluice.js";

const s = split(toLamports(2), "boost");
console.log(toSol(s.field), toSol(s.salt), toSol(s.basin), toSol(s.upstream));
// 0.6 0.6 0.6 0.2

Reference

Ledger format

The ledger is append-only JSON at /data/ledger.json. Every event carries the signature of the transaction it describes, and tally() ignores a signature it has already seen, so replaying the file can never double-count.

ledger.json
{
  "version": 1,
  "engine": "<engine wallet>",
  "events": [
    { "kind": "fee",     "sig": "5h3…", "ts": 1796170000, "lamports": 250000000 },
    { "kind": "burn",    "sig": "2Qw…", "ts": 1796170060, "lamports": 83000000, "tokens": 143900 },
    { "kind": "drop",    "sig": "4Zk…", "ts": 1796170090, "lamports": 200000, "tokens": 480, "to": "8rDi…", "rent": 2039280, "network": 5000 },
    { "kind": "deposit", "sig": "3Lm…", "ts": 1796170120, "lamports": 41000000, "tokens": 127100 }
  ]
}
KindFieldsEffect on the books
feelamports, plan?Routed: network and reserve come off, the three books go up
feedlamportsThe upstream share of a launched or boosted coin, added to the salt book
burnlamports, tokensSalt book down, burned up
droplamports, tokens, to, rent, networkField book down by the drop, the rent and the fee
depositlamports, tokensBasin book down, pool up, LP burned

While the file has no events, the site shows a dash where a ledger number would be. It does not show zero and it does not show an estimate.

Reference

Module API

lib/sluice.js, version 1.0.0. Pure functions first, live reads after. SOL amounts are integers in lamports unless the name ends in Sol.

FunctionReturns
split(lamports, plan){ salt, field, basin, upstream }, exact to the lamport
route(fee, opts){ claimed, gross, network, reserve, net, salt, field, basin, upstream }
quoteBuy(solIn, pool, feeBps){ tokensOut, priceBefore, priceAfter, impact }
saltPlan(lamports, pool, supply){ spentSol, burned, supplyAfter, shareOfSupply, impact }
fieldPlan(lamports, opts){ wallets, perWallet, rent, network, buyback, carry }
basinPlan(lamports, pool, graduated){ waiting, heldSol, solAdded, tokensAdded, depthGain, lpBurned }
eligibility(stats){ ok, reasons[] }
guard(action, state){ ok, reason? }
tally(events)Totals and the three books
readMarket(ca)Deepest Solana pair of any coin, from DexScreener
readSupply(ca, rpc){ supply, burned, share } from the mint
inspectWallet(address, ca, rpc){ address, stats, ok, reasons[] }
solPrice()SOL in USD, Jupiter first, DexScreener as fallback
loadLedger(url){ engine, events, totals }

Constants

NameValueMeaning
SUPPLY1,000,000,000Tokens minted at launch
LIMITS.minClaim0.01 SOLFees below this stay unclaimed
LIMITS.reserve0.05 SOLFloor of the engine wallet
LIMITS.ataRent0.00203928 SOLRent for one token account
LIMITS.dropLamports0.0002 SOLValue bought for one watered wallet
LIMITS.minBoost0.5 SOLSmallest boost
LIMITS.capPerAction2 SOLMost a single buy or deposit may spend
LIMITS.capPerDay40 SOLMost the engine may spend in 24 hours
LIMITS.swapFeeBps30Pool fee assumed by quotes

Errors

MessageThrown byFix
lamports must be a non-negative integer of lamportssplit, routeConvert with toLamports() first
unknown plansplitUse own, launch, boost or your own object
plan must add up to 10000 bpssplitShares are basis points and must total exactly 10000
not a Solana addressinspectWalletBase58, 32 to 44 characters
rpc error or the RPC's own textreadSupply, inspectWalletPublic RPCs rate-limit, retry or pass your own URL

Reference

Limits and what can go wrong

A machine that spends money by itself needs brakes more than it needs features. These are the brakes, and after them the things no brake can fix.

The guard

  • No action may spend more than 2 SOL, and the engine may not spend more than 40 SOL in 24 hours.
  • A gate can only spend from its own book. guard() refuses anything larger.
  • Three failed transactions in a row pause the engine until a person looks at it.
  • Every transaction is written to the ledger before it is sent, so a restart never loses one and never sends one twice.
  • Before each round the engine checks that the wallet really holds the SOL and tokens the three books say it owes.

Threat model

RiskWhat happensWhat limits it
Engine key is stolenThe thief can take what sits in the three books at that momentBooks are emptied every round, so the balance at rest is small. Burned tokens and burned LP cannot be taken back by anyone
Sandwiching a buybackA bot trades around the engine's swapSmall buys, random timing, a slippage limit on every swap
Sybil farms on the fieldFake "active traders" collect dropsOne drop is worth 0.0002 SOL, less than it costs to fake the activity that qualifies
RPC lies or lagsThe site shows a stale numberThe site reads again every minute and shows when it last did
The teamCould stop running the engineNothing. What is already burned or locked stays that way, what is not yet claimed waits
WARNINGSluice will never ask for a seed phrase, a private key or a signature in order to "receive" anything. A watered wallet does nothing at all. Anyone asking you to connect and claim is not us.

Token

$SLUICE

One token, on Solana, with a fixed supply that can only shrink.

FieldValue
Ticker$SLUICE
Contractsoon
Minted1,000,000,000
Supply right now—
Burned—
Price—
Pool depth—

Buy $SLUICEChartX

Token

FAQ

Do I need to do anything to be watered?

No. Recipients never connect a wallet, sign anything or pay anything. The engine pays the network fee and the rent.

Why is the basin share held before graduation?

On the bonding curve there is no pool to add liquidity to. The fund is shown live on the Basin page and goes in as soon as there is one.

Can the liquidity be removed?

No. The LP tokens a deposit creates are burned in the same transaction, so there is nothing left to redeem.

Is there a developer share?

Yes. Part of the $SLUICE creator fees goes to the people who keep the engine running, and the rest goes over the weir. Network fees and rent are tracked on their own lines and are never counted as burned, sent or pooled.

Why do the pages show dashes?

Because a dash is the honest value of a number that has not happened yet. The moment the contract address is set, supply, burn, price and pool depth are read from the chain, and ledger numbers appear with the first event.

What happens if something breaks?

The engine stops itself. See the guard above: caps per action and per day, a pause after repeated failures, and a balance check before every round.