Commit 347e22c
authored
feat(stake): show the claim-lock instead of a button that reverts (#271)
* fix(ui): scroll clearance under the sticky nav, balanced source tiles
- html gets scroll-padding-top: 5rem (64px sticky DaoHeader + breathing
room), so anchor jumps and scrollIntoView land clear of the nav
site-wide instead of leaving headings clipped behind its blur.
- The source tiles' column count now derives from the source count so
rows stay balanced: 5 sources render 3+2 instead of 4+1 with an
orphan; 6 (a future Seaport source) becomes 3+3. The formula and its
composition table are documented in place, including why auto-fit was
rejected — it trades a reproducible orphan for an intermittent one.
* feat(stake): show the claim-lock instead of a button that reverts
usersData already carried claimLockEnd (the power lock chosen at stake
time) and the position hook already read it as morUnlockAt — nothing
consumed it. The lootbox offered a Claim button for locked MOR that the
contract would revert until the lock lifts; one user has 0.2007 MOR
locked to 2028-07-28 behind what looked like a working button.
Reward pools now split by the lock: unlocked ones keep the button,
locked ones render as a dashed row with 'MOR locked until {date}' and no
button. Locked MOR still counts as a reason to surface the chest — it is
the user's money; it just cannot pretend to be claimable.1 parent 1dc8bb1 commit 347e22c
4 files changed
Lines changed: 202 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
179 | 184 | | |
180 | 185 | | |
| 186 | + | |
| 187 | + | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
185 | 192 | | |
186 | 193 | | |
187 | 194 | | |
| 195 | + | |
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| |||
313 | 321 | | |
314 | 322 | | |
315 | 323 | | |
| 324 | + | |
316 | 325 | | |
317 | 326 | | |
318 | 327 | | |
| |||
0 commit comments