Skip to content

[Audit Fix] SafeMath.pow(10, 18) in ElasticMath.revamp should be hardcoded #29

@dmvt

Description

@dmvt

SafeMath.pow(10, 18) in ElasticMath.revamp is a very expensive exponentiation that should be hardcoded to 1e18.

Definition of Done

  • SafeMath.pow is removed
  • instances of Safemath.pow are replaced with 1e18

Attach files or screenshots if it's helpful for this issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingin reviewIssue is in review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions