tx · F5xL3zwkzXmLdx9WQ2UieF8hU2R28oWL5KPyXRftGXyn
3NCVp18FAUoyhqmpShGvFPUZ9GVXub79QqF: -0.05000000 Waves
2021.09.29 16:17 [1724293] smart account 3NCVp18FAUoyhqmpShGvFPUZ9GVXub79QqF > SELF 0.00000000 Waves
{
"type": 13,
"id": "F5xL3zwkzXmLdx9WQ2UieF8hU2R28oWL5KPyXRftGXyn",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1632921432149,
"version": 2,
"chainId": 84,
"sender": "3NCVp18FAUoyhqmpShGvFPUZ9GVXub79QqF",
"senderPublicKey": "4RrGWbA8e8thBzBtEHyrov2WBWdwDG5KA2ZG76cJbjX8",
"proofs": [
"4Z8BZqok8H9KcjjB9N6RA871kfZZXPSZCY7uTRYxYtZ2GGvonzj6MeqJUChsN681JnQ3vbqjUVLepaeseCD4o5NH"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAIAAAAAAtmcm9lQXNzZXRJZAEAAAAgSsv1ZJ09Ny43QbbnBS7IGxI8mddY9Mw8h+wjzyuSMzUAAAAABm9uZURheQAAAAAAAAAFoAAAAAAPZGF5c1ZvdGVJc1ZhbGlkCQAAaAAAAAIFAAAABm9uZURheQAAAAAAAAAABwAAAAAXZGF5c1ZvdGVJc1ZhbGlkSW5CbG9ja3MJAABkAAAAAgUAAAAPZGF5c1ZvdGVJc1ZhbGlkBQAAAAZoZWlnaHQAAAAACmdyYW5kVG90YWwJAAPwAAAAAgUAAAAEdGhpcwUAAAALZnJvZUFzc2V0SWQBAAAAFGluaXRpYWxXaXRoRHJhd3N0YXRlAAAAAAkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAOV2l0aGRyYXdfU3RhdGUCAAAACERJU0FCTEVEAQAAAA12b3RlcnNDb3VudGVyAAAAAQAAAAVpbmRleAQAAAAMaW5pdGlhbEluZGV4BQAAAAVpbmRleAUAAAAMaW5pdGlhbEluZGV4AQAAAA9jYWxjdWxhdGVSZXdhcm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ABAAAAAAAAAABRBAAAAA5jaGVja1ZhbGlkVm90ZQkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAA9Wb3RlX0Ftb3VudF9Gb3IFAAAADkFkZHJlc3NPZlZvdGVyAwkAAAAAAAACBQAAABJjaGVja1dpdGhEcmF3U3RhdGUCAAAACERJU0FCTEVECQAAAgAAAAECAAAAV1dpdGhkcmF3YWwgSXMgY3VycmVudGx5IGRpc2FibGVkLiBBIG1pbmltdW0gIG9mIDcgRGF5cyBpcyBuZWVkIGZvciBlbGlnaWJsZSB3aXRoZHJhd2FscwMJAAAAAAAAAgUAAAAOY2hlY2tWYWxpZFZvdGUAAAAAAAAAAAAJAAACAAAAAQIAAAATTm8gVmFsaWQgVm90ZSBGb3VuZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABkAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAA9Wb3RlX0Ftb3VudF9Gb3IFAAAADkFkZHJlc3NPZlZvdGVyBQAAAAZyZXdhcmQFAAAAC2Zyb2VBc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlebSYlgE=",
"height": 1724293,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GBEsR7beBYG8PLVnPJPMV3rU3E15oQDn6PmFSGLSEFVs
Next: 5UtSetHduvm2WkQVDLwUYghJybjEbHThgwLxc8VP7GyD
Diff:
Old | New | | Differences |
---|
9 | 9 | | |
---|
10 | 10 | | let d = (c + height) |
---|
11 | 11 | | |
---|
12 | | - | func e () = StringEntry("Withdraw_State", "DISABLED") |
---|
| 12 | + | let e = assetBalance(this, a) |
---|
| 13 | + | |
---|
| 14 | + | func f () = StringEntry("Withdraw_State", "DISABLED") |
---|
13 | 15 | | |
---|
14 | 16 | | |
---|
15 | | - | func f (g) = { |
---|
16 | | - | let h = g |
---|
17 | | - | h |
---|
| 17 | + | func g (h) = { |
---|
| 18 | + | let i = h |
---|
| 19 | + | i |
---|
18 | 20 | | } |
---|
19 | 21 | | |
---|
20 | 22 | | |
---|
21 | | - | func i (j) = { |
---|
22 | | - | let k = { |
---|
23 | | - | let l = getInteger(this, "Total_vote_amount") |
---|
24 | | - | if ($isInstanceOf(l, "Int")) |
---|
| 23 | + | func j (k) = { |
---|
| 24 | + | let l = (k / 100) |
---|
| 25 | + | let m = (l * e) |
---|
| 26 | + | m |
---|
| 27 | + | } |
---|
| 28 | + | |
---|
| 29 | + | |
---|
| 30 | + | @Callable(n) |
---|
| 31 | + | func Vote () = { |
---|
| 32 | + | let o = if ((size(n.payments) == 1)) |
---|
| 33 | + | then n.payments[0] |
---|
| 34 | + | else throw("You need exactly one froe to make a vote") |
---|
| 35 | + | let p = toBase58String(n.caller.bytes) |
---|
| 36 | + | let q = { |
---|
| 37 | + | let r = getInteger(this, "Total_vote_amount") |
---|
| 38 | + | if ($isInstanceOf(r, "Int")) |
---|
25 | 39 | | then { |
---|
26 | | - | let m = l |
---|
27 | | - | m |
---|
| 40 | + | let s = r |
---|
| 41 | + | s |
---|
28 | 42 | | } |
---|
29 | 43 | | else 0 |
---|
30 | 44 | | } |
---|
31 | | - | let n = (j / 100) |
---|
32 | | - | let o = (n * k) |
---|
33 | | - | o |
---|
34 | | - | } |
---|
35 | | - | |
---|
36 | | - | |
---|
37 | | - | @Callable(p) |
---|
38 | | - | func Vote () = { |
---|
39 | | - | let q = if ((size(p.payments) == 1)) |
---|
40 | | - | then p.payments[0] |
---|
41 | | - | else throw("You need exactly one froe to make a vote") |
---|
42 | | - | let r = toBase58String(p.caller.bytes) |
---|
43 | | - | let s = { |
---|
44 | | - | let l = getInteger(this, "Total_vote_amount") |
---|
45 | | - | if ($isInstanceOf(l, "Int")) |
---|
| 45 | + | let t = { |
---|
| 46 | + | let r = getInteger(this, ("Vote_Amount_For" + p)) |
---|
| 47 | + | if ($isInstanceOf(r, "Int")) |
---|
46 | 48 | | then { |
---|
47 | | - | let t = l |
---|
48 | | - | t |
---|
| 49 | + | let u = r |
---|
| 50 | + | u |
---|
| 51 | + | } |
---|
| 52 | + | else unit |
---|
| 53 | + | } |
---|
| 54 | + | let v = { |
---|
| 55 | + | let r = getInteger(this, "Vote_Index") |
---|
| 56 | + | if ($isInstanceOf(r, "Int")) |
---|
| 57 | + | then { |
---|
| 58 | + | let w = r |
---|
| 59 | + | w |
---|
49 | 60 | | } |
---|
50 | 61 | | else 0 |
---|
51 | 62 | | } |
---|
52 | | - | let u = { |
---|
53 | | - | let l = getInteger(this, ("Vote_Amount_For" + r)) |
---|
54 | | - | if ($isInstanceOf(l, "Int")) |
---|
55 | | - | then { |
---|
56 | | - | let v = l |
---|
57 | | - | v |
---|
58 | | - | } |
---|
59 | | - | else unit |
---|
60 | | - | } |
---|
61 | | - | let w = { |
---|
62 | | - | let l = getInteger(this, "Vote_Index") |
---|
63 | | - | if ($isInstanceOf(l, "Int")) |
---|
64 | | - | then { |
---|
65 | | - | let x = l |
---|
66 | | - | x |
---|
67 | | - | } |
---|
68 | | - | else 0 |
---|
69 | | - | } |
---|
70 | | - | let y = i(81) |
---|
71 | | - | if ((u != unit)) |
---|
| 63 | + | let x = j(81) |
---|
| 64 | + | if ((t != unit)) |
---|
72 | 65 | | then throw("You already Voted") |
---|
73 | | - | else if ((q.assetId != a)) |
---|
| 66 | + | else if ((o.assetId != a)) |
---|
74 | 67 | | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only.")) |
---|
75 | | - | else if ((10000 != q.amount)) |
---|
| 68 | + | else if ((10000 != o.amount)) |
---|
76 | 69 | | then throw("Exactly 1 Froe is need to make a vote") |
---|
77 | | - | else [StringEntry("Voter", r), IntegerEntry(("Vote_Amount_For" + r), q.amount), IntegerEntry("Vote_Index", (w + 1)), IntegerEntry("Total_vote_amount", (s + q.amount)), IntegerEntry("Voting_Reward", y)] |
---|
| 70 | + | else [StringEntry("Voter", p), IntegerEntry(("Vote_Amount_For" + p), o.amount), IntegerEntry("Vote_Index", (v + 1)), IntegerEntry("Voting_Reward", x)] |
---|
78 | 71 | | } |
---|
79 | 72 | | |
---|
80 | 73 | | |
---|
81 | 74 | | |
---|
82 | | - | @Callable(p) |
---|
| 75 | + | @Callable(n) |
---|
83 | 76 | | func Withdraw () = { |
---|
84 | | - | let z = getStringValue("Withdraw_State") |
---|
85 | | - | let r = toBase58String(p.caller.bytes) |
---|
86 | | - | let o = i(81) |
---|
87 | | - | let A = getIntegerValue(this, ("Vote_Amount_For" + r)) |
---|
88 | | - | if ((z == "DISABLED")) |
---|
| 77 | + | let y = getStringValue("Withdraw_State") |
---|
| 78 | + | let p = toBase58String(n.caller.bytes) |
---|
| 79 | + | let m = j(81) |
---|
| 80 | + | let z = getIntegerValue(this, ("Vote_Amount_For" + p)) |
---|
| 81 | + | if ((y == "DISABLED")) |
---|
89 | 82 | | then throw("Withdrawal Is currently disabled. A minimum of 7 Days is need for eligible withdrawals") |
---|
90 | | - | else if ((A == 0)) |
---|
| 83 | + | else if ((z == 0)) |
---|
91 | 84 | | then throw("No Valid Vote Found") |
---|
92 | | - | else [ScriptTransfer(p.caller, (getIntegerValue(this, ("Vote_Amount_For" + r)) + o), a)] |
---|
| 85 | + | else [ScriptTransfer(n.caller, (getIntegerValue(this, ("Vote_Amount_For" + p)) + m), a)] |
---|
93 | 86 | | } |
---|
94 | 87 | | |
---|
95 | 88 | | |
---|
96 | | - | @Verifier(B) |
---|
97 | | - | func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) |
---|
| 89 | + | @Verifier(A) |
---|
| 90 | + | func B () = sigVerify(A.bodyBytes, A.proofs[0], A.senderPublicKey) |
---|
98 | 91 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'62yYzfZL17bnZ2aPCuDoT1mfwick4PMHNooyAewfq8Sp' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = 1440 |
---|
7 | 7 | | |
---|
8 | 8 | | let c = (b * 7) |
---|
9 | 9 | | |
---|
10 | 10 | | let d = (c + height) |
---|
11 | 11 | | |
---|
12 | | - | func e () = StringEntry("Withdraw_State", "DISABLED") |
---|
| 12 | + | let e = assetBalance(this, a) |
---|
| 13 | + | |
---|
| 14 | + | func f () = StringEntry("Withdraw_State", "DISABLED") |
---|
13 | 15 | | |
---|
14 | 16 | | |
---|
15 | | - | func f (g) = { |
---|
16 | | - | let h = g |
---|
17 | | - | h |
---|
| 17 | + | func g (h) = { |
---|
| 18 | + | let i = h |
---|
| 19 | + | i |
---|
18 | 20 | | } |
---|
19 | 21 | | |
---|
20 | 22 | | |
---|
21 | | - | func i (j) = { |
---|
22 | | - | let k = { |
---|
23 | | - | let l = getInteger(this, "Total_vote_amount") |
---|
24 | | - | if ($isInstanceOf(l, "Int")) |
---|
| 23 | + | func j (k) = { |
---|
| 24 | + | let l = (k / 100) |
---|
| 25 | + | let m = (l * e) |
---|
| 26 | + | m |
---|
| 27 | + | } |
---|
| 28 | + | |
---|
| 29 | + | |
---|
| 30 | + | @Callable(n) |
---|
| 31 | + | func Vote () = { |
---|
| 32 | + | let o = if ((size(n.payments) == 1)) |
---|
| 33 | + | then n.payments[0] |
---|
| 34 | + | else throw("You need exactly one froe to make a vote") |
---|
| 35 | + | let p = toBase58String(n.caller.bytes) |
---|
| 36 | + | let q = { |
---|
| 37 | + | let r = getInteger(this, "Total_vote_amount") |
---|
| 38 | + | if ($isInstanceOf(r, "Int")) |
---|
25 | 39 | | then { |
---|
26 | | - | let m = l |
---|
27 | | - | m |
---|
| 40 | + | let s = r |
---|
| 41 | + | s |
---|
28 | 42 | | } |
---|
29 | 43 | | else 0 |
---|
30 | 44 | | } |
---|
31 | | - | let n = (j / 100) |
---|
32 | | - | let o = (n * k) |
---|
33 | | - | o |
---|
34 | | - | } |
---|
35 | | - | |
---|
36 | | - | |
---|
37 | | - | @Callable(p) |
---|
38 | | - | func Vote () = { |
---|
39 | | - | let q = if ((size(p.payments) == 1)) |
---|
40 | | - | then p.payments[0] |
---|
41 | | - | else throw("You need exactly one froe to make a vote") |
---|
42 | | - | let r = toBase58String(p.caller.bytes) |
---|
43 | | - | let s = { |
---|
44 | | - | let l = getInteger(this, "Total_vote_amount") |
---|
45 | | - | if ($isInstanceOf(l, "Int")) |
---|
| 45 | + | let t = { |
---|
| 46 | + | let r = getInteger(this, ("Vote_Amount_For" + p)) |
---|
| 47 | + | if ($isInstanceOf(r, "Int")) |
---|
46 | 48 | | then { |
---|
47 | | - | let t = l |
---|
48 | | - | t |
---|
| 49 | + | let u = r |
---|
| 50 | + | u |
---|
| 51 | + | } |
---|
| 52 | + | else unit |
---|
| 53 | + | } |
---|
| 54 | + | let v = { |
---|
| 55 | + | let r = getInteger(this, "Vote_Index") |
---|
| 56 | + | if ($isInstanceOf(r, "Int")) |
---|
| 57 | + | then { |
---|
| 58 | + | let w = r |
---|
| 59 | + | w |
---|
49 | 60 | | } |
---|
50 | 61 | | else 0 |
---|
51 | 62 | | } |
---|
52 | | - | let u = { |
---|
53 | | - | let l = getInteger(this, ("Vote_Amount_For" + r)) |
---|
54 | | - | if ($isInstanceOf(l, "Int")) |
---|
55 | | - | then { |
---|
56 | | - | let v = l |
---|
57 | | - | v |
---|
58 | | - | } |
---|
59 | | - | else unit |
---|
60 | | - | } |
---|
61 | | - | let w = { |
---|
62 | | - | let l = getInteger(this, "Vote_Index") |
---|
63 | | - | if ($isInstanceOf(l, "Int")) |
---|
64 | | - | then { |
---|
65 | | - | let x = l |
---|
66 | | - | x |
---|
67 | | - | } |
---|
68 | | - | else 0 |
---|
69 | | - | } |
---|
70 | | - | let y = i(81) |
---|
71 | | - | if ((u != unit)) |
---|
| 63 | + | let x = j(81) |
---|
| 64 | + | if ((t != unit)) |
---|
72 | 65 | | then throw("You already Voted") |
---|
73 | | - | else if ((q.assetId != a)) |
---|
| 66 | + | else if ((o.assetId != a)) |
---|
74 | 67 | | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only.")) |
---|
75 | | - | else if ((10000 != q.amount)) |
---|
| 68 | + | else if ((10000 != o.amount)) |
---|
76 | 69 | | then throw("Exactly 1 Froe is need to make a vote") |
---|
77 | | - | else [StringEntry("Voter", r), IntegerEntry(("Vote_Amount_For" + r), q.amount), IntegerEntry("Vote_Index", (w + 1)), IntegerEntry("Total_vote_amount", (s + q.amount)), IntegerEntry("Voting_Reward", y)] |
---|
| 70 | + | else [StringEntry("Voter", p), IntegerEntry(("Vote_Amount_For" + p), o.amount), IntegerEntry("Vote_Index", (v + 1)), IntegerEntry("Voting_Reward", x)] |
---|
78 | 71 | | } |
---|
79 | 72 | | |
---|
80 | 73 | | |
---|
81 | 74 | | |
---|
82 | | - | @Callable(p) |
---|
| 75 | + | @Callable(n) |
---|
83 | 76 | | func Withdraw () = { |
---|
84 | | - | let z = getStringValue("Withdraw_State") |
---|
85 | | - | let r = toBase58String(p.caller.bytes) |
---|
86 | | - | let o = i(81) |
---|
87 | | - | let A = getIntegerValue(this, ("Vote_Amount_For" + r)) |
---|
88 | | - | if ((z == "DISABLED")) |
---|
| 77 | + | let y = getStringValue("Withdraw_State") |
---|
| 78 | + | let p = toBase58String(n.caller.bytes) |
---|
| 79 | + | let m = j(81) |
---|
| 80 | + | let z = getIntegerValue(this, ("Vote_Amount_For" + p)) |
---|
| 81 | + | if ((y == "DISABLED")) |
---|
89 | 82 | | then throw("Withdrawal Is currently disabled. A minimum of 7 Days is need for eligible withdrawals") |
---|
90 | | - | else if ((A == 0)) |
---|
| 83 | + | else if ((z == 0)) |
---|
91 | 84 | | then throw("No Valid Vote Found") |
---|
92 | | - | else [ScriptTransfer(p.caller, (getIntegerValue(this, ("Vote_Amount_For" + r)) + o), a)] |
---|
| 85 | + | else [ScriptTransfer(n.caller, (getIntegerValue(this, ("Vote_Amount_For" + p)) + m), a)] |
---|
93 | 86 | | } |
---|
94 | 87 | | |
---|
95 | 88 | | |
---|
96 | | - | @Verifier(B) |
---|
97 | | - | func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) |
---|
| 89 | + | @Verifier(A) |
---|
| 90 | + | func B () = sigVerify(A.bodyBytes, A.proofs[0], A.senderPublicKey) |
---|
98 | 91 | | |
---|