CosmWasm / CosmWasm/cw-plus

cw20-ics20: AmountOverflow error

Open
#687 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
527
Forks
362
PR merge metrics
No merged PRs in 30d

Description

Thrown from
https://github.com/CosmWasm/cw-plus/blob/2ddabc41909dba2adee36196546ed32ef8f8612b/contracts/cw20-ics20/src/ibc.rs#L48

I'm testing with osmosis LPs (18 decimals), this would affect the evm tokens: EVMOS, Cronos, (18 decimals).

Max amount allowed: ~18.4 EVMOS

Contributor guide

Open the contributing guide

Research direction

Start at contracts/cw20-ics20/src/ibc.rs line 48, where the AmountOverflow error is thrown. Reproduce the behavior with Osmosis LP or other 18-decimal tokens such as EVMOS and Cronos, then verify that the supported amount range no longer overflows and that the error behavior is covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.