@@ -14,41 +14,41 @@ import (
1414)
1515
1616var (
17- defaultLocale = language .English
18- usdcAmountPrinter = message .NewPrinter (defaultLocale )
17+ defaultLocale = language .English
18+ amountPrinter = message .NewPrinter (defaultLocale )
1919)
2020
21- func SendUsdcReceivedFromDepositPush (ctx context.Context , pusher Pusher , user * commonpb.UserId , usdMarketValue float64 ) error {
22- title := "Cash Now Available"
23- body := usdcAmountPrinter .Sprintf (
24- "$%.2f was added to your Flipcash wallet" ,
21+ func SendUsdfReceivedFromDepositPush (ctx context.Context , pusher Pusher , user * commonpb.UserId , usdMarketValue float64 ) error {
22+ title := "Cash Reserves Now Available"
23+ body := amountPrinter .Sprintf (
24+ "$%.2f of Cash Reserves was added to your Flipcash wallet" ,
2525 usdMarketValue ,
2626 )
2727 return pusher .SendBasicPushes (ctx , title , body , user )
2828}
2929
3030func SendFlipcashCurrencyReceivedFromDepositPush (ctx context.Context , pusher Pusher , user * commonpb.UserId , currencyName string , usdMarketValue float64 ) error {
3131 title := fmt .Sprintf ("%s Now Available" , currencyName )
32- body := usdcAmountPrinter .Sprintf (
32+ body := amountPrinter .Sprintf (
3333 "$%.2f of %s was added to your Flipcash wallet" ,
3434 usdMarketValue ,
3535 currencyName ,
3636 )
3737 return pusher .SendBasicPushes (ctx , title , body , user )
3838}
3939
40- func SendUsdcReceivedFromSwapPush (ctx context.Context , pusher Pusher , user * commonpb.UserId , region ocp_currency.Code , nativeAmount float64 ) error {
41- title := "Cash Now Available"
42- body := usdcAmountPrinter .Sprintf (
43- "%s was added to your Flipcash wallet" ,
40+ func SendUsdfReceivedFromSwapPush (ctx context.Context , pusher Pusher , user * commonpb.UserId , region ocp_currency.Code , nativeAmount float64 ) error {
41+ title := "Cash Reserves Now Available"
42+ body := amountPrinter .Sprintf (
43+ "%s of Cash Reserves was added to your Flipcash wallet" ,
4444 localization .FormatFiat (defaultLocale , region , nativeAmount ),
4545 )
4646 return pusher .SendBasicPushes (ctx , title , body , user )
4747}
4848
4949func SendFlipcashCurrencyReceivedFromSwapPush (ctx context.Context , pusher Pusher , user * commonpb.UserId , currencyName string , region ocp_currency.Code , nativeAmount float64 ) error {
5050 title := fmt .Sprintf ("%s Now Available" , currencyName )
51- body := usdcAmountPrinter .Sprintf (
51+ body := amountPrinter .Sprintf (
5252 "%s of %s was added to your Flipcash wallet" ,
5353 localization .FormatFiat (defaultLocale , region , nativeAmount ),
5454 currencyName ,
0 commit comments