tx · 8WBzB2Bc7YQqu9F7FEuX4Hrgxzq68tq9WJ1PCdmdrRjL

3N9b7vExDf2qqZt2xG9FUsca7iwLVuih1Ta:  -0.01000000 Waves

2023.12.01 18:54 [2867788] smart account 3N9b7vExDf2qqZt2xG9FUsca7iwLVuih1Ta > SELF 0.00000000 Waves

{ "type": 13, "id": "8WBzB2Bc7YQqu9F7FEuX4Hrgxzq68tq9WJ1PCdmdrRjL", "fee": 1000000, "feeAssetId": null, "timestamp": 1701446125066, "version": 2, "chainId": 84, "sender": "3N9b7vExDf2qqZt2xG9FUsca7iwLVuih1Ta", "senderPublicKey": "4rSYGN3SSXzknh6jLyLqqGdGor584DXdjdP2BAbz7kgt", "proofs": [ "DA1Qk125eKDAJDLEyCuJM8AVUhTtor8GfbGu9ri3PVWNSo7PTHTcFQnunKrJTYVeoFswJ62iJGzmjAwn9FFnC4k" ], "script": "base64:AAIFAAAAAAAAABcIAhIGCgQIAQgBEgMKAQgSBgoECAgBAQAAAAsAAAAACWRldmVsb3BlcgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01wNlRUaHZiYjh6OW5wcXo0QUszQnlxQWJ2czdkWVM4dVIBAAAACmtleVBhcnRuZXIAAAABAAAAB2FkZHJlc3MJAAEsAAAAAgIAAAAPJXMlc19fcGFydG5lcl9fBQAAAAdhZGRyZXNzAQAAABBrZXlXYW50ZWRBc3NldElkAAAAAQAAAAdhZGRyZXNzCQABLAAAAAICAAAAFSVzJXNfX3dhbnRlZEFzc2V0SWRfXwUAAAAHYWRkcmVzcwEAAAAPa2V5V2FudGVkQW1vdW50AAAAAQAAAAdhZGRyZXNzCQABLAAAAAICAAAAFCVzJXNfX3dhbnRlZEFtb3VudF9fBQAAAAdhZGRyZXNzAQAAAAprZXlBc3NldElkAAAAAQAAAAdvcmRlcklkCQABLAAAAAICAAAADyVzJXNfX2Fzc2V0SWRfXwUAAAAHb3JkZXJJZAEAAAAJa2V5QW1vdW50AAAAAQAAAAdv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ZXJJZAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAKa2V5T3JkZXJJZAAAAAEFAAAAB29yZGVySWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAACmtleUFzc2V0SWQAAAABBQAAAAdvcmRlcklkBQAAAANuaWwJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAHYWRkcmVzcwUAAAAGYW1vdW50CQEAAAAHZnJvbVN0cgAAAAEFAAAACmFzc2V0SWRTdHIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAACWtleUFtb3VudAAAAAEFAAAAB29yZGVySWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAAlrZXlBbW91bnQAAAABBQAAAAdvcmRlcklkBQAAAApyZXN0QW1vdW50BQAAAANuaWwAAAAA4ilP5g==", "height": 2867788, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ga8M349XXYJwVGRnNtEXPgEaWq8czAHxyAhe7RPiUJVi Next: CnnFS95brwB4C8T4Eo9gTJzUYd99oMkpu1wBs49ipfiG Diff:
OldNewDifferences
6161 then throw(("You don't have an order with this id: " + g))
6262 else {
6363 let u = toBytes(value(h(g)))
64- let v = f(toString(q.caller))
64+ let v = f(g)
6565 let w = getString(this, v)
6666 let n = value(w)
6767 [ScriptTransfer(q.caller, toInt(u), m(n)), ScriptTransfer(a, toInt(toBytes(value(j(g)))), m(n)), DeleteEntry(j(g)), DeleteEntry(h(g)), DeleteEntry(i(g)), DeleteEntry(f(g))]
7676 then throw("The transaction cannot be executed because the seller does not have enough funds")
7777 else {
7878 let u = (toInt(toBytes(value(h(g)))) - r)
79- let v = f(toString(q.caller))
79+ let v = f(g)
8080 let w = getString(this, v)
8181 let n = value(w)
8282 if ((x > u))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = addressFromStringValue("3Mp6TThvbb8z9npqz4AK3ByqAbvs7dYS8uR")
55
66 func b (c) = ("%s%s__partner__" + c)
77
88
99 func d (c) = ("%s%s__wantedAssetId__" + c)
1010
1111
1212 func e (c) = ("%s%s__wantedAmount__" + c)
1313
1414
1515 func f (g) = ("%s%s__assetId__" + g)
1616
1717
1818 func h (g) = ("%s%s__amount__" + g)
1919
2020
2121 func i (g) = ("%s%s__orderId__" + g)
2222
2323
2424 func j (g) = ("%s%s__serviceFee__" + g)
2525
2626
2727 func k (l) = if ((l == unit))
2828 then "WAVES"
2929 else toBase58String(value(l))
3030
3131
3232 func m (n) = if ((n == "WAVES"))
3333 then unit
3434 else fromBase58String(n)
3535
3636
3737 func o (l) = {
3838 let p = m(l)
3939 if (if ((p != unit))
4040 then (assetInfo(value(p)) == unit)
4141 else false)
4242 then throw("Invalid assetId: assetInfo missing")
4343 else k(p)
4444 }
4545
4646
4747 @Callable(q)
4848 func escrow (g,r,l,s) = if (isDefined(getString(this, i(g))))
4949 then throw(("You already have an order with this id: " + g))
5050 else if ((0 >= r))
5151 then throw("Non-positive order amount")
5252 else {
5353 let t = (r - s)
5454 [IntegerEntry(j(g), s), IntegerEntry(h(g), t), StringEntry(i(g), g), StringEntry(f(g), l)]
5555 }
5656
5757
5858
5959 @Callable(q)
6060 func cancel (g) = if (!(isDefined(i(g))))
6161 then throw(("You don't have an order with this id: " + g))
6262 else {
6363 let u = toBytes(value(h(g)))
64- let v = f(toString(q.caller))
64+ let v = f(g)
6565 let w = getString(this, v)
6666 let n = value(w)
6767 [ScriptTransfer(q.caller, toInt(u), m(n)), ScriptTransfer(a, toInt(toBytes(value(j(g)))), m(n)), DeleteEntry(j(g)), DeleteEntry(h(g)), DeleteEntry(i(g)), DeleteEntry(f(g))]
6868 }
6969
7070
7171
7272 @Callable(q)
7373 func deal (g,c,r,x) = if (!(isDefined(i(g))))
7474 then throw(("You don't have an order with this id: " + g))
7575 else if ((r > toInt(toBytes(value(h(g))))))
7676 then throw("The transaction cannot be executed because the seller does not have enough funds")
7777 else {
7878 let u = (toInt(toBytes(value(h(g)))) - r)
79- let v = f(toString(q.caller))
79+ let v = f(g)
8080 let w = getString(this, v)
8181 let n = value(w)
8282 if ((x > u))
8383 then [ScriptTransfer(addressFromStringValue(c), r, m(n)), ScriptTransfer(q.caller, u, m(n)), ScriptTransfer(a, toInt(toBytes(value(j(g)))), m(n)), DeleteEntry(j(g)), DeleteEntry(h(g)), DeleteEntry(i(g)), DeleteEntry(f(g))]
8484 else [ScriptTransfer(addressFromStringValue(c), r, m(n)), DeleteEntry(h(g)), IntegerEntry(h(g), u)]
8585 }
8686
8787

github/deemru/w8io/169f3d6 
36.36 ms