Skip to content

Standardize SafeERC20 usage for non-compliant tokens #237

@Baskarayelu

Description

@Baskarayelu

Standardize SafeERC20 usage for non-compliant tokens

Description

  • Direct transfer/transferFrom calls can fail silently on non-standard tokens.

Requirements and context

  • Cover all token movement paths.
  • Preserve existing allowance and approval logic where possible.

Suggested execution

  • Replace direct ERC20 calls with SafeERC20 wrappers.
  • Handle safeIncreaseAllowance/forceApprove patterns as needed.

Test and commit

  • Add tests using mock token without boolean return values.
  • Validate failures revert consistently.

Example commit message

  • refactor(contracts): migrate token flows to SafeERC20

Guidelines

  • Avoid unsafe blanket approvals.
  • Keep token address validation in place.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcontractsContractserc20Token standard handlingsecuritySecuritysoliditySolidity and EVM

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions