Reference

FAQ

The questions that come up most, answered against what the contracts actually do rather than what the design intends.

Is $SUB worth anything?

No. $SUB is testnet-only and carries no monetary value. The token contract ships a permissionless faucet that mints up to 1,000 $SUB to anyone once an hour, so supply is effectively unbounded.

That faucet must be removed, or gated behind access control, before any mainnet deployment.

How do I get testnet $SUB?

Use the faucet in the staking dApp, which calls mintFaucet on the token contract. You need Sepolia ETH for gas — any public Sepolia faucet will do.

The cooldown is per recipient, not per caller, so you cannot top up the same address twice within an hour.

Is there a lockup, or a withdrawal fee?

Neither. Principal is always withdrawable in full, and withdrawing settles your accrued rewards first, so you never forfeit yield by leaving.

If you want out entirely in one transaction, exit() withdraws your whole stake and claims in the same call.

Why does the APR change when I have not done anything?

APR is rewardRate × seconds-per-year ÷ totalStaked. The rate is fixed until the owner changes it, but total staked moves every time anyone stakes or withdraws — so your share of a fixed emission stream changes with theirs.

It is recomputed on every read rather than stored, which is why the dApp's figure moves without any transaction of yours.

Can the vault pay my rewards out of someone else's deposit?

No, and that is the property the whole design is built around. Rewards come only from an explicit budget the owner funds via fundRewards, tracked in rewardsAvailable, and emission stops at periodFinish — always the moment that budget would be exhausted at the current rate.

The invariant vaultBalance >= totalStaked + unclaimedRewards therefore holds for any sequence of stakes, withdrawals and claims. It is covered by fuzz tests, and the backend re-checks it on a cron against live chain state.

What can the owner do?

Three things: fund the reward budget, change the emission rate, and recover budget that has not yet been committed to stakers.

The owner cannot touch staked principal, and cannot claw back rewards that have already accrued — recoverUnallocatedRewards settles accounting before it checks the budget, so pending accrual is already protected by the time the withdrawal is authorised.

The owner can also mint $SUB, which on a testnet with an open faucet is not an additional privilege of any consequence.

What happens if nobody is staked?

Accrual pauses: with nothing staked there is no per-token rate, so no rewards are committed and the budget is not debited.

periodFinish is not pushed back to compensate, though. Wall-clock time keeps advancing toward it, so budget that would have been emitted during an empty stretch can end up stranded past the end of the window. The owner can recover it, or extend the window by funding again.

Does rounding lose money for the last staker?

It rounds in the vault's favour, not against it. rewardsAvailable is debited by the full elapsed × rewardRate, while each staker's share passes through two floor divisions — so slightly less is paid out than was committed.

The difference accumulates as surplus the vault holds beyond what it owes, which means the final staker is over-covered rather than short.

Which networks is this live on?

Ethereum Sepolia only. The repository contains address manifests for Base Sepolia and Arbitrum Sepolia, but those came from dry runs and nothing is deployed at those addresses — see Deployments.

Are the contracts audited?

No third-party audit has been performed. They are built on audited OpenZeppelin v5.1.0 primitives — ReentrancyGuard, SafeERC20, Ownable, ERC20Permit — and covered by a Foundry suite including fuzzed solvency invariants and an ERC-777-style reentrancy test, but that is not the same thing as an audit.

Can I index events myself instead of using the API?

Yes. Every state change emits an event, and the backend is only a convenience layer over eth_getLogs. The Contracts pages list every event with its full signature and indexed parameters.

If you do build your own indexer, note that the reward liability at any moment is not readable in a single call — see the Solvency Model page for how it is reconstructed from funding events.