tx · 2iWvKK2fE6JTabQkUfCnnSz3mQEXwZZvKiV6fbsmGBHE

3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL:  -0.01000000 Waves

2022.04.24 14:13 [2022511] smart account 3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL > SELF 0.00000000 Waves

{ "type": 13, "id": "2iWvKK2fE6JTabQkUfCnnSz3mQEXwZZvKiV6fbsmGBHE", "fee": 1000000, "feeAssetId": null, "timestamp": 1650798779977, "version": 2, "chainId": 84, "sender": "3MsRQhp2cbXJQxHETzdZQdj2QfP4b3Mp6UL", "senderPublicKey": "FuM9F3sAdx6ZQfJfJMCdjC9w4wzTDx6F1KgWCbAM1KRy", "proofs": [ "4muDhnCJYz6XnoGKDK3VCnZks56kSQiL8zH1Hqe7fsLbHDoRdVUiFuZJtBm6gKGbSdKYdYtp7zENC6dJE9R4deTX" ], "script": "base64:AAIFAAAAAAAAACMIAhIECgIBCBIDCgEBEgMKAQESBAoCAQgSBAoCAQgSAwoBAQAAAAcBAAAABWFzSW50AAAAAQAAAAV2YWx1ZQQAAAAHJG1hdGNoMAUAAAAFdmFsdWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAADaW50BQAAAAckbWF0Y2gwBQAAAANpbnQJAAACAAAAAQIAAAANZXhwZWN0ZWQ6IEludAEAAAAEZ2V0SQAAAAEAAAADa2V5CQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAId3JpdGVJbnQAAAACAAAAA2tleQAAAAV2YWx1ZQMJAABmAAAAAgAAAAAAAAAAAAUAAAAFdmFsdWUJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAXd3JpdGluZyBuZWdhdGl2ZSB2YWx1ZSAJAAGkAAAAAQUAAAAFdmFsdWUCAAAACSBmb3Iga2V5IAUAAAADa2V5CQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAADa2V5BQAAAAV2YWx1ZQAAAAAEbWFpbgkB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"spentComplexity": 0 } View: original | compacted Prev: F8PMCQCXbycWrCXmVcwZ8SFFfBanUQC8JvwXg5XCN4aG Next: 7KQLpMahWng2xtpXT1LYgYZb3BWBtQ7J9Y6r7qAVrwWp Diff:
OldNewDifferences
8585
8686
8787 @Callable(l)
88+func testkiss (r,f) = {
89+ let o = 1000000000
90+ if ((r > o))
91+ then throw("1")
92+ else {
93+ let s = valueOrElse(e(f), 0)
94+ if ((s == 1))
95+ then throw("2")
96+ else $Tuple2([g(f, 1)], r)
97+ }
98+ }
99+
100+
101+
102+@Callable(l)
88103 func bb1 (n) = {
89104 let o = assetBalance(j, k)
90105 let p = a(invoke(j, "userDepositUSD", [toString(this)], nil))
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 @Callable(l)
3232 func initbal (m,f) = $Tuple2([g("MyBal", m), g(f, 0)], unit)
3333
3434
3535
3636 @Callable(l)
3737 func byebye (n) = {
3838 let o = assetBalance(j, k)
3939 if ((n > o))
4040 then throw("1")
4141 else {
4242 let p = a(invoke(j, "userDepositUSD", [toString(this)], nil))
4343 let q = if ((o > p))
4444 then p
4545 else o
4646 if ((q == 0))
4747 then throw("2")
4848 else $Tuple2(nil, a(invoke(h, "withdraw", [i, q], nil)))
4949 }
5050 }
5151
5252
5353
5454 @Callable(l)
5555 func goodbye (n) = {
5656 let o = assetBalance(j, k)
5757 if ((n > o))
5858 then throw("1")
5959 else {
6060 let p = valueOrElse(e("MyBal"), 0)
6161 let q = if ((o > p))
6262 then p
6363 else o
6464 if ((q == 0))
6565 then throw("2")
6666 else $Tuple2([g("MyBal", (p - q))], a(invoke(h, "withdraw", [i, q], nil)))
6767 }
6868 }
6969
7070
7171
7272 @Callable(l)
7373 func kissmegoodbye (r,f) = {
7474 let o = assetBalance(j, k)
7575 if ((r > o))
7676 then throw("1")
7777 else {
7878 let s = valueOrElse(e(f), 0)
7979 if ((s == 1))
8080 then throw("2")
8181 else $Tuple2([g(f, 1)], a(invoke(h, "withdraw", [i, r], nil)))
8282 }
8383 }
8484
8585
8686
8787 @Callable(l)
88+func testkiss (r,f) = {
89+ let o = 1000000000
90+ if ((r > o))
91+ then throw("1")
92+ else {
93+ let s = valueOrElse(e(f), 0)
94+ if ((s == 1))
95+ then throw("2")
96+ else $Tuple2([g(f, 1)], r)
97+ }
98+ }
99+
100+
101+
102+@Callable(l)
88103 func bb1 (n) = {
89104 let o = assetBalance(j, k)
90105 let p = a(invoke(j, "userDepositUSD", [toString(this)], nil))
91106 let q = if ((o > p))
92107 then p
93108 else o
94109 if ((1 > q))
95110 then throw("1")
96111 else $Tuple2(nil, a(invoke(h, "withdraw", [i, q], nil)))
97112 }
98113
99114

github/deemru/w8io/169f3d6 
25.00 ms