Skip to content

accept only multiplies of token price as commitment amount  #178

@rudolfix

Description

@rudolfix

currently any amount can be accepted by ETO
number of tokens per amount is always rounded down to prohibit "shaving" single tokens by investing `amount + token price/2 +1 wei) which usually we round up
in low gas times it could be significant attack

this however will take any rounding surplus from investor and give to company. amounts are not significant but to remain 100% fair we should only accept amounts "divisible" by token price (up to a small limit). large differences should revert

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions