tx · EWgBK4hpDSwyEe17LoyazmWZsuKiEFAuA3sVrz2rRWQe
3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP: -0.01000000 Waves
2023.06.19 10:15 [2629197] smart account 3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP > SELF 0.00000000 Waves
{
"type": 13,
"id": "EWgBK4hpDSwyEe17LoyazmWZsuKiEFAuA3sVrz2rRWQe",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1687158981109,
"version": 2,
"chainId": 84,
"sender": "3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP",
"senderPublicKey": "5sTpaMQe2KW8dskXeG41rUyomuUePPeo57FbhuoSsq2R",
"proofs": [
"3q8r17vTQXPU33uW2wftGg1B64JpQg249i2MupbEQiMyedj4hRuVdvBJvDYnZV3wWCW5DJUjXVWr7NZ6c2vYDyLn"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIBAAAAAAAAAABAAAAAWkBAAAACWdldFRXQVA2MAAAAAIAAAAIYXNzZXRTdHIAAAAFZGVidWcEAAAAA3ZhbAMJAAAAAAAAAgUAAAAIYXNzZXRTdHICAAAABVdBVkVTCQAFFAAAAAIFAAAAA25pbAkABRQAAAACAAAAAAAAGLggAAAAAAAAGLggAwkAAAAAAAACBQAAAAhhc3NldFN0cgIAAAAsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQJAAUUAAAAAgUAAAADbmlsCQAFFAAAAAIAAAAAAAANu6AAAAAAAAANu6AEAAAAAXAKAAAAAAFACQAD/QAAAAQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRHYdFKTc5/+9vupfS91sItmkjqQtK5YZsCAAAAGmdldFNoYXJlQXNzZXRQcmljZVJFQURPTkxZCQAETAAAAAIFAAAACGFzc2V0U3RyBQAAAANuaWwFAAAAA25pbAMJAAABAAAAAgUAAAABQAIAAAADSW50BQAAAAFACQAAAgAAAAECAAAAGENvdWxkbid0IGNhc3QgQW55IHRvIEludAMJAAAAAAAAAgUAAAABcAUAAAABcAkABRQAAAACBQAAAANuaWwJAAUUAAAAAgUAAAABcAUAAAABcAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4DBQAAAAVkZWJ1ZwkAAAIAAAABCQABpAAAAAEICAUAAAADdmFsAAAAAl8yAAAAAl8xBQAAAAN2YWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledztYhE=",
"height": 2629197,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3uSteQfx19b4f9U12LcapF9t7Yrpx8owEQJA7k7LkQ6g
Next: 4eEafu7y2PuhiVkMJXjxP86Dhxp6z2kUdFJXfppKvPMP
Diff:
Old | New | | Differences |
---|
11 | 11 | | then $Tuple2(nil, $Tuple2(900000, 900000)) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let e = { |
---|
14 | | - | let f = invoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getShareAssetPriceREADONLY", [b], nil) |
---|
| 14 | + | let f = reentrantInvoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getShareAssetPriceREADONLY", [b], nil) |
---|
15 | 15 | | if ($isInstanceOf(f, "Int")) |
---|
16 | 16 | | then f |
---|
17 | 17 | | else throw("Couldn't cast Any to Int") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func getTWAP60 (b,c) = { |
---|
8 | 8 | | let d = if ((b == "WAVES")) |
---|
9 | 9 | | then $Tuple2(nil, $Tuple2(1620000, 1620000)) |
---|
10 | 10 | | else if ((b == "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT")) |
---|
11 | 11 | | then $Tuple2(nil, $Tuple2(900000, 900000)) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let e = { |
---|
14 | | - | let f = invoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getShareAssetPriceREADONLY", [b], nil) |
---|
| 14 | + | let f = reentrantInvoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getShareAssetPriceREADONLY", [b], nil) |
---|
15 | 15 | | if ($isInstanceOf(f, "Int")) |
---|
16 | 16 | | then f |
---|
17 | 17 | | else throw("Couldn't cast Any to Int") |
---|
18 | 18 | | } |
---|
19 | 19 | | if ((e == e)) |
---|
20 | 20 | | then $Tuple2(nil, $Tuple2(e, e)) |
---|
21 | 21 | | else throw("Strict value is not equal to itself.") |
---|
22 | 22 | | } |
---|
23 | 23 | | if (c) |
---|
24 | 24 | | then throw(toString(d._2._1)) |
---|
25 | 25 | | else d |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | @Verifier(g) |
---|
30 | 30 | | func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
31 | 31 | | |
---|