utils

package
v0.0.0-...-82415a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateAccountBalanceHistory

func UpdateAccountBalanceHistory(address string, db *database.Db) error

UpdateAccountBalanceHistory updates the historic balance for the user having the given address

func UpdateAccountBalanceHistoryWithTime

func UpdateAccountBalanceHistoryWithTime(address string, time time.Time, db *database.Db) error

UpdateAccountBalanceHistoryWithTime updates the historic balance for the user having the given address storing it associated to the given time

func UpdatePriceHistory

func UpdatePriceHistory(prices []types.TokenPrice, db *database.Db) error

UpdatePriceHistory stores the given prices inside the price history table

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL