Compare commits
2 commits
yaaarslv-p
...
master
Author | SHA1 | Date | |
---|---|---|---|
c3d9f1794c | |||
b3e19af9b6 |
1 changed files with 10 additions and 13 deletions
23
contract.go
23
contract.go
|
@ -1,5 +1,3 @@
|
||||||
//go:build !exclude_crypto_ecdsa
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -26,19 +24,18 @@ 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) {
|
||||||
runtime.Log("Token " + token + " is unkown")
|
runtime.Log("Token " + token + " is unkown")
|
||||||
|
|
Loading…
Add table
Reference in a new issue