tx · 6PpWxbCb128BUze9VbxDAvspGNrFnxBhA61bn4v2mWPp

3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL:  -0.01000000 Waves

2022.04.24 14:53 [2022553] smart account 3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL > SELF 0.00000000 Waves

{ "type": 13, "id": "6PpWxbCb128BUze9VbxDAvspGNrFnxBhA61bn4v2mWPp", "fee": 1000000, "feeAssetId": null, "timestamp": 1650801183088, "version": 2, "chainId": 84, "sender": "3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL", "senderPublicKey": "FuM9F3sAdx6ZQfJfJMCdjC9w4wzTDx6F1KgWCbAM1KRy", "proofs": [ "7obg9ahFdVNtArRa7QaaQ7QGYSUpaLQjuSgiXkPzZxXhnAeWVNcTynY8YmXUF75PGdgfjdqS4Q4Ui3XREG1f2bU" ], "script": "base64:AAIFAAAAAAAAACMIAhIECgIBCBIDCgEBEgMKAQESBAoCAQgSBAoCAQgSAwoBAQAAAAgBAAAABWFzSW50AAAAAQAAAAV2YWx1ZQQAAAAHJG1hdGNoMAUAAAAFdmFsdWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAADaW50BQAAAAckbWF0Y2gwBQAAAANpbnQJAAACAAAAAQIAAAANZXhwZWN0ZWQ6IEludAEAAAAEZ2V0SQAAAAEAAAADa2V5CQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAId3JpdGVJbnQAAAACAAAAA2tleQAAAAV2YWx1ZQMJAABmAAAAAgAAAAAAAAAAAAUAAAAFdmFsdWUJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAXd3JpdGluZyBuZWdhdGl2ZSB2YWx1ZSAJAAGkAAAAAQUAAAAFdmFsdWUCAAAACSBmb3Iga2V5IAUAAAADa2V5CQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAADa2V5BQAAAAV2YWx1ZQAAAAAEbWFpbgkBAAAAEUB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ibGUDCQAAZgAAAAIAAAAAAAAAAAEFAAAAAXYJAAACAAAAAQIAAAABMQkABRQAAAACBQAAAANuaWwJAQAAAAVhc0ludAAAAAEJAAP8AAAABAUAAAAEbWFpbgIAAAAId2l0aGRyYXcJAARMAAAAAgUAAAAPYXNzZXRTdHJpbmdVc2RjCQAETAAAAAIFAAAAAXYFAAAAA25pbAUAAAADbmlsAAAAABxN4qE=", "height": 2022553, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E4TaJiqbzFLuQLU8Wq98L8Ks4AS5Wjb7SDAPKdxajYtu Next: Crb2Sx4M1dQ6zLiZNsVjeEvBJaCZcCkCSWrLNxpKzwZL 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))
2020 else IntegerEntry(f, b)
2121
2222
2323 let h = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
2424
2525 let i = "6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ"
2626
2727 let j = addressFromStringValue("3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S")
2828
2929 let k = fromBase58String(i)
3030
3131 let l = addressFromStringValue("3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL")
3232
3333 @Callable(m)
3434 func initbal (n,f) = if ((m.caller != l))
3535 then throw("1")
3636 else $Tuple2([g("MyBal", n), g(f, 0)], unit)
3737
3838
3939
4040 @Callable(m)
4141 func byebye (o) = {
4242 let p = assetBalance(j, k)
4343 if ((o > p))
4444 then throw("1")
4545 else {
4646 let q = a(invoke(j, "userDepositUSD", [toString(this)], nil))
4747 let r = if ((p > q))
4848 then q
4949 else p
5050 if ((r == 0))
5151 then throw("2")
5252 else $Tuple2(nil, a(invoke(h, "withdraw", [i, r], nil)))
5353 }
5454 }
5555
5656
5757
5858 @Callable(m)
5959 func goodbye (o) = {
6060 let p = assetBalance(j, k)
6161 if ((o > p))
6262 then throw("1")
6363 else {
6464 let q = valueOrElse(e("MyBal"), 0)
6565 let r = if ((p > q))
6666 then q
6767 else p
6868 if ((r == 0))
6969 then throw("2")
7070 else $Tuple2([g("MyBal", (q - r))], a(invoke(h, "withdraw", [i, r], nil)))
7171 }
7272 }
7373
7474
7575
7676 @Callable(m)
7777 func kissmegoodbye (s,f) = {
7878 let p = assetBalance(j, k)
7979 if ((s > p))
8080 then throw("1")
8181 else {
8282 let t = valueOrElse(e(f), 0)
8383 if ((t == 1))
8484 then throw("2")
8585 else $Tuple2([g(f, 1)], a(invoke(h, "withdraw", [i, s], nil)))
8686 }
8787 }
8888
8989
9090
9191 @Callable(m)
9292 func testkiss (s,f) = {
9393 let p = 1000000000
9494 if ((s > p))
9595 then throw("1")
9696 else {
9797 let t = valueOrElse(e(f), 0)
9898 if ((t == 1))
9999 then throw("2")
100100 else $Tuple2([g(f, 1), g("MyBal", (t + 1))], s)
101101 }
102102 }
103103
104104
105105
106106 @Callable(m)
107107 func bb1 (o) = {
108108 let p = assetBalance(j, k)
109109 let q = a(invoke(j, "userDepositUSD", [toString(this)], nil))
110110 let r = if ((p > q))
111111 then q
112112 else p
113113 if ((1 > r))
114114 then throw("1")
115115 else $Tuple2(nil, a(invoke(h, "withdraw", [i, r], nil)))
116116 }
117117
118118

github/deemru/w8io/026f985 
21.17 ms