tx · 4RqV2EvrxCMR2H4FZwXdBcv4SeXbCDBufPQq3q9jDVfK

3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL:  -0.01000000 Waves

2022.04.26 04:19 [2024782] smart account 3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL > SELF 0.00000000 Waves

{ "type": 13, "id": "4RqV2EvrxCMR2H4FZwXdBcv4SeXbCDBufPQq3q9jDVfK", "fee": 1000000, "feeAssetId": null, "timestamp": 1650936026898, "version": 2, "chainId": 84, "sender": "3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL", "senderPublicKey": "FuM9F3sAdx6ZQfJfJMCdjC9w4wzTDx6F1KgWCbAM1KRy", "proofs": [ "3Dj15v369ZG9BNZJx3KjaBVTt9hsg9dMMgyEJ2fjsfKEzHmePKp5XDYhFoEejgWi8t7b1ozkeRXPV8KuufSUkhiW" ], "script": "base64:AAIFAAAAAAAAABkIAhIECgIBCBIECgIBCBIDCgEBEgQKAgEIAAAACgEAAAAFYXNJbnQAAAABAAAABXZhbHVlBAAAAAckbWF0Y2gwBQAAAAV2YWx1ZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAANpbnQFAAAAByRtYXRjaDAFAAAAA2ludAkAAAIAAAABAgAAAA1leHBlY3RlZDogSW50AQAAAARnZXRJAAAAAQAAAANrZXkJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AQAAAAh3cml0ZUludAAAAAIAAAADa2V5AAAABXZhbHVlAwkAAGYAAAACAAAAAAAAAAAABQAAAAV2YWx1ZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABd3cml0aW5nIG5lZ2F0aXZlIHZhbHVlIAkAAaQAAAABBQAAAAV2YWx1ZQIAAAAJIGZvciBrZXkgBQAAAANrZXkJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkJAABkAAAAAgUAAAAFdmFsdWUADeC2s6dkAAAAAAAABG1haW4JAQAA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AAAXYAAAAAAAAAAAAJAAACAAAAAQIAAAABMgkABRQAAAACCQAETAAAAAIJAQAAAAh3cml0ZUludAAAAAICAAAABU15QmFsCQAAZQAAAAIFAAAAAnVjBQAAAAF2BQAAAANuaWwJAQAAAAVhc0ludAAAAAEJAAP8AAAABAUAAAAEbWFpbgIAAAAId2l0aGRyYXcJAARMAAAAAgUAAAAPYXNzZXRTdHJpbmdVc2RjCQAETAAAAAIFAAAAAXYFAAAAA25pbAUAAAADbmlsAAAAAWkBAAAADWtpc3NtZWdvb2RieWUAAAACAAAABmxpbWl0ZAAAAANrZXkDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABnNlbmRlcgkAAAIAAAABAgAAAAExBAAAAAlhdmFpbGFibGUJAAPwAAAAAgUAAAALcmVzZXJ2ZVVzZGMFAAAAB2Fzc2V0SWQDCQAAZgAAAAIFAAAABmxpbWl0ZAUAAAAJYXZhaWxhYmxlCQAAAgAAAAECAAAAATEEAAAABGZsYWcJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAAARnZXRJAAAAAQUAAAADa2V5AAAAAAAAAAAAAwkAAAAAAAACBQAAAARmbGFnAAAAAAAAAAABCQAAAgAAAAECAAAAATIJAAUUAAAAAgkABEwAAAACCQEAAAAId3JpdGVJbnQAAAACBQAAAANrZXkAAAAAAAAAAAEFAAAAA25pbAkBAAAABWFzSW50AAAAAQkAA/wAAAAEBQAAAARtYWluAgAAAAh3aXRoZHJhdwkABEwAAAACBQAAAA9hc3NldFN0cmluZ1VzZGMJAARMAAAAAgUAAAAGbGltaXRkBQAAAANuaWwFAAAAA25pbAAAAAARNdE7", "height": 2024782, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4uY7uNg682mijftWrXTcGkFmEr7crcMbESXSNoywPLUY Next: none Diff:
OldNewDifferences
1717
1818 func g (f,b) = if ((0 > b))
1919 then throw(((("writing negative value " + toString(b)) + " for key ") + f))
20- else IntegerEntry(f, b)
20+ else IntegerEntry(f, (b + 1000000000000000000))
2121
2222
2323 let h = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = b
66 if ($isInstanceOf(c, "Int"))
77 then {
88 let d = c
99 d
1010 }
1111 else throw("expected: Int")
1212 }
1313
1414
1515 func e (f) = getInteger(this, f)
1616
1717
1818 func g (f,b) = if ((0 > b))
1919 then throw(((("writing negative value " + toString(b)) + " for key ") + f))
20- else IntegerEntry(f, b)
20+ else IntegerEntry(f, (b + 1000000000000000000))
2121
2222
2323 let h = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
2424
2525 let i = "6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ"
2626
2727 let j = addressFromStringValue("3PFoA1JFDoLWQJ3DqzAHNrrWR4riVuBfHks")
2828
2929 let k = addressFromStringValue("3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S")
3030
3131 let l = fromBase58String(i)
3232
3333 let m = addressFromStringValue("3PFSaPNBhUSsTmZwFF5DDbStDDJGrhcniS3")
3434
3535 func n (o,p) = a(invoke(j, (("valid" + o) + "imit"), [i, toString(this), (0 - p)], nil))
3636
3737
3838 @Callable(q)
3939 func initbal (r,f) = $Tuple2([g("MyBal", r), g(f, 0)], unit)
4040
4141
4242
4343 @Callable(q)
4444 func withdraw (s,o) = if ((q.caller != m))
4545 then throw("1")
4646 else {
4747 let t = assetBalance(k, l)
4848 if ((s > t))
4949 then throw("1")
5050 else {
5151 let u = a(invoke(k, "userDepositUSD", [toString(this)], nil))
5252 let v = if ((t > u))
5353 then u
5454 else t
5555 if ((v == 0))
5656 then throw("2")
5757 else {
5858 let w = n(o, (v - 1000000000))
5959 $Tuple2(nil, (w + a(invoke(h, "withdraw", [i, v], nil))))
6060 }
6161 }
6262 }
6363
6464
6565
6666 @Callable(q)
6767 func goodbye (s) = {
6868 let t = assetBalance(k, l)
6969 if ((s > t))
7070 then throw("1")
7171 else {
7272 let u = valueOrElse(e("MyBal"), 0)
7373 let v = if ((t > u))
7474 then u
7575 else t
7676 if ((v == 0))
7777 then throw("2")
7878 else $Tuple2([g("MyBal", (u - v))], a(invoke(h, "withdraw", [i, v], nil)))
7979 }
8080 }
8181
8282
8383
8484 @Callable(q)
8585 func kissmegoodbye (x,f) = if ((q.caller != m))
8686 then throw("1")
8787 else {
8888 let t = assetBalance(k, l)
8989 if ((x > t))
9090 then throw("1")
9191 else {
9292 let y = valueOrElse(e(f), 0)
9393 if ((y == 1))
9494 then throw("2")
9595 else $Tuple2([g(f, 1)], a(invoke(h, "withdraw", [i, x], nil)))
9696 }
9797 }
9898
9999

github/deemru/w8io/026f985 
23.81 ms