-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
checkDeltaBalance should take an extra parameter: an epsilon tolerance when checking balance delta.
This is to replace the ususal pattern:
await checkBalanceDelta(user.pkh, (d) => checkEqualEpsilon(d, -10, 0.02), async () => {
...
})where checkEqualEpsilon is:
const checkEqualEpsilon = (value, target, epsilon) => Math.abs(value - target) < epsilon;Hence the call below should be:
await checkBalanceDelta(user.pkh, -10, 0.02, async () => {
...
})Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request