tx · AjeGRWXMSRQJyWbddAshwxRS7HK59hRM9iAFNXn81FAd

3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip:  -0.00500000 Waves

2022.09.16 18:07 [2231823] smart account 3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip > SELF 0.00000000 Waves

{ "type": 13, "id": "AjeGRWXMSRQJyWbddAshwxRS7HK59hRM9iAFNXn81FAd", "fee": 500000, "feeAssetId": null, "timestamp": 1663340841540, "version": 2, "chainId": 84, "sender": "3N3fgxZPoUjQLkMa8cjGFGwQ6FPpdFCkMip", "senderPublicKey": "5JCXCMFAS5rwKAESK1SqAfhuupWEYWbspuyHFvisUiVX", "proofs": [ "4eZUKNvsFyAB2oBEeYUSnQauS5cDp6sFsEZ8LXkAeTLkRMFDFg2tXWZKDvnMHLSmx32EeedNL624JxmKePpdeSf4" ], "script": "base64:AAIFAAAAAAAAAAoIAhIGCgQBCAgBAAAAAAAAAAEAAAABaQEAAAAOZmxhc2hMaXF1aWRhdGUAAAAEAAAACWRpcmVjdGlvbgAAAAZtYXJrZXQAAAASYWRkcmVzc1RvTGlxdWlkYXRlAAAACGxldmVyYWdlBAAAAAhjb250cmFjdAkBAAAAB0FkZHJlc3MAAAABCQABmwAAAAEFAAAABm1hcmtldAQAAAANZW50ZXJQb3NpdGlvbgkAA/wAAAAEBQAAAAhjb250cmFjdAIAAAAPaW5jcmVzZVBvc2l0aW9uCQAETAAAAAIFAAAACWRpcmVjdGlvbgkABEwAAAACBQAAAAhjb250cmFjdAkABEwAAAACAAAAAAAAAAABCQAETAAAAAICAAAAAAUAAAADbmlsCQAETAAAAAIJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAFAAAAA25pbAMJAAAAAAAAAgUAAAANZW50ZXJQb3NpdGlvbgUAAAANZW50ZXJQb3NpdGlvbgQAAAALbGlxdWlkYXRpb24JAAP8AAAABAUAAAAIY29udHJhY3QCAAAACWxpcXVpZGF0ZQkABEwAAAACBQAAABJhZGRyZXNzVG9MaXF1aWRhdGUFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAtsaXF1aWRhdGlvbgUAAAALbGlxdWlkYXRpb24EAAAADWNsb3NlUG9zaXRpb24JAAP8AAAABAUAAAAIY29udHJhY3QCAAAADWNsb3NlUG9zaXRpb24FAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAA1jbG9zZVBvc2l0aW9uBQAAAA1jbG9zZVBvc2l0aW9uBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecJRjtE=", "height": 2231823, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9ZE1nqf5LCgDFsQswkFNFBfYMk4Cr7ohy4QjPr6CFaAY Next: 2m2xUMMmEbxke5c9qvLpRRvvd5db4zoP7JaQoBn8Z1sQ Diff:
OldNewDifferences
66 @Callable(i)
77 func flashLiquidate (direction,market,addressToLiquidate,leverage) = {
88 let contract = Address(toBytes(market))
9- let enterPosition = invoke(contract, "incresePosition", [direction, contract, 1], [i.payments[0]])
9+ let enterPosition = invoke(contract, "incresePosition", [direction, contract, 1, ""], [i.payments[0]])
1010 if ((enterPosition == enterPosition))
1111 then {
1212 let liquidation = invoke(contract, "liquidate", [addressToLiquidate], nil)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func flashLiquidate (direction,market,addressToLiquidate,leverage) = {
88 let contract = Address(toBytes(market))
9- let enterPosition = invoke(contract, "incresePosition", [direction, contract, 1], [i.payments[0]])
9+ let enterPosition = invoke(contract, "incresePosition", [direction, contract, 1, ""], [i.payments[0]])
1010 if ((enterPosition == enterPosition))
1111 then {
1212 let liquidation = invoke(contract, "liquidate", [addressToLiquidate], nil)
1313 if ((liquidation == liquidation))
1414 then {
1515 let closePosition = invoke(contract, "closePosition", nil, nil)
1616 if ((closePosition == closePosition))
1717 then nil
1818 else throw("Strict value is not equal to itself.")
1919 }
2020 else throw("Strict value is not equal to itself.")
2121 }
2222 else throw("Strict value is not equal to itself.")
2323 }
2424
2525
2626 @Verifier(tx)
2727 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2828

github/deemru/w8io/026f985 
26.37 ms