This commit is contained in:
1 parent
dedf4f17db
commit
5f11b45dd4
2 files changed
+13
-3
No files matched your search
@@ -58,5 +58,15 @@ func (p *Provider) GetBalances() ([]int, []string, error) {
|
||||
|
||||
wg.Wait()
|
||||
|
||||
return nil, nil, nil
|
||||
cad, err := convertBTCToCAD(totalSats, p.coinGeckoApiKey)
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("failed to convert sats to CAD: %v", err)
|
||||
}
|
||||
|
||||
balances := make([]int, 0)
|
||||
accounts := make([]string, 0)
|
||||
balances = append(balances, int(cad))
|
||||
accounts = append(accounts, p.ynabAccountID)
|
||||
|
||||
return balances, accounts, nil
|
||||
}
|
||||
Reference in new issue
Block a user