Skip to content

Commit

Permalink
Don't dollarise shares, fix table tracking for SARP Signaller
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Jan 23, 2025
1 parent dbffd18 commit 1f1e391
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion db/migrations/1736780912-sarp_signaller.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ CREATE TABLE ninelives_events_concluded(
block_number INTEGER NOT NULL,
emitter_addr ADDRESS NOT NULL,

ticket HUGEINT NOT NULL UNIQUE
ticket HUGEINT NOT NULL UNIQUE,
justification BYTES32 NOT NULL
);

-- migrate:down
5 changes: 3 additions & 2 deletions lib/types/events/9lives.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type (
TradingAddr Address `json:"trading_addr"`
Desc Bytes `json:"desc" gorm:"column:desc_"`
LaunchTs time.Time `json:"launch_ts"`
CallDeadline uint64 `json:"call_deadline"`
CallDeadline uint64 `json:"call_deadline"`
}

EventCallMade struct {
Expand Down Expand Up @@ -154,6 +154,7 @@ type (
EventConcluded struct {
Event

Ticket Number `json:"ticket"`
Ticket Number `json:"ticket"`
Justification Bytes `json:"justification"`
}
)
2 changes: 1 addition & 1 deletion web/src/components/degenMode/degenModeListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function DegenModeListItem({ data }: { data: Action }) {
</span>
{data.type !== "create" ? (
<span className="font-geneva text-[10px] uppercase">
${data.actionValue ?? "?"} FOR {data.outcomeName ?? "?"}
{data.actionValue ?? "?"} SHARES FOR {data.outcomeName ?? "?"}
</span>
) : null}
</div>
Expand Down

0 comments on commit 1f1e391

Please sign in to comment.