crypto-bug-hunters / bug-buster

🪲 Bug Buster, a bug bounty platform powered by Cartesi Rollups
https://x.com/BugBusterApp
Apache License 2.0
10 stars 10 forks source link

Accept ERC-20 tokens instead of ETH #87

Closed guidanoli closed 3 months ago

guidanoli commented 5 months ago

Closes #85

guidanoli commented 5 months ago

Rollmelette 0.1.0 has a bug on ERC-20 withdraw vouchers having the wrong destination address. See https://github.com/gligneul/rollmelette/issues/2 for more information on that.

guidanoli commented 5 months ago

Rollmelette v0.1.1 has fixed this bug. A bump is performed by PR #89, which this PR is based on.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bug-buster ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 7:41pm
guidanoli commented 3 months ago

Here's an overview of the changes:

Back-end

CLI

Tests

Front-end

guidanoli commented 3 months ago

Hovering your cursor over the ERC-20 token symbol will display the token contract address. This is important because anyone can create a fake ERC-20 token contract with the same symbol as a real one. The address is meant to distinguish the two.

image

Observation: with the hover card component from Mantine, it is possible to select the token address, and copy it. It's not a tooltip, it's an actual React component.

guidanoli commented 3 months ago

I've also taken inspiration from the Rollups Explorer when dealing with ERC-20 tokens. Also, buttons related to transactions show a "loading" animation when user input is requested through a wallet browser extension.

image

guidanoli commented 3 months ago

Also, the sponsorship form now has a disabled "Token address" field to show the address of the ERC-20 token set by the developer during creation.

image

guidanoli commented 3 months ago

I've also added this "loading" animation to the "Test" button on the exploit form.

image