tx · 9ZE1nqf5LCgDFsQswkFNFBfYMk4Cr7ohy4QjPr6CFaAY

3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip:  -0.00100000 Waves

2022.09.16 18:00 [2231817] smart account 3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip > SELF 0.00000000 Waves

{ "type": 13, "id": "9ZE1nqf5LCgDFsQswkFNFBfYMk4Cr7ohy4QjPr6CFaAY", "fee": 100000, "feeAssetId": null, "timestamp": 1663340493970, "version": 2, "chainId": 84, "sender": "3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip", "senderPublicKey": "5JCXCMFAS5rwKAESK1SqAfhuupWEYWbspuyHFvisUiVX", "proofs": [ "2QTYzhcr5dWmu8dyNxMegnRiSDdojjFUzkyAQduePhS7KwkDp4QzFyWjg2iN6VoSQdhZN9CNi75w3hREbGYQRxVb" ], "script": "base64:AAIFAAAAAAAAAAoIAhIGCgQBCAgBAAAAAAAAAAEAAAABaQEAAAAOZmxhc2hMaXF1aWRhdGUAAAAEAAAACWRpcmVjdGlvbgAAAAZtYXJrZXQAAAASYWRkcmVzc1RvTGlxdWlkYXRlAAAACGxldmVyYWdlBAAAAAhjb250cmFjdAkBAAAAB0FkZHJlc3MAAAABCQABmwAAAAEFAAAABm1hcmtldAQAAAANZW50ZXJQb3NpdGlvbgkAA/wAAAAEBQAAAAhjb250cmFjdAIAAAAPaW5jcmVzZVBvc2l0aW9uCQAETAAAAAIFAAAACWRpcmVjdGlvbgkABEwAAAACBQAAAAhjb250cmFjdAkABEwAAAACAAAAAAAAAAABBQAAAANuaWwJAARMAAAAAgkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAUAAAADbmlsAwkAAAAAAAACBQAAAA1lbnRlclBvc2l0aW9uBQAAAA1lbnRlclBvc2l0aW9uBAAAAAtsaXF1aWRhdGlvbgkAA/wAAAAEBQAAAAhjb250cmFjdAIAAAAJbGlxdWlkYXRlCQAETAAAAAIFAAAAEmFkZHJlc3NUb0xpcXVpZGF0ZQUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAAC2xpcXVpZGF0aW9uBQAAAAtsaXF1aWRhdGlvbgQAAAANY2xvc2VQb3NpdGlvbgkAA/wAAAAEBQAAAAhjb250cmFjdAIAAAANY2xvc2VQb3NpdGlvbgUAAAADbmlsBQAAAANuaWwDCQAAAAAAAAIFAAAADWNsb3NlUG9zaXRpb24FAAAADWNsb3NlUG9zaXRpb24FAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5xvgUxw==", "height": 2231817, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AjeGRWXMSRQJyWbddAshwxRS7HK59hRM9iAFNXn81FAd Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func flashLiquidate (direction,market,addressToLiquidate,leverage) = {
8+ let contract = Address(toBytes(market))
9+ let enterPosition = invoke(contract, "incresePosition", [direction, contract, 1], [i.payments[0]])
10+ if ((enterPosition == enterPosition))
11+ then {
12+ let liquidation = invoke(contract, "liquidate", [addressToLiquidate], nil)
13+ if ((liquidation == liquidation))
14+ then {
15+ let closePosition = invoke(contract, "closePosition", nil, nil)
16+ if ((closePosition == closePosition))
17+ then nil
18+ else throw("Strict value is not equal to itself.")
19+ }
20+ else throw("Strict value is not equal to itself.")
21+ }
22+ else throw("Strict value is not equal to itself.")
23+ }
24+
25+
26+@Verifier(tx)
27+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
28+

github/deemru/w8io/026f985 
13.57 ms