tx · EkXcH8Jo1fq1tDuxGvedygSccuabGVmezwwVCcqAFDs5

3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP:  -0.01000000 Waves

2023.06.19 10:12 [2629193] smart account 3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP > SELF 0.00000000 Waves

{ "type": 13, "id": "EkXcH8Jo1fq1tDuxGvedygSccuabGVmezwwVCcqAFDs5", "fee": 1000000, "feeAssetId": null, "timestamp": 1687158781530, "version": 2, "chainId": 84, "sender": "3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP", "senderPublicKey": "5sTpaMQe2KW8dskXeG41rUyomuUePPeo57FbhuoSsq2R", "proofs": [ "4uPGic42GXjb4Du8Qw1eNcvw9RC3nkDULqjT8J39mZDZHDWDpP9bGS2sCe9jksUkczaPzZ2vBb8TN3yfHJQgPjGs" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIBAAAAAAAAAABAAAAAWkBAAAACWdldFRXQVA2MAAAAAIAAAAIYXNzZXRTdHIAAAAEZmxhZwMJAAAAAAAAAgUAAAAIYXNzZXRTdHICAAAABVdBVkVTCQAFFAAAAAIFAAAAA25pbAkABRQAAAACAAAAAAAAGLggAAAAAAAAGLggAwkAAAAAAAACBQAAAAhhc3NldFN0cgIAAAAsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQJAAUUAAAAAgUAAAADbmlsCQAFFAAAAAIAAAAAAAANu6AAAAAAAAANu6AEAAAAAXAKAAAAAAFACQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRHYdFKTc5/+9vupfS91sItmkjqQtK5YZsCAAAAFWdldFNoYXJlUHJpY2VSRUFET05MWQkABEwAAAACBQAAAAhhc3NldFN0cgUAAAADbmlsBQAAAANuaWwDCQAAAQAAAAIFAAAAAUACAAAAA0ludAUAAAABQAkAAAIAAAABAgAAABhDb3VsZG4ndCBjYXN0IEFueSB0byBJbnQDCQAAAAAAAAIFAAAAAXAFAAAAAXAJAAUUAAAAAgUAAAADbmlsCQAFFAAAAAIFAAAAAXAFAAAAAXAJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnuroXK", "height": 2629193, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YbaovcMGQDGuehBSUGnQn6e76JTY1u9irpmkBD8Q1H7 Next: CMY2TTKidChKDvSJBo9vv6htBKFdaik3QCEp7ZKDL18Z Diff:
OldNewDifferences
66 @Callable(i)
77 func getTWAP60 (assetStr,flag) = if ((assetStr == "WAVES"))
88 then $Tuple2(nil, $Tuple2(1620000, 1620000))
9- else $Tuple2(nil, $Tuple2(900000, 900000))
9+ else if ((assetStr == "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"))
10+ then $Tuple2(nil, $Tuple2(900000, 900000))
11+ else {
12+ let p = {
13+ let @ = invoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getSharePriceREADONLY", [assetStr], nil)
14+ if ($isInstanceOf(@, "Int"))
15+ then @
16+ else throw("Couldn't cast Any to Int")
17+ }
18+ if ((p == p))
19+ then $Tuple2(nil, $Tuple2(p, p))
20+ else throw("Strict value is not equal to itself.")
21+ }
1022
1123
1224 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func getTWAP60 (assetStr,flag) = if ((assetStr == "WAVES"))
88 then $Tuple2(nil, $Tuple2(1620000, 1620000))
9- else $Tuple2(nil, $Tuple2(900000, 900000))
9+ else if ((assetStr == "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"))
10+ then $Tuple2(nil, $Tuple2(900000, 900000))
11+ else {
12+ let p = {
13+ let @ = invoke(Address(base58'3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS'), "getSharePriceREADONLY", [assetStr], nil)
14+ if ($isInstanceOf(@, "Int"))
15+ then @
16+ else throw("Couldn't cast Any to Int")
17+ }
18+ if ((p == p))
19+ then $Tuple2(nil, $Tuple2(p, p))
20+ else throw("Strict value is not equal to itself.")
21+ }
1022
1123
1224 @Verifier(tx)
1325 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1426

github/deemru/w8io/169f3d6 
30.66 ms