tx · FeAWA4Jj2uXeWnNurxNCwT5gpjTRssbkrXPoLw7JvPZc
3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q: -0.04000000 Waves
2021.09.04 18:16 [1688476] smart account 3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q > SELF 0.00000000 Waves
{
"type": 13,
"id": "FeAWA4Jj2uXeWnNurxNCwT5gpjTRssbkrXPoLw7JvPZc",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1630768598842,
"version": 2,
"chainId": 84,
"sender": "3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q",
"senderPublicKey": "83iPAJVP46cHWYZXNdW5JwM2U8ZVXoQS3XtBkKv1Xgr3",
"proofs": [
"3GzjWZxj3dCUhvaqffB2ZtgMNKiN7krUT6ieTnJATLxNy2Vkj6uNNcR1M6d86Emw6reGTvsYPzns4FYLb4y1ywc8"
],
"script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAgAAAAAGb3JhY2xlCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABm9yYWNsZQIAAAAhTm8ga2V5IGJhc2VFeGNoYW5nZVJhdGUgd2FzIGZvdW5kAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAAAAAgAAAAFpAQAAAAVzZXR1cAAAAAIAAAAGY29uZmlnAAAABm9yYWNsZQMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwIAAAAFYWRtaW4JAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgIAAAAFYWRtaW4JAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZjb25maWcFAAAABmNvbmZpZwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZvcmFjbGUFAAAABm9yYWNsZQUAAAADbmlsCQAAAgAAAAECAAAAFU9yYWNsZSBhbHJlYWR5IHNldHVwIQAAAAFpAQAAAAhnZXRQcmljZQAAAAEAAAAHYXNzZXRJZAQAAAAFcHJpY2UEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAAAAAAAAAAAAAMJAAAAAAAAAgUAAAAHYXNzZXRJZAIAAAAFV0FWRVMJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABm9yYWNsZQIAAAAKV0FWRVMvcmF0ZQAAAAAAAAAAZAkABRQAAAACBQAAAANuaWwFAAAABXByaWNlAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmxyzR8",
"height": 1688476,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: ADJjVNSEcwiMmcZDTJCARgGhVbVUNbd8myxC5c352yQK
Next: AgYZkdzyFQHMXgkAXMmLibaKaF3T1sGBcGp3DjkihHnU
Diff:
Old | New | | Differences |
---|
20 | 20 | | if ($isInstanceOf(i, "String")) |
---|
21 | 21 | | then { |
---|
22 | 22 | | let j = i |
---|
23 | | - | if ((g == "WAVES")) |
---|
24 | | - | then getIntegerValue(addressFromStringValue(a), "WAVES/rate") |
---|
25 | | - | else 100 |
---|
| 23 | + | 0 |
---|
26 | 24 | | } |
---|
27 | | - | else 0 |
---|
| 25 | + | else if ((g == "WAVES")) |
---|
| 26 | + | then getIntegerValue(addressFromStringValue(a), "WAVES/rate") |
---|
| 27 | + | else 100 |
---|
28 | 28 | | } |
---|
29 | 29 | | $Tuple2(nil, h) |
---|
30 | 30 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = valueOrErrorMessage(getStringValue(this, "oracle"), "No key baseExchangeRate was found") |
---|
5 | 5 | | |
---|
6 | 6 | | func b (c,d) = StringEntry(c, d) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | @Callable(e) |
---|
10 | 10 | | func setup (f,a) = if (!(isDefined(getString(this, "admin")))) |
---|
11 | 11 | | then [b("admin", toBase58String(e.caller.bytes)), b("config", f), b("oracle", a)] |
---|
12 | 12 | | else throw("Oracle already setup!") |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(e) |
---|
17 | 17 | | func getPrice (g) = { |
---|
18 | 18 | | let h = { |
---|
19 | 19 | | let i = g |
---|
20 | 20 | | if ($isInstanceOf(i, "String")) |
---|
21 | 21 | | then { |
---|
22 | 22 | | let j = i |
---|
23 | | - | if ((g == "WAVES")) |
---|
24 | | - | then getIntegerValue(addressFromStringValue(a), "WAVES/rate") |
---|
25 | | - | else 100 |
---|
| 23 | + | 0 |
---|
26 | 24 | | } |
---|
27 | | - | else 0 |
---|
| 25 | + | else if ((g == "WAVES")) |
---|
| 26 | + | then getIntegerValue(addressFromStringValue(a), "WAVES/rate") |
---|
| 27 | + | else 100 |
---|
28 | 28 | | } |
---|
29 | 29 | | $Tuple2(nil, h) |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | @Verifier(k) |
---|
34 | 34 | | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
35 | 35 | | |
---|