types: reformat account usd cal expression

This commit is contained in:
c9s 2021-12-05 15:25:14 +08:00
parent 91f26cc501
commit c8ba2e59e3

View File

@ -93,13 +93,12 @@ func (m AssetMap) SlackAttachment() slack.Attachment {
a.Total.Float64(),
USD.FormatMoneyFloat64(a.InUSD.Float64()),
BTC.FormatMoneyFloat64(a.InBTC.Float64()),
math.Round(a.InUSD.Div(totalUSD).Float64() * 100.0),
math.Round(a.InUSD.Div(totalUSD).Float64()*100.0),
),
Short: false,
})
}
return slack.Attachment{
Title: fmt.Sprintf("Net Asset Value %s (≈ %s)",
USD.FormatMoneyFloat64(totalUSD.Float64()),