Skip to content

Promote dev to main: plain Stake page copy, newest-portfolio pricing - #60

Merged
moscowchill merged 2 commits into
mainfrom
dev
Oct 20, 2026
Merged

moscowchill merged 2 commits into
mainfrom
dev

Conversation

@moscowchill

Copy link
Copy Markdown
Contributor

Brings main up to dev again.

Both were reviewed and merged on dev. Nothing deploys from this merge.

* fix(frontend): plain first-screen copy on the Stake page

The Stake page led with a shield badge reading "No upgrade authority"
and a card listing every admin role the contracts lack. That reads as
defensive. Remove the badge and replace the card with a short "Before
you stake" note: variable returns that can be negative, the withdrawal
queue, and the operator's role in validator performance and
execution-tip routing, with a link to How it works. The position small
print keeps its facts in plainer words. Other pages are unchanged.

* fix(frontend): keep the position-to-wallet binding on the Stake page

The removed badge was the page's only note that a position is not
transferable. Say it plainly in Before you stake: the position stays
with the depositing wallet and payouts go to that wallet.
…portfolio (#59)

A superseded but still-fresh stage kept admitting deposits and reserving
withdrawals at its older economics after a newer portfolio was verified.
That moved part of a proven loss or reward between holders: in the
2026-10-20 review a withdrawer avoided 200 of a 520 QRL loss, and a
newcomer captured 2,600 of income proven before its admission.

Each admission or reservation batch now applies the newest completed
portfolio first. The stage keeps its cutoff, FIFO order, batch bounds
and phase; reserved claims, earned fees and pending refunds stay as they
are. Repeated supersession cannot restart processing, and stale stages
stay abortable.

Tests on native bytecode: both review scenarios (the withdrawer receives
19,800; existing holders keep all income proven before the admission),
freshness at ages 64 and 65, newer snapshots sharing an execution
cutoff, renewal at the recovery deadline and recovery one slot later,
and 65 admissions in bounded batches followed by FIFO withdrawals under
repeated supersession.

Gas: ordinary batches cost 5,571 more; a batch that refreshes costs
about 75k to 94k more; pool runtime grows 278 bytes to 21,906.
@moscowchill
moscowchill merged commit 4a32cd1 into main Oct 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant