Загрузить файлы в «/»
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,19 +26,18 @@ var prices map[string]int
|
|||
|
||||
// Prices are multiplied by 1e14 and rounded to be represented as fixed point int
|
||||
func init() {
|
||||
prices = map[string]int{
|
||||
"XMR": 152100000,
|
||||
"XRP": 603500,
|
||||
"ADA": 579300,
|
||||
"AVAX": 39690000,
|
||||
"BNB": 308300000,
|
||||
"BTC": 46648920000,
|
||||
"ETH": 2623000000,
|
||||
"SOL": 101180000,
|
||||
}
|
||||
prices = map[string]int{
|
||||
"XMR": 152100000,
|
||||
"XRP": 603500,
|
||||
"ADA": 579300,
|
||||
"AVAX": 39690000,
|
||||
"BNB": 308300000,
|
||||
"BTC": 46648920000,
|
||||
"ETH": 2623000000,
|
||||
"SOL": 101180000,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func TopUp(address interop.Hash160, token string, amount int) bool {
|
||||
if !isKnownToken(token) {
|
||||
runtime.Log("Token " + token + " is unkown")
|
||||
|
|
Loading…
Reference in a new issue