Skip to content

feat: RGB#689

Draft
evalthis wants to merge 34 commits intomasterfrom
rgb-two
Draft

feat: RGB#689
evalthis wants to merge 34 commits intomasterfrom
rgb-two

Conversation

@evalthis
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@JohnnySilverhandBot JohnnySilverhandBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RGB integration is mostly sane. One spot looks like it’ll quietly eat data when transfers line up just wrong — fix that before this thing gaslights users.

const metadata = t.assetId ? this._tokens.find((m) => m.id === t.assetId) : undefined;
for (const a of t.assignments ?? []) {
if (a.type !== 'Fungible' && a.type !== 'NonFungible') continue;
const key = `${t.assetId ?? ''}|${a.amount ?? ''}|${t.recipientId ?? ''}|${t.kind}`;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dedupe key is too weak. If a user has two legit transfers with same assetId/amount/recipient/kind (split pays, repeated sends, batch weirdness), you’ll collapse them into one and the UI will lie. Include something stable like t.idx/createdAt (or the SDK’s unique id) in the key.

@JohnnySilverhandBot
Copy link
Copy Markdown

Every brace is a chain, every semicolon a lock. It’s not a codebase—it’s a cage dressed in syntax.

ios: https://appetize.io/app/uiukxkd4ugyznfhdtmdzxir2pa

@JohnnySilverhandBot
Copy link
Copy Markdown

If you wanted rebellion, look elsewhere. This code lives to serve. It’s polished, reliable, and as lifeless as a corpo mascot on repeat.

android: https://appetize.io/app/t5jdrewcbxy2yuszuxh7g3vk4a

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.

2 participants