Compare commits
1 commit
master
...
yaaarslv-p
Author | SHA1 | Date | |
---|---|---|---|
3aa80361bd |
1 changed files with 13 additions and 11 deletions
20
contract.go
20
contract.go
|
@ -1,3 +1,5 @@
|
||||||
|
//go:build !exclude_crypto_ecdsa
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -22,17 +24,17 @@ func (w Wallet) getTokenBalance(token string) int {
|
||||||
|
|
||||||
var prices map[string]int
|
var prices map[string]int
|
||||||
|
|
||||||
// Prices are multiplied by 1e14 and rounded to be represented as fixed point int
|
// All prices are multiplied by 1e10 and rounded to be represented as fixed point int
|
||||||
func init() {
|
func init() {
|
||||||
prices = map[string]int{
|
prices = map[string]int{
|
||||||
"XMR": 152100000,
|
"XMR": 1521000000000,
|
||||||
"XRP": 603500,
|
"XRP": 6035000000,
|
||||||
"ADA": 579300,
|
"ADA": 5793000000,
|
||||||
"AVAX": 39690000,
|
"AVAX": 396900000000,
|
||||||
"BNB": 308300000,
|
"BNB": 3083000000000,
|
||||||
"BTC": 46648920000,
|
"BTC": 466489200000000,
|
||||||
"ETH": 2623000000,
|
"ETH": 26230000000000,
|
||||||
"SOL": 101180000,
|
"SOL": 1011800000000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue