PoffertSwapDocs
Open app

How it works

Safety and guarantees

What the program enforces for every token and every user, what the platform's admin can and cannot do, and what no platform can protect you from.

On this page

This page is honest about two things: the strong guarantees that the program itself enforces, and the risks that remain no matter what. Read both before you put anything of value into any token.

Important

PoffertSwap is a beta on the Solana devnet test network, and it has not been through an external security audit. The coins on devnet have no value. Treat the guarantees below as a description of how the program is built and tested, not as a promise that it is free of mistakes.

What the program guarantees#

These rules are part of the program's code. They are the same for every token and cannot be switched off by the creator.

About every token#

Guarantee What it means for you
Fixed supply The power to create new tokens is switched off in the same transaction that creates the token. The supply is 1,000,000,000 forever.
No freezing A token has no freeze power. Nobody can freeze your tokens.
Locked details The name, ticker, picture, description and links are locked at creation. A token cannot be turned into something else later.
Fair start Every token starts with the same rules: all supply in the curve, no pre-mine and no team allocation. A creator who wants some tokens has to buy them like everyone else, and the optional first buy happens in the same transaction as the launch.
Fixed curve rules The curve's settings and fees are copied into it when it is created. Nobody can change them for a token that is already trading.

About your money#

Guarantee What it means for you
You hold your coins Your tokens and SOL stay in your wallet. The platform has no way to move them. Every action needs your signature.
Slippage is enforced on chain The minimum you accept (and the maximum you pay) is checked by the program, not just by the app. If a trade would be worse, the program refuses it.
Rounding favors the pool Tiny rounding differences always go to the curve or pool, never against it, so repeated small trades cannot drain it.
Pools cannot lose value on a swap After every swap the program checks that the pool's value (the product of its two reserves) did not shrink.
Pools always hold what they owe After every instruction the program checks that each vault holds at least its tracked reserves plus the fees owed.
Donations cannot distort the price A pool counts its own tracked reserves, not what its vault happens to hold. Sending extra tokens to a vault changes nothing.

About graduation and pools#

  • The starting liquidity of a graduated pool is locked forever. It is never turned into LP tokens, so nobody can withdraw it.
  • Every pool permanently keeps a small amount of liquidity, so it can never be emptied completely.
  • Nobody can create a pool for a token that still has an active curve, which prevents a fake early pool.
  • Pools reject tokens with extensions that could take a cut of every transfer or lock the pool (see Pools and liquidity).

You can always get out#

The platform has switches to pause new activity, for example in an emergency. They have a built-in limit: pausing never blocks you from leaving.

Switch Pauses Never blocked
Launching Creating new tokens n/a
Curve trading Buying on curves Selling on a curve
Pool trading Swapping, adding liquidity and graduating Removing liquidity
(any) n/a Claiming creator rewards

What the platform's admin can and cannot do#

PoffertSwap has an administrator role. This is what it covers, and what it does not.

It can:

  • Change the default trading fees and curve settings for new tokens, within the program's hard caps (3% on curves, 1% in pools).
  • Set a migration fee, charged when a curve graduates. It is 0 today. See the warning below.
  • Use the pause switches above.
  • Hand the admin role to another wallet. This takes two steps: the current admin names a successor, and the successor must accept.
  • Change where the platform's own fee share is sent.

It cannot:

  • Move your coins, or take tokens or SOL out of a curve or a pool directly. There is no instruction for that.
  • Change an existing token's curve settings, its trading fees or its details.
  • Create more tokens, or freeze anyone's tokens.
  • Stop you from selling, withdrawing liquidity or claiming rewards.
  • Raise the trading fees above the caps. The program rejects it.

Every configuration change is recorded as a public event on the network, so it can be seen by anyone.

Careful

One admin power does reach the money buyers have paid in: the migration fee. When a curve graduates, the program sends the migration fee out of the SOL that buyers paid in to the platform's fee wallet, and the rest goes into the pool. The fee is 0 today, so the whole amount goes to the pool. But the program puts no cap on this fee, and it is read at the moment a curve graduates, not when the token is launched. A change would therefore apply to tokens that are already trading, and it is not covered by the 3% and 1% caps above. Every change is a public event, and the current value can be read from the platform's public configuration account (see The program). Until the program gains a cap, this part of the system relies on trusting the admin.

Note

The program can be upgraded. Solana programs are upgradeable by whoever holds their upgrade authority, and that holder can replace the program's code. During this beta, that is the development team's deployer wallet. This is the strongest power that exists in the system, and it is the reason a beta on a test network is not a place for real money.

How the program is tested#

  • The price and fee math lives in one shared place and is used by the program, the app and the data service, so they cannot disagree.
  • More than 500 shared test cases (including extreme values) pass in both the Rust program and the TypeScript app.
  • Random-trade tests run long sequences of trades, swaps, deposits and withdrawals against the compiled program and check, after every step, that nothing is created from nothing and every token is accounted for.
  • The program has dozens of tests that run the real compiled program for every instruction, every error and the full life cycle from launch to graduation.
  • Bugs found by these tests were fixed and kept as tests. One example: an early version failed during graduation, and the cause was traced and fixed.

What no platform can protect you from#

Careful

Anyone can launch any token. There is no review. A token being listed here is not a recommendation, and nobody checks whether its name, picture or story is true. Copycats and misleading tokens exist on every open launchpad.

  • Price risk. A token's price can fall to almost nothing as easily as it rises. The curve guarantees you can sell, not that you will get what you paid.
  • Creators can sell. A creator can hold tokens and sell them. Look at the Holders tab: it shows how concentrated the supply is.
  • Fast markets. On Solana, other people can see transactions that are waiting to be processed and may try to trade ahead of you. Your slippage limit is your protection, so do not set it higher than you need.
  • Phishing. Only ever use the real address of the app. PoffertSwap will never ask for your recovery phrase. Be careful with links sent by strangers.
  • Wallet security. Your recovery phrase and your device are your responsibility.