Skip to content

Commit 371a13b

Browse files
sktbrdclaude
andauthored
docs(stake): correct the MOR routing comment in use-morpheus-stake (#257)
The header claimed the claim flow and the "opt-in donate split" would "come in a later phase". Both statements are false and have been for a while: the claim flow ships in MorLootbox / RewardClaimModal, and `stake()` 250 lines below wires the split by DEFAULT — a second signature pointing this pool's claim receiver at the staker's deterministic 3-way PushSplit (staker 50 / Gnars 25 / athlete 25). Replaces it with what the file does, including the part that is easy to miss: that second signature is the entire opt-out, and it is silent. It sits in a try/catch, so declining it leaves the receiver at 0x0 and the staker keeps 100% of the MOR while the stake still stands. Anyone tempted to "fix" that swallowed catch should know stake-graph.ts reads a zero receiver as a raw deposit rather than a sponsorship, and deliberately excludes it from the orbit and its totals. Comment only — no behaviour change, no user-facing copy touched. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent da28c32 commit 371a13b

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

src/hooks/use-morpheus-stake.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,25 @@
55
// stake() passes the athlete's wallet as `referrer_`, so the athlete accrues a
66
// protocol-funded referral bonus (3–15% tiered) at zero cost to the depositor —
77
// this is the athlete's "cut", since Morpheus has no fee skim to route through a
8-
// split. The claim flow (MOR out, LayerZero fee) and the opt-in donate split
9-
// come in a later phase.
8+
// split.
9+
//
10+
// WHERE THE MOR GOES, as this file actually behaves today. The claim flow (MOR
11+
// out, LayerZero fee) is live — see MorLootbox / RewardClaimModal — and the
12+
// split is NOT opt-in and NOT a later phase: `stake()` below wires it by
13+
// default. Right after the deposit lands it asks for a SECOND signature setting
14+
// this pool's claim receiver to the staker's deterministic 3-way PushSplit
15+
// (staker 50 / Gnars 25 / athlete 25, see lib/mor-split.ts).
16+
//
17+
// That second signature is the whole opt-out, and it is silent: the call sits in
18+
// a try/catch, so declining it leaves the receiver at 0x0 and the staker keeps
19+
// 100% of the MOR — with the stake still standing and the athlete still earning
20+
// the referrer bonus. Worth knowing before "fixing" that catch: services/
21+
// stake-graph.ts reads a zero receiver as a raw Morpheus deposit rather than a
22+
// sponsorship, so a staker who declines is deliberately excluded from the orbit
23+
// and from its totals.
24+
//
25+
// This paragraph replaced one claiming the claim flow and the split "come in a
26+
// later phase" — it had been wrong long enough to mislead a reader of this file.
1027
//
1128
// Everything is a real mainnet tx (gas is not cheap) — the UI flags that.
1229
import { useCallback, useRef, useState } from "react";

0 commit comments

Comments
 (0)