tx · 6CoSEKknwXX6jCdLtMWwA7tZEXvLQNNxZ9MsuBErQeYj

3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6:  -0.01500000 Waves

2021.04.21 13:40 [1492104] smart account 3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6 > SELF 0.00000000 Waves

{ "type": 13, "id": "6CoSEKknwXX6jCdLtMWwA7tZEXvLQNNxZ9MsuBErQeYj", "fee": 1500000, "feeAssetId": null, "timestamp": 1619001631554, "version": 2, "chainId": 84, "sender": "3N8DijjUMpYq512vvE9GHnCTUBUd4AZwhH6", "senderPublicKey": "75SuvmjmHX6J7smVGHvWY6acr5mqyRQCYpFxeFQh8Cy3", "proofs": [ "459Atp8n8c2Ms6g2LSFEhdR5SBSxQLSsHig861tZqUkJgSZBsy1VXsx4ZcUYjo71KKzBacYxwGpFtns1xotE1uGY" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAAbAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAAA1rZXlDb21taXNzaW9uAgAAAApjb21taXNzaW9uAAAAABtrZXlDb21taXNzaW9uU2NhbGVEZWxpbWl0ZXICAAAAGmNvbW1pc3Npb25fc2NhbGVfZGVsaW1pdGVyAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADmtleUNhbmNlbENhdXNlAgAAAA1fY2F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UFAAAAA25pbAAAAAFpAQAAAAhzaHV0ZG93bgAAAAADCQEAAAABIQAAAAEFAAAACGlzQWN0aXZlCQAAAgAAAAEJAAEsAAAAAgIAAAAiREFwcCBpcyBhbHJlYWR5IHN1c3BlbmRlZC4gQ2F1c2U6IAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAAhrZXlDYXVzZQIAAAAadGhlIGNhdXNlIHdhc24ndCBzcGVjaWZpZWQJAQAAAAdzdXNwZW5kAAAAAQIAAAAPUGF1c2VkIGJ5IGFkbWluAAAAAWkBAAAACGFjdGl2YXRlAAAAAAMFAAAACGlzQWN0aXZlCQAAAgAAAAECAAAAFkRBcHAgaXMgYWxyZWFkeSBhY3RpdmUJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIFAAAACWtleUFjdGl2ZQYJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIa2V5Q2F1c2UFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAG5uQ0VA==", "height": 1492104, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9UrYBHjBzPTYPKQnjFfbw5p1g9ao54FjQCxQYdwHy7JP Next: BqwA3gysyomn4rrLYkCKid1C7X3JRkcMrqhYBsRYFNBh Diff:
OldNewDifferences
8787
8888
8989 @Callable(F)
90-func voteForPool (O,P,Q) = {
91- let R = height
92- let S = valueOrErrorMessage(getIntegerValue(this, (toString(O) + e)), ("Voting " + toString(O)))
93- if (P)
94- then {
95- let T = (valueOrElse(getIntegerValue(this, (toString(O) + g)), 0) + Q)
96-[IntegerEntry((toString(O) + g), T), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + g), Q)]
97- }
98- else {
99- let T = (valueOrElse(getIntegerValue(this, (toString(O) + f)), 0) + Q)
100-[IntegerEntry((toString(O) + f), T), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + f), Q)]
101- }
102- }
90+func voteForPool (O,P,Q) = if (P)
91+ then [IntegerEntry((toString(O) + g), Q), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + g), Q)]
92+ else [IntegerEntry((toString(O) + f), Q), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + f), Q)]
10393
10494
10595
121111 else [BooleanEntry(c, true), DeleteEntry(l)]
122112
123113
124-@Verifier(U)
125-func V () = true
114+@Verifier(R)
115+func S () = true
126116
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0.0"
55
66 let b = "version"
77
88 let c = "active"
99
1010 let d = "number_voting"
1111
1212 let e = "_height"
1313
1414 let f = "_no"
1515
1616 let g = "_yes"
1717
1818 let h = "_status"
1919
2020 let i = "amount_voting"
2121
2222 let j = "commission"
2323
2424 let k = "commission_scale_delimiter"
2525
2626 let l = "shutdown_cause"
2727
2828 let m = "_cancel_cause"
2929
3030 let n = "_SWOP_amount"
3131
3232 let o = getBooleanValue(this, c)
3333
3434 let p = getIntegerValue(this, d)
3535
3636 let q = getIntegerValue(this, i)
3737
3838 let r = 1000000000
3939
4040 let s = 1000
4141
4242 let t = 100000000
4343
4444 let u = 1000
4545
4646 let v = 8
4747
4848 let w = 5
4949
5050 let x = (1440 * 5)
5151
5252 func y (z) = if ((z == "WAVES"))
5353 then unit
5454 else fromBase58String(z)
5555
5656
5757 func A (B) = [BooleanEntry(c, false), StringEntry(l, B)]
5858
5959
6060 func C (D,E) = throw(((((("Insufficient DApp balance to pay " + toString(D)) + " ") + E) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport"))
6161
6262
6363 @Callable(F)
6464 func init () = {
6565 let G = 0
6666 let H = 0
6767 let I = true
6868 [StringEntry(b, a), BooleanEntry(c, I), IntegerEntry(d, G), IntegerEntry(i, H)]
6969 }
7070
7171
7272
7373 @Callable(F)
7474 func initVotingForNewPool (J,K) = {
7575 let L = $Tuple2(y(J), y(K))
7676 let M = L._1
7777 let N = L._2
7878 if (!(o))
7979 then throw("DApp is inactive at this moment")
8080 else if ((M == N))
8181 then throw("Assets must be different")
8282 else if ((p > w))
8383 then throw(("Too many votes. Maximum quantity -" + toString(w)))
8484 else [IntegerEntry(((((J + "_") + K) + "_") + toString(q)), q), IntegerEntry((toString(q) + e), (height + x)), BooleanEntry((toString(q) + h), true), IntegerEntry(i, (q + 1)), IntegerEntry(d, (p + 1))]
8585 }
8686
8787
8888
8989 @Callable(F)
90-func voteForPool (O,P,Q) = {
91- let R = height
92- let S = valueOrErrorMessage(getIntegerValue(this, (toString(O) + e)), ("Voting " + toString(O)))
93- if (P)
94- then {
95- let T = (valueOrElse(getIntegerValue(this, (toString(O) + g)), 0) + Q)
96-[IntegerEntry((toString(O) + g), T), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + g), Q)]
97- }
98- else {
99- let T = (valueOrElse(getIntegerValue(this, (toString(O) + f)), 0) + Q)
100-[IntegerEntry((toString(O) + f), T), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + f), Q)]
101- }
102- }
90+func voteForPool (O,P,Q) = if (P)
91+ then [IntegerEntry((toString(O) + g), Q), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + g), Q)]
92+ else [IntegerEntry((toString(O) + f), Q), IntegerEntry((((toString(F.caller) + "_") + toString(O)) + f), Q)]
10393
10494
10595
10696 @Callable(F)
10797 func cancellationVoting (O,B) = [IntegerEntry(d, (p - 1)), BooleanEntry((toString(O) + h), false), StringEntry((toString(O) + m), B)]
10898
10999
110100
111101 @Callable(F)
112102 func shutdown () = if (!(o))
113103 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
114104 else A("Paused by admin")
115105
116106
117107
118108 @Callable(F)
119109 func activate () = if (o)
120110 then throw("DApp is already active")
121111 else [BooleanEntry(c, true), DeleteEntry(l)]
122112
123113
124-@Verifier(U)
125-func V () = true
114+@Verifier(R)
115+func S () = true
126116

github/deemru/w8io/026f985 
42.88 ms