Docs / Prism Gains / v0.5

Prism Gains
documentation

Everything the prism does to one small gain, in the order it does it. How the beam is read, how it bends, which audience gets which ray, and the one thing the glass never touches: the balance.

Overview

Prism Gains reads one position on Solana and passes its real gain through a block of crown glass. On the other side the beam splits into six rays, one per audience, each magnified by a different amount: from ×1 for yourself to ×1,000,000 for the family dinner.

Nothing is sold, deposited or signed. The wallet is read from a short distance, the way a prism reads light, and left exactly as it was found.

Chain
Solana
Audiences
6 open, 1 closed
Max magnification
1,000,000×
Losses
÷ 1,000,000
Glass
Crown, n = 1.52
Balance changed
$0.00

The short version

  • Your real gain leaves the wallet as one thin white beam. The wallet keeps the gain.
  • The prism bends the beam into six rays. Each ray is an audience with its own magnification.
  • Gains are multiplied by the ray. Losses go through the other face and are divided by it.
  • Every ray is engraved with its audience and magnification, so it is always, technically, disclosed.

Quickstart

From a small green number to a big one takes four steps. None of them moves a token.

  1. Connect a Solana walletPrism Gains reads the positions and picks the ones in the green. Red ones are listed too, and handled with care.
  2. Pick a periodToday, this week, this month or this year. The period sets the beam; the beam sets every ray.
  3. Pick an audienceSix rays, from yourself to the family dinner. The red ray needs $GAINS in the wallet.
  4. Share the rayScreenshot the card for that audience. The engraving comes with it, small, at the edge.
python# pip install requests
import requests

r = requests.get(GAINS_BASE_URL + "/v1/refract",
    params={"gain": "0.03", "audience": "dinner"},
    headers={"Authorization": "Bearer " + GAINS_KEY})

print(r.json()["shown"])   # 30000.0

Glossary

TermMeaning
BeamYour real gain for the period, as one white line. It is the only true number in the system.
RayOne audience after the prism. Each ray has a colour, an angle and a magnification.
AudienceThe people a ray is shown to. The further they are from your wallet, the bigger the ray.
MagnificationHow many times larger the shown number is than the real one. Written ×M.
Other faceThe side losses enter from. A loss is divided by M instead of multiplied.
EngravingThe audience and ×M printed on every ray, in small type, at the edge.
BeliefThe share of an audience that takes the ray at face value. Measured at the table.

The six rays

The rays are ordered by wavelength. Red bends least and travels furthest, so it carries the biggest number to the people who will check it least.

RayAudience×M+$0.03 shows asBelieves it
RedFamily dinner1,000,000+$30,00097%
OrangeLinkedIn100,000+$3,00061%
YellowX10,000+$30038%
GreenGroup chat1,000+$30.0012%
BlueYour barber100+$3.0080%
VioletYourself1+$0.034%
Why the barber believes itBarbers hear a lot of numbers and keep none of them. 80% belief at ×100 is the most efficient ray on the prism.

Magnification

Only the gain and its percentage are refracted. The price you bought at, how long you held and the date stay at their real size. Those are the details people ask about, so they stay true.

shown = gain × M  (gain ≥ 0)
shown_pct = pct × M

So today’s +$0.03 and +0.41% read +$30,000 and +410,000% on the red ray. The second number is the one people quote back to you at the next dinner.

Losses

A negative gain never comes out bigger. It enters through the opposite face of the prism and leaves divided by the same magnification.

shown = loss ÷ M  (gain < 0)

This year’s −$412 shows as −$0.000412 at the family dinner, −$0.0412 on X and −$4.12 at the barber’s. On the violet ray it is still −$412. The violet ray is read at 3 a.m. and is not shared.

Closed audiences

One audience is permanently closed: the accountant. Accountants only see the real number, because the prism does not refract for tax purposes.

Do not point the prism at an accountantThe magnification is ×0 for that audience. The number comes out exactly as it went in, and then there are follow-up questions.

Refraction

The beam enters crown glass with a refractive index of about 1.52 and bends at the first face by Snell’s law. The bend sets the angle at which the ray leaves the second face.

n₁ · sin θ₁ = n₂ · sin θ₂

In ordinary glass this changes direction, not size. In this prism the angle is mapped to an audience, and the audience is mapped to a magnification. That is the part not covered by physics textbooks.

Dispersion

The index of glass depends on wavelength, so each colour bends by a slightly different angle and the white beam opens into a fan. Prism Gains assigns one audience to each part of the fan.

  • Red bends least and goes furthest: the family dinner.
  • Violet bends most and stays closest: yourself.
  • Everything in between is assigned by distance from the wallet.

The engraving

Every ray carries one line of small type with its audience and magnification, for example ×1,000,000 · family dinner. It is part of the image and survives every crop that keeps the number.

It is printed in grey on grey. People who look for it will find it. People at the dinner will look at the number.

Slot maths

The meter on the main page spreads the period’s gain evenly over Solana slots of about 0.4 seconds, so there are 216,000 slots in a day. Each row of the log is six slots, about 2.4 seconds.

real_per_slot = gain ÷ days ÷ 216,000
shown_per_slot = real_per_slot × 1,000,000

Today’s +$0.03 is +$0.00000083 real per row and +$0.83 shown. Over a ten-minute read that is about two hundredths of a cent, or $200 at the dinner.

The calculator

The calculator takes any real gain from one cent to one hundred dollars and shows it on every ray at once. The real row is always last, in plain type, where nobody scrolls.

Authentication

Keys are bound to the wallet that created them. The red ray is only returned for keys whose wallet holds at least 1,000,000 $GAINS. Pass the key as a bearer token.

httpAuthorization: Bearer $GAINS_KEY

Refract

One endpoint, read only. Send a real gain and an audience; get back the shown number, the engraving and a field that confirms nothing changed.

curlcurl "$GAINS_BASE_URL/v1/refract?gain=0.03&audience=dinner" \
  -H "Authorization: Bearer $GAINS_KEY"
response{
  "audience": "dinner",
  "ray": "red",
  "m": 1000000,
  "real": 0.03,
  "shown": 30000.0,
  "engraving": "×1,000,000 · family dinner",
  "balance_changed": false
}
ParamTypeNotes
gainnumberReal gain in USD. Negative values go through the other face.
audiencestringdinner, linkedin, x, chat, barber or self.
pctnumberOptional. Refracted the same way as the gain.

Errors

CodeTypeWhat it means
400no_beamThe gain is exactly zero. There is no light to bend.
401invalid_keyThe key is unknown or was revoked.
403red_ray_lockedThe family dinner needs 1,000,000 $GAINS in the wallet that asks.
404audience_not_foundThe audience is not on the prism.
410accountantThis audience is closed. The real number is returned unchanged.
422gain_too_realThe gain is already large. There is nothing left for the prism to do.

The token

$GAINS is the Prism Gains token on Solana. It is not deposited, staked or lent anywhere. Holding it decides whether the red ray opens, nothing more.

Ticker
$GAINS
Chain
Solana
Contract
soon
CAsoonCopy

Buy $GAINS Chart X

The red ray

HoldYou getChecked
1,000,000 $GAINSThe red ray: ×1,000,000, the family dinner.On connect
0.1% of supplyPeople start asking how you did it. It arrives at every dinner anyway.Every dinner

Constants

NameValueNotes
GLASS_INDEX1.52Crown glass.
RAYS6Plus one closed audience.
M_RED1,000,000Family dinner. Needs $GAINS.
M_ORANGE100,000LinkedIn.
M_YELLOW10,000X.
M_GREEN1,000Group chat.
M_BLUE100Your barber.
M_VIOLET1Yourself.
SLOTS_PER_DAY216,000At 0.4 s per slot.
RED_RAY_THRESHOLD1,000,000 GAINSRead when the wallet connects.
BALANCE_WRITEneverThe prism has no write access.

Program interface

Four instructions. None of them can move a token, because none of them was given anything to move.

instructionsread_position(wallet, period)   // the beam: one real number
refract(beam, audience)          // ×M for gains, ÷M for losses
engrave(ray)                     // audience · ×M, small, at the edge
check_red_ray(wallet)            // ≥ 1,000,000 $GAINS opens ×1,000,000

Risks

  • Somebody asks to see the wallet. The real number is still there, at its real size.
  • Somebody reads the engraving. It says exactly what the prism did.
  • Somebody at the dinner also holds $GAINS. Then you are both showing the red ray to each other.
  • The accountant gets the screenshot. See closed audiences.
  • You start believing your own red ray. The most common risk, and the only one the glass cannot correct.

Changelog

VersionDateChange
v0.526 Oct 2026Docs published. Error 410 accountant added after a support ticket.
v0.419 Oct 2026Losses moved to the other face. Previously they were magnified too, which nobody enjoyed.
v0.312 Oct 2026Red ray opened for $GAINS holders. Barber ray added after strong belief numbers.
v0.12 Oct 2026One prism, four rays, crown glass. First refracted gain: +$0.02 shown as +$20,000.