Skip to content

this line throws error(division by zero) while our simulation #16

@Hyung-bharvest

Description

@Hyung-bharvest

@alessio

below line throws error(division by zero) while our simulation

proRataRecip := sdk.OneDec().Quo(proRataDec)

in orderbook, we see an residual order with amount 0.0000.
i suspect this is a decimal control issue.
because we tested only with integer amount, there is no way for orderbook to have
such small residual order.

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