feat: savings allocations
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m31s
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m31s
This commit is contained in:
parent
ff237e2fab
commit
2dac136049
17 changed files with 1140 additions and 4 deletions
13
internal/ui/blocks/allocations.go
Normal file
13
internal/ui/blocks/allocations.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package blocks
|
||||
|
||||
import "github.com/shopspring/decimal"
|
||||
|
||||
func decimalHundred() decimal.Decimal { return decimal.NewFromInt(100) }
|
||||
func decimalZero() decimal.Decimal { return decimal.Zero }
|
||||
|
||||
func targetDisplay(t *decimal.Decimal) string {
|
||||
if t == nil {
|
||||
return ""
|
||||
}
|
||||
return t.StringFixedBank(2)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue