tx · 4eEafu7y2PuhiVkMJXjxP86Dhxp6z2kUdFJXfppKvPMP
3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP: -0.01000000 Waves
2023.06.22 13:09 [2633701] smart account 3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP > SELF 0.00000000 Waves
{
"type": 13,
"id": "4eEafu7y2PuhiVkMJXjxP86Dhxp6z2kUdFJXfppKvPMP",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1687428624501,
"version": 2,
"chainId": 84,
"sender": "3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP",
"senderPublicKey": "5sTpaMQe2KW8dskXeG41rUyomuUePPeo57FbhuoSsq2R",
"proofs": [
"2pDWKw52QpeXUUVwgbfrkX84H4Z79CzQRvTAvudg5fSC7kyqjMfbrj65jCTq4JQbQXEG4KcmQPSpAiRaD83fXr1Q"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIBAAAAAAAAAABAAAAAWkBAAAACWdldFRXQVA2MAAAAAIAAAAIYXNzZXRTdHIAAAAFZGVidWcEAAAAA3ZhbAMJAAAAAAAAAgUAAAAIYXNzZXRTdHICAAAABVdBVkVTCQAFFAAAAAIFAAAAA25pbAkABRQAAAACAAAAAAAAF2RIAAAAAAAAF2RIAwkAAAAAAAACBQAAAAhhc3NldFN0cgIAAAAsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQJAAUUAAAAAgUAAAADbmlsCQAFFAAAAAIAAAAAAAABToEAAAAAAAABToEEAAAAAXAKAAAAAAFACQAD/QAAAAQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRHYdFKTc5/+9vupfS91sItmkjqQtK5YZsCAAAAGmdldFNoYXJlQXNzZXRQcmljZVJFQURPTkxZCQAETAAAAAIFAAAACGFzc2V0U3RyBQAAAANuaWwFAAAAA25pbAMJAAABAAAAAgUAAAABQAIAAAADSW50BQAAAAFACQAAAgAAAAECAAAAGENvdWxkbid0IGNhc3QgQW55IHRvIEludAMJAAAAAAAAAgUAAAABcAUAAAABcAkABRQAAAACBQAAAANuaWwJAAUUAAAAAgUAAAABcAUAAAABcAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4DBQAAAAVkZWJ1ZwkAAAIAAAABCQABpAAAAAEICAUAAAADdmFsAAAAAl8yAAAAAl8xBQAAAAN2YWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXAZz6Q=",
"height": 2633701,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EWgBK4hpDSwyEe17LoyazmWZsuKiEFAuA3sVrz2rRWQe
Next: CgmenB83TPBcuHG33UwNGRT17wrD7Sfa48c3PHao9B1p
Diff:
Old | New | | Differences |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func getTWAP60 (assetStr,debug) = { |
---|
8 | 8 | | let val = if ((assetStr == "WAVES")) |
---|
9 | | - | then $Tuple2(nil, $Tuple2(1620000, 1620000)) |
---|
| 9 | + | then $Tuple2(nil, $Tuple2(1533000, 1533000)) |
---|
10 | 10 | | else if ((assetStr == "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT")) |
---|
11 | | - | then $Tuple2(nil, $Tuple2(900000, 900000)) |
---|
| 11 | + | then $Tuple2(nil, $Tuple2(85633, 85633)) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let p = { |
---|
14 | 14 | | let @ = reentrantInvoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getShareAssetPriceREADONLY", [assetStr], nil) |
---|
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(i) |
---|
7 | 7 | | func getTWAP60 (assetStr,debug) = { |
---|
8 | 8 | | let val = if ((assetStr == "WAVES")) |
---|
9 | | - | then $Tuple2(nil, $Tuple2(1620000, 1620000)) |
---|
| 9 | + | then $Tuple2(nil, $Tuple2(1533000, 1533000)) |
---|
10 | 10 | | else if ((assetStr == "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT")) |
---|
11 | | - | then $Tuple2(nil, $Tuple2(900000, 900000)) |
---|
| 11 | + | then $Tuple2(nil, $Tuple2(85633, 85633)) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let p = { |
---|
14 | 14 | | let @ = reentrantInvoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getShareAssetPriceREADONLY", [assetStr], nil) |
---|
15 | 15 | | if ($isInstanceOf(@, "Int")) |
---|
16 | 16 | | then @ |
---|
17 | 17 | | else throw("Couldn't cast Any to Int") |
---|
18 | 18 | | } |
---|
19 | 19 | | if ((p == p)) |
---|
20 | 20 | | then $Tuple2(nil, $Tuple2(p, p)) |
---|
21 | 21 | | else throw("Strict value is not equal to itself.") |
---|
22 | 22 | | } |
---|
23 | 23 | | if (debug) |
---|
24 | 24 | | then throw(toString(val._2._1)) |
---|
25 | 25 | | else val |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | @Verifier(tx) |
---|
30 | 30 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
31 | 31 | | |
---|