Skip to content

Commit

Permalink
Merge pull request #421 from tonkeeper/update_rates
Browse files Browse the repository at this point in the history
update the calculation of rates for the dedust pools
  • Loading branch information
zakhar-petukhov authored Aug 15, 2024
2 parents 057e5aa + d393795 commit 0276130
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 137 deletions.
4 changes: 3 additions & 1 deletion pkg/rates/calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ func (c *calculator) GetMarketsTonPrice() ([]Market, error) {
}

type Mock struct {
TonApiToken string
TonApiToken string
StonFiResultUrl string
DedustResultUrl string
}

func (m Mock) GetRates(date int64) (map[string]float64, error) {
Expand Down
Loading

0 comments on commit 0276130

Please sign in to comment.