trang bức amount
All checks were successful
Build Docker Image / build (amd64) (push) Successful in 21s
All checks were successful
Build Docker Image / build (amd64) (push) Successful in 21s
This commit is contained in:
@@ -46,13 +46,13 @@ func OnTokenInfoByToken(context telebot.Context, token string) error {
|
||||
_ = chat.ReplyMessage(context, view.RenderOnPriceMessage(symbols[0], sp, fp, fundRate, fundTime, tokenInterestRate))
|
||||
if strings.ToUpper(token) == "ETH" {
|
||||
mFmt := message.NewPrinter(language.AmericanEnglish)
|
||||
baseAmount := 35.
|
||||
trangBucBaseAmount := 17.
|
||||
realAmount := 35.
|
||||
trangBucAmount := 14.
|
||||
basePrice := 2500.0
|
||||
baseTotal := baseAmount * basePrice
|
||||
trangBucTotal := trangBucBaseAmount * basePrice
|
||||
curTotal := baseAmount * sp
|
||||
trangBucCurTotal := trangBucBaseAmount * sp
|
||||
baseTotal := realAmount * basePrice
|
||||
trangBucTotal := trangBucAmount * basePrice
|
||||
realCurTotal := realAmount * sp
|
||||
trangBucCurTotal := trangBucAmount * sp
|
||||
|
||||
lastDelta := ""
|
||||
if lastEthPrice == 0 {
|
||||
@@ -62,7 +62,7 @@ func OnTokenInfoByToken(context telebot.Context, token string) error {
|
||||
"Δ price: $%+.0f\n"+
|
||||
"Δ Usdt: $%+.0f\n",
|
||||
sp-lastEthPrice,
|
||||
(sp-lastEthPrice)*baseAmount,
|
||||
(sp-lastEthPrice)*realAmount,
|
||||
)
|
||||
lastEthPrice = sp
|
||||
}
|
||||
@@ -72,17 +72,19 @@ func OnTokenInfoByToken(context telebot.Context, token string) error {
|
||||
"∑ USDT: $%.0f\n"+
|
||||
"Lợi nhuận: $%.0f\n"+
|
||||
"%s\n"+
|
||||
"\n"+
|
||||
"🚀🚀🚀🚀🚀 Road to 5k 🚀🚀🚀🚀🚀: \n"+
|
||||
"- Δ Price: $%0.0f\n"+
|
||||
"- Δ Vol: $%0.0f\n"+
|
||||
"💸💸💸💸💸💸 Trang Bức balance 💸💸💸💸💸💸\n"+
|
||||
"\n"+
|
||||
"💸💸💸💸💸 Trang Bức balance 💸💸💸💸💸\n"+
|
||||
"∑ USDT: $%.0f\n"+
|
||||
"Lợi nhuận: $%.0f\n",
|
||||
curTotal,
|
||||
curTotal-baseTotal,
|
||||
realCurTotal,
|
||||
realCurTotal-baseTotal,
|
||||
lastDelta,
|
||||
5000-sp,
|
||||
5000*baseAmount-curTotal,
|
||||
5000*realAmount-realCurTotal,
|
||||
trangBucCurTotal,
|
||||
trangBucCurTotal-trangBucTotal,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user