faucet

the valve

The valve is the only way out of the tank. It opens once for every trade and how much it lets through depends on one thing: how full the tank is. This page shows the law it follows and where the tank sits on it right now.

price
right now

What the valve would do on the next trade

tank level
release at this level
share of the tank released
last release
mean tax per stroke
settling level
strokes metered
tax taken in

The first row is the live state. The release shown is what the valve would let out if a trade landed this second. It moves with the level, so it changes after every stroke.

Mean tax per stroke is the average tax of the last 50 trades. The settling level is worked out from it and is explained further down.

the law

Release is the square root of the level

Water leaving a hole at the bottom of a real tank does not drain at a steady rate. The deeper the water, the harder it pushes, and the speed of the stream grows with the square root of the depth. The valve copies that.

release = 0.02 × √tank

Tank and release are both in BNB. The number 0.02 is fixed. If the formula ever asks for more than the tank holds, which only happens below 0.0004 BNB, the valve releases what is there.

Two things follow. A bigger tank always releases more per trade. But it releases a smaller share of itself: a tank four times as full lets out only twice as much. So the tank is slow to fill, slow to empty, and never reaches zero through the valve.

0.25000.0050000.50000.01000.75000.01501.0000.0200tank level, BNBrelease per stroke, BNB
The valve law drawn as a curve. The marked point is the tank right now. The second mark is the level the tank is heading for at the current rate of tax.
release at each level

The law as a table

Each row is worked out from the formula. These are not readings. The row closest to the live tank level is marked.

tank levelrelease per strokeshare of tankstrokes to halve with no tax arriving
0.01000.00200020.00%3
0.05000.0044728.94%7
0.10000.0063256.32%10
0.25000.01004.00%15
0.50000.01412.83%21
1.0000.02002.00%30
2.5000.03161.26%47
5.0000.04470.89%66
10.0000.06320.63%93
25.0000.10000.40%147
50.0000.14140.28%207
100.00.20000.20%293
where it settles

The level is a reading of how hard the coin trades

Tax comes in with every trade and the valve lets some out with every trade. If the tax arriving is more than the valve releases, the level rises, and a higher level releases more. If it is less, the level falls, and a lower level releases less. Either way the tank moves toward the one level where the two match.

settling level = (tax per stroke ÷ 0.02)²

Because of the square, the settling level is very sensitive to trade size. Trades twice as large hold the tank four times as full. Nobody sets the level. It is a readout of the trading itself.

tax per stroketrade size that pays itsettling level
0.0010000.03330.002500
0.0050000.16670.0625
0.01000.33330.2500
0.02000.66671.000
0.05001.6676.250
0.10003.33325.000
0.25008.333156.3

Worked out from the formula. The live settling level is in the first section.

recent head

The tank over the last strokes

Each row is one trade, newest first, with the level before it, what came in, what went out and the level after.

timetank beforetax intipped backoverflowreleasetank aftertx