Use ints in calculations #9
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Activity
Doing
Activity
Proposal
Activity
QA
Activity
Validate
Runner
AT
Runner
CLI
Runner
HTTP
Runner
SSH
cleanup
devops
documentation
easypeasy
exchange
i18n
l8ter
legacy
meta
migration
optimization
privilege
refactor
smell
support
tooling
ux
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: urdt/ussd#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
for example https://git.grassecon.net/urdt/ussd/src/branch/wip-account-creation/internal/handlers/ussd/menuhandler.go#L611
do not use float to calculate amounts. please make into int and use given number of decimals as unit.
For transfer values, the API will expect the number in string represented (big)int. And because it is possible for the USSD wallet to hold any token, you will need to know the decimals beforehand. API access for this can be provided. However, for now, the decimals getter can be hardcoded to 6 until when such data is available.
let's conceal this behind a dedicated function though.
not helpful issue.