tx · 8BWM1Ebhfwd9cMK51agCCruBsA5eAY1Tw34BZt8ANVTM 3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip: -0.00500000 Waves 2022.09.16 18:29 [2231848] smart account 3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip > SELF 0.00000000 Waves
{ "type": 13, "id": "8BWM1Ebhfwd9cMK51agCCruBsA5eAY1Tw34BZt8ANVTM", "fee": 500000, "feeAssetId": null, "timestamp": 1663342186200, "version": 2, "chainId": 84, "sender": "3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip", "senderPublicKey": "5JCXCMFAS5rwKAESK1SqAfhuupWEYWbspuyHFvisUiVX", "proofs": [ "M5WSQK2Dc3Cb8uSpotxGmZ3njKUwND8RuQukt13BdQsD46j6R6QdJ6CHT7v7a4cz9dztxPXysPoWEv4An76UPwq" ], "script": "base64:AAIFAAAAAAAAAAoIAhIGCgQBCAgBAAAAAAAAAAEAAAABaQEAAAAOZmxhc2hMaXF1aWRhdGUAAAAEAAAACWRpcmVjdGlvbgAAAAZtYXJrZXQAAAASYWRkcmVzc1RvTGlxdWlkYXRlAAAACGxldmVyYWdlBAAAAAhjb250cmFjdAkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAABm1hcmtldAQAAAANZW50ZXJQb3NpdGlvbgkAA/wAAAAEBQAAAAhjb250cmFjdAIAAAAQaW5jcmVhc2VQb3NpdGlvbgkABEwAAAACBQAAAAlkaXJlY3Rpb24JAARMAAAAAgUAAAAIbGV2ZXJhZ2UJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAgAAAAAFAAAAA25pbAkABEwAAAACCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABQAAAANuaWwDCQAAAAAAAAIFAAAADWVudGVyUG9zaXRpb24FAAAADWVudGVyUG9zaXRpb24EAAAAC2xpcXVpZGF0aW9uCQAD/AAAAAQFAAAACGNvbnRyYWN0AgAAAAlsaXF1aWRhdGUJAARMAAAAAgUAAAASYWRkcmVzc1RvTGlxdWlkYXRlBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAALbGlxdWlkYXRpb24FAAAAC2xpcXVpZGF0aW9uBAAAAA1jbG9zZVBvc2l0aW9uCQAD/AAAAAQFAAAACGNvbnRyYWN0AgAAAA1jbG9zZVBvc2l0aW9uBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAANY2xvc2VQb3NpdGlvbgUAAAANY2xvc2VQb3NpdGlvbgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmvogzp", "height": 2231848, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YQnEuEk6tHAp46rWRZaChQ9ZUSwcescRum6k547riP3 Next: DND6qwR2TWcVfdF6KxrbcfBDxXcxp5jHScLAbveYHqTa Diff:
Old | New | Differences | |
---|---|---|---|
14 | 14 | then { | |
15 | 15 | let closePosition = invoke(contract, "closePosition", nil, nil) | |
16 | 16 | if ((closePosition == closePosition)) | |
17 | - | then | |
17 | + | then nil | |
18 | 18 | else throw("Strict value is not equal to itself.") | |
19 | 19 | } | |
20 | 20 | else throw("Strict value is not equal to itself.") |
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 flashLiquidate (direction,market,addressToLiquidate,leverage) = { | |
8 | 8 | let contract = Address(fromBase58String(market)) | |
9 | 9 | let enterPosition = invoke(contract, "increasePosition", [direction, leverage, 1, ""], [i.payments[0]]) | |
10 | 10 | if ((enterPosition == enterPosition)) | |
11 | 11 | then { | |
12 | 12 | let liquidation = invoke(contract, "liquidate", [addressToLiquidate], nil) | |
13 | 13 | if ((liquidation == liquidation)) | |
14 | 14 | then { | |
15 | 15 | let closePosition = invoke(contract, "closePosition", nil, nil) | |
16 | 16 | if ((closePosition == closePosition)) | |
17 | - | then | |
17 | + | then nil | |
18 | 18 | else throw("Strict value is not equal to itself.") | |
19 | 19 | } | |
20 | 20 | else throw("Strict value is not equal to itself.") | |
21 | 21 | } | |
22 | 22 | else throw("Strict value is not equal to itself.") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Verifier(tx) | |
27 | 27 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
28 | 28 |
github/deemru/w8io/026f985 24.54 ms ◑