Загрузить файлы в «/»
This commit is contained in:
parent
ef8a947a04
commit
b3e19af9b6
1 changed files with 10 additions and 11 deletions
21
contract.go
21
contract.go
|
@ -26,18 +26,17 @@ var prices map[string]int
|
||||||
|
|
||||||
// Prices are multiplied by 1e14 and rounded to be represented as fixed point int
|
// Prices are multiplied by 1e14 and rounded to be represented as fixed point int
|
||||||
func init() {
|
func init() {
|
||||||
prices = map[string]int{
|
prices = map[string]int{
|
||||||
"XMR": 152100000,
|
"XMR": 152100000,
|
||||||
"XRP": 603500,
|
"XRP": 603500,
|
||||||
"ADA": 579300,
|
"ADA": 579300,
|
||||||
"AVAX": 39690000,
|
"AVAX": 39690000,
|
||||||
"BNB": 308300000,
|
"BNB": 308300000,
|
||||||
"BTC": 46648920000,
|
"BTC": 46648920000,
|
||||||
"ETH": 2623000000,
|
"ETH": 2623000000,
|
||||||
"SOL": 101180000,
|
"SOL": 101180000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TopUp(address interop.Hash160, token string, amount int) bool {
|
func TopUp(address interop.Hash160, token string, amount int) bool {
|
||||||
if !isKnownToken(token) {
|
if !isKnownToken(token) {
|
||||||
|
|
Loading…
Reference in a new issue