tx · 2HwANvERmeiAoAZ16B47ffgMUQF8DytTjPH8WMeNctwP

3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q:  -0.04000000 Waves

2021.09.04 18:44 [1688498] smart account 3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q > SELF 0.00000000 Waves

{ "type": 13, "id": "2HwANvERmeiAoAZ16B47ffgMUQF8DytTjPH8WMeNctwP", "fee": 4000000, "feeAssetId": null, "timestamp": 1630770391790, "version": 2, "chainId": 84, "sender": "3N1acUf6EfjSRybWLQsk99Gd7RiS2DQME9Q", "senderPublicKey": "83iPAJVP46cHWYZXNdW5JwM2U8ZVXoQS3XtBkKv1Xgr3", "proofs": [ "2wLDhc8R7jzDXYfticLmsXfbkaNaAjbfL4anoB7sKbxasbQckaumhz1Q7KRZ8htRQaUPCf4trKzuP2pn8pAgWjdg" ], "script": "base64:AAIFAAAAAAAAAA0IAhIECgIICBIDCgEIAAAAAgAAAAAGb3JhY2xlCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABm9yYWNsZQIAAAAhTm8ga2V5IGJhc2VFeGNoYW5nZVJhdGUgd2FzIGZvdW5kAQAAAAt3cml0ZVN0cmluZwAAAAIAAAADa2V5AAAAC3N0cmluZ1ZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAC3N0cmluZ1ZhbHVlAAAAAgAAAAFpAQAAAAVzZXR1cAAAAAIAAAAGY29uZmlnAAAABm9yYWNsZQMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwIAAAAFYWRtaW4JAARMAAAAAgkBAAAAC3dyaXRlU3RyaW5nAAAAAgIAAAAFYWRtaW4JAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZjb25maWcFAAAABmNvbmZpZwkABEwAAAACCQEAAAALd3JpdGVTdHJpbmcAAAACAgAAAAZvcmFjbGUFAAAABm9yYWNsZQUAAAADbmlsCQAAAgAAAAECAAAAFU9yYWNsZSBhbHJlYWR5IHNldHVwIQAAAAFpAQAAAAhnZXRQcmljZQAAAAEAAAAHYXNzZXRJZAQAAAAFcHJpY2UEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAMJAAAAAAAAAgUAAAAHYXNzZXRJZAIAAAAFV0FWRVMAAAAAAAAAC/4AAAAAAAAAAGQAAAAAAAAAAAAJAAUUAAAAAgUAAAADbmlsBQAAAAVwcmljZQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5qeX2Aw==", "height": 1688498, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5hPQTEabPf7XCp2nffpm1VwNK1exb6GbY256gKnTSuMB Next: AJ8a8MjmLCnZfSx7rLuyU5mc6Qxqb8jsQNHc2DznSYBb Diff:
OldNewDifferences
2121 then {
2222 let j = i
2323 if ((g == "WAVES"))
24- then getIntegerValue(addressFromStringValue(a), "WAVES/rate")
24+ then 3070
2525 else 100
2626 }
2727 else 0
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrErrorMessage(getStringValue(this, "oracle"), "No key baseExchangeRate was found")
55
66 func b (c,d) = StringEntry(c, d)
77
88
99 @Callable(e)
1010 func setup (f,a) = if (!(isDefined(getString(this, "admin"))))
1111 then [b("admin", toBase58String(e.caller.bytes)), b("config", f), b("oracle", a)]
1212 else throw("Oracle already setup!")
1313
1414
1515
1616 @Callable(e)
1717 func getPrice (g) = {
1818 let h = {
1919 let i = g
2020 if ($isInstanceOf(i, "String"))
2121 then {
2222 let j = i
2323 if ((g == "WAVES"))
24- then getIntegerValue(addressFromStringValue(a), "WAVES/rate")
24+ then 3070
2525 else 100
2626 }
2727 else 0
2828 }
2929 $Tuple2(nil, h)
3030 }
3131
3232
3333 @Verifier(k)
3434 func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
3535

github/deemru/w8io/169f3d6 
21.38 ms