tx · ChjW8i68m5CMzkc73ah4yFZriLuonzKtpkCRUmpyYBmT 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv: -0.01400000 Waves 2021.08.18 14:45 [1663734] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves
{ "type": 13, "id": "ChjW8i68m5CMzkc73ah4yFZriLuonzKtpkCRUmpyYBmT", "fee": 1400000, "feeAssetId": null, "timestamp": 1629287133027, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "23kzS6PPoQM4nfKJUx6krsXLLYMRVs9sBUuYDivb1eSVMhAFQBwSqLYgVFQqQGGAtP2fkDj2wetrMGL8qubgxAuy" ], "script": "base64:AAIEAAAAAAAAABsIAhIECgIIARIAEgASAwoBCBIDCgEIEgMKAQgAAAAAAAAABgAAAAFpAQAAABVSZWdpc3RlclBhaXJGb3JWb3RpbmcAAAACAAAACEFzc2V0SUQxAAAABGRheXMEAAAABHBtdDEJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABHBtdDIJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEEAAAACkZlZUFkZHJlc3MBAAAAIHE/Oe1BrsJepSkes1ESh96Qyq2U5VDLF1kF2MXI1ngbBAAAABFtYXhpbXVtdm90aW5nZGF5cwAAAAAAAAAAWgQAAAANQmFsbGV0QXNzZXRJRAEAAAAgLW9bAbmd5UpvGoRop5PuExeWGALv8UR2MHtYdfeTqKAEAAAAC1VTRFRBc3NldElEAQAAACBfV2kYyAongSbxW5ftxOxN+cK7WcsSGIuEYKBfpvf88wQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAG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RfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA5Wb3RpbmdfUGVyaW9kXwUAAAAMRW50ZXJBc3NldElECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAPVm90ZXNfUmVxdWlyZWRfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAABNWb3RpbmdfTGlzdGluZ19GZWVfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA5Wb3RpbmdfU3RhdHVzXwUAAAAMRW50ZXJBc3NldElECQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAAPVm90ZXNfUmVjZWl2ZWRfBQAAAAxFbnRlckFzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleUncO1A=", "height": 1663734, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EUiUrmwR1bgeuv1NFoQSzykdiqKNgfhdSpBeDWm1pfUN Next: EUBzcUZ4F2uuC4UA9aZcpnFczzZF6nbDoiMqgSq6hcHZ Diff:
Old | New | Differences | |
---|---|---|---|
152 | 152 | then throw("Pair is not available in Voting List.") | |
153 | 153 | else if ((G > height)) | |
154 | 154 | then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(U)) + " Blocks")) | |
155 | - | else if (( | |
155 | + | else if ((isDefined(T) == true)) | |
156 | 156 | then throw("Your Address not found between the Values") | |
157 | 157 | else if ((0 >= T)) | |
158 | 158 | then throw("You Don't have any dues of ballet balance in this Voting Pair.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func RegisterPairForVoting (b,c) = { | |
8 | 8 | let d = value(a.payments[0]) | |
9 | 9 | let e = value(a.payments[1]) | |
10 | 10 | let f = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
11 | 11 | let g = 90 | |
12 | 12 | let h = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
13 | 13 | let i = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
14 | 14 | let j = toBase58String(a.caller.bytes) | |
15 | 15 | let k = !(isDefined(e.assetId)) | |
16 | 16 | let l = 1440 | |
17 | 17 | let m = (l * c) | |
18 | 18 | let n = (m - 43199) | |
19 | 19 | let o = ((100000 + ((11574 * n) / 10000)) * 100000000) | |
20 | 20 | let p = (height + m) | |
21 | 21 | let q = getString(this, ("Pair_Under_Voting_" + b)) | |
22 | 22 | let r = "Fail" | |
23 | 23 | let s = fromBase58String(b) | |
24 | 24 | if ((43 > size(b))) | |
25 | 25 | then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.") | |
26 | 26 | else if ((29 >= c)) | |
27 | 27 | then throw("Enter no. of days in between 30 to 90.") | |
28 | 28 | else if ((c > g)) | |
29 | 29 | then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.") | |
30 | 30 | else if ((q == b)) | |
31 | 31 | then throw("Pair Already Exist in Voting List.") | |
32 | 32 | else if ((size(a.payments) != 2)) | |
33 | 33 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token you want to add to List for Voting.") | |
34 | 34 | else if ((d.assetId != h)) | |
35 | 35 | then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.") | |
36 | 36 | else if ((40000000 > d.amount)) | |
37 | 37 | then throw((((("You attached only " + toString(fraction(d.amount, 1, 100000000))) + ".") + toString(fraction(d.amount, 1, 10000000))) + " Ballet for Voting in payment[1], please attach 1000 Ballet Token only.")) | |
38 | 38 | else if ((e.assetId != s)) | |
39 | 39 | then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.") | |
40 | 40 | else if ((k == true)) | |
41 | 41 | then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].") | |
42 | 42 | else if ((e.assetId == h)) | |
43 | 43 | then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].") | |
44 | 44 | else [StringEntry(("Pair_Under_Voting_" + b), b), StringEntry(("Voting_Status_" + b), r), IntegerEntry(("Voting_Start_Height_" + b), height), IntegerEntry(("Voting_End_Height_" + b), p), IntegerEntry(("Voting_Period_" + b), m), IntegerEntry(("Voting_Listing_Fee_" + b), d.amount), IntegerEntry(("Votes_Required_" + b), o), IntegerEntry(("Votes_Received_" + b), 0), ScriptTransfer(addressFromPublicKey(f), d.amount, h)] | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(a) | |
50 | 50 | func IssueBallet () = { | |
51 | 51 | let t = value(a.payments[0]) | |
52 | 52 | let j = toBase58String(a.caller.bytes) | |
53 | 53 | let h = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
54 | 54 | let u = getIntegerValue(this, "BALLET/TN") | |
55 | 55 | let v = fraction(100000, t.amount, u) | |
56 | 56 | let w = getIntegerValue(this, "Total_Issued_Ballet:") | |
57 | 57 | let x = (w + v) | |
58 | 58 | let y = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
59 | 59 | let z = (y + t.amount) | |
60 | 60 | let A = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
61 | 61 | let B = fraction(100000, z, x) | |
62 | 62 | let f = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
63 | 63 | if (isDefined(t.assetId)) | |
64 | 64 | then throw("Incorrect asset attached, please attach TN.") | |
65 | 65 | else if ((5000000 > t.amount)) | |
66 | 66 | then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.") | |
67 | 67 | else [IntegerEntry("Total_Issued_Ballet:", x), IntegerEntry("Total_Ballet_Reserve_In_TN:", z), IntegerEntry("Ballet_Backup_Value_In_TN:", B), StringEntry("message", "<h1>Ballet Issued Successfully!</h1><br>"), Reissue(h, v, true), ScriptTransfer(a.caller, ((v * 99) / 100), h), ScriptTransfer(addressFromPublicKey(f), ((v * 1) / 100), h)] | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(a) | |
73 | 73 | func Liquidate () = { | |
74 | 74 | let j = toBase58String(a.callerPublicKey) | |
75 | 75 | let t = value(a.payments[0]) | |
76 | 76 | let h = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
77 | 77 | let w = getIntegerValue(this, "Total_Issued_Ballet:") | |
78 | 78 | let x = (w - t.amount) | |
79 | 79 | let y = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
80 | 80 | let A = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
81 | 81 | let C = fraction(A, t.amount, 100000) | |
82 | 82 | let z = (y - C) | |
83 | 83 | let B = fraction(100000, z, x) | |
84 | 84 | if ((t.assetId != h)) | |
85 | 85 | then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
86 | 86 | else if ((100000 > t.amount)) | |
87 | 87 | then throw("Attach Amount must be greater than 0.001 Ballet.") | |
88 | 88 | else [Burn(h, t.amount), IntegerEntry("Total_Issued_Ballet:", x), IntegerEntry("Total_Ballet_Reserve_In_TN:", z), IntegerEntry("Ballet_Backup_Value_In_TN:", B), ScriptTransfer(a.caller, C, unit)] | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(a) | |
94 | 94 | func DoVoting (D) = { | |
95 | 95 | let t = if ((size(a.payments) == 1)) | |
96 | 96 | then a.payments[0] | |
97 | 97 | else throw("Ballet Token is required as Attached payment") | |
98 | 98 | let E = toBase58String(a.caller.bytes) | |
99 | 99 | let h = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
100 | 100 | let F = "Pass" | |
101 | 101 | let G = getIntegerValue(this, ("Voting_End_Height_" + D)) | |
102 | 102 | let H = getString(this, ("Pair_Under_Voting_" + D)) | |
103 | 103 | let I = getIntegerValue(this, ("Votes_Required_" + D)) | |
104 | 104 | let J = getIntegerValue(this, ("Votes_Received_" + D)) | |
105 | 105 | let K = getStringValue(this, ("Voting_Status_" + D)) | |
106 | 106 | let L = { | |
107 | 107 | let M = getInteger(this, ("Votes_Received_" + D)) | |
108 | 108 | if ($isInstanceOf(M, "Int")) | |
109 | 109 | then { | |
110 | 110 | let N = M | |
111 | 111 | N | |
112 | 112 | } | |
113 | 113 | else 0 | |
114 | 114 | } | |
115 | 115 | let O = (L + t.amount) | |
116 | 116 | let P = { | |
117 | 117 | let M = getInteger(this, ((("Votes_Received_" + E) + "_") + D)) | |
118 | 118 | if ($isInstanceOf(M, "Int")) | |
119 | 119 | then { | |
120 | 120 | let Q = M | |
121 | 121 | Q | |
122 | 122 | } | |
123 | 123 | else 0 | |
124 | 124 | } | |
125 | 125 | let R = (P + t.amount) | |
126 | 126 | let S = (J >= I) | |
127 | 127 | if ((H != D)) | |
128 | 128 | then throw("Pair is not available in Voting List.") | |
129 | 129 | else if ((height > G)) | |
130 | 130 | then throw((("Voting timeline for " + D) + " is expired.")) | |
131 | 131 | else if ((t.assetId != h)) | |
132 | 132 | then throw("Kindly Attach Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
133 | 133 | else if (S) | |
134 | 134 | then [StringEntry(("Voting_Status_" + D), F)] | |
135 | 135 | else if ((K == F)) | |
136 | 136 | then throw("Voting for XXXXXXXXXXXXXXXXXXX pair is completed and it’s available in whitelist.") | |
137 | 137 | else [IntegerEntry(("Votes_Received_" + D), O), IntegerEntry(((("Votes_Received_" + E) + "_") + D), R)] | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(a) | |
143 | 143 | func WithdrawVotedTokens (D) = { | |
144 | 144 | let t = a.payments[0] | |
145 | 145 | let E = toBase58String(a.caller.bytes) | |
146 | 146 | let h = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
147 | 147 | let G = getIntegerValue(this, ("Voting_End_Height_" + D)) | |
148 | 148 | let H = getString(this, ("Pair_Under_Voting_" + D)) | |
149 | 149 | let T = getIntegerValue(this, ((("Votes_Received_" + E) + "_") + D)) | |
150 | 150 | let U = (G - height) | |
151 | 151 | if ((H != D)) | |
152 | 152 | then throw("Pair is not available in Voting List.") | |
153 | 153 | else if ((G > height)) | |
154 | 154 | then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(U)) + " Blocks")) | |
155 | - | else if (( | |
155 | + | else if ((isDefined(T) == true)) | |
156 | 156 | then throw("Your Address not found between the Values") | |
157 | 157 | else if ((0 >= T)) | |
158 | 158 | then throw("You Don't have any dues of ballet balance in this Voting Pair.") | |
159 | 159 | else if (isDefined(t.assetId)) | |
160 | 160 | then throw("Don't attach any asset.If you still want to support we accept only TN as payment.") | |
161 | 161 | else [IntegerEntry(((("Votes_Received_" + E) + "_") + D), 0), ScriptTransfer(a.caller, T, h)] | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | ||
166 | 166 | @Callable(a) | |
167 | 167 | func RemovePairEntry (D) = { | |
168 | 168 | let V = getStringValue(this, "Polarity_Admin_Rights") | |
169 | 169 | let G = getIntegerValue(this, ("Voting_End_Height_" + D)) | |
170 | 170 | let H = getString(this, ("Pair_Under_Voting_" + D)) | |
171 | 171 | let K = getStringValue(this, ("Voting_Status_" + D)) | |
172 | 172 | let F = "Pass" | |
173 | 173 | let E = toBase58String(a.caller.bytes) | |
174 | 174 | let W = height | |
175 | 175 | let U = (G - height) | |
176 | 176 | if ((H != D)) | |
177 | 177 | then throw("Pair is not available in Voting List.") | |
178 | 178 | else if ((V != E)) | |
179 | 179 | then throw((("I know You are not An Admin. Only " + V) + " has rights to remove the pair.")) | |
180 | 180 | else if ((G > height)) | |
181 | 181 | then throw((("Voting Already Running. You can remove the pair after " + toString(U)) + " Blocks")) | |
182 | 182 | else if ((K == F)) | |
183 | 183 | then throw((D + " is now Whitelisted. So you can't remove it.")) | |
184 | 184 | else [DeleteEntry(("Pair_Under_Voting_" + D)), DeleteEntry(("Voting_Start_Height_" + D)), DeleteEntry(("Voting_End_Height_" + D)), DeleteEntry(("Voting_Period_" + D)), DeleteEntry(("Votes_Required_" + D)), DeleteEntry(("Voting_Listing_Fee_" + D)), DeleteEntry(("Voting_Status_" + D)), DeleteEntry(("Votes_Received_" + D))] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | @Verifier(X) | |
189 | 189 | func Y () = { | |
190 | 190 | let M = X | |
191 | 191 | sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey) | |
192 | 192 | } | |
193 | 193 |
github/deemru/w8io/169f3d6 37.01 ms ◑