tx · CZHRW83L3jrKgPjrDp9UJ1zCjV27zQSKPpuoHnoTfvMn 3N8E9LU71MDkdP8FWtbP4TBXCNhoc15hWfs: -0.14000000 Waves 2022.10.19 16:58 [2279358] smart account 3N8E9LU71MDkdP8FWtbP4TBXCNhoc15hWfs > SELF 0.00000000 Waves
{ "type": 13, "id": "CZHRW83L3jrKgPjrDp9UJ1zCjV27zQSKPpuoHnoTfvMn", "fee": 14000000, "feeAssetId": null, "timestamp": 1666187990653, "version": 2, "chainId": 84, "sender": "3N8E9LU71MDkdP8FWtbP4TBXCNhoc15hWfs", "senderPublicKey": "2EDucEDvqYfn6hdx4PbvykQFRoNgPMWX6SiVPjM8AyxM", "proofs": [ "35BR14HSBfd1zGMq9z3UZrcBBQhZAbrWF1FqkVUEb7daDJ18SyBL2gZkqUtN1vocXr2qKrBuqBPCi5iwJDf5stqg", "228i2eGzgJ8KxDNPTSKZ89Z7oThjv2UkcDxXrhLUVmuL7ZgsknMPzSq9ajKpvZY6ppX9JZJGr1jqg4m9KKvXPF5x" ], "script": "base64:BgIiCAISAwoBCBIAEgASAwoBARIAEgASABIGCgQYEQEBEgASAFsAB2tBY3RpdmUCBmFjdGl2ZQALa0FjdGl2ZUdsb2ICFGFjdGl2ZV9hbGxfY29udHJhY3RzAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rTGFzdEludGVyZXN0Ag1sYXN0X2ludGVyZXN0ABFrVXNlckxhc3RJbnRlcmVzdAIOX2xhc3RfaW50ZXJlc3QAD2tVc2VyU1dPUExvY2tlZAIMX1NXT1BfYW1vdW50ABBrVG90YWxTV09QTG9ja2VkAhF0b3RhbF9TV09QX2Ftb3VudAAVa1VzZXJTd29wVW5sb2NrSGVpZ2h0AhNfU1dPUF91bmxvY2tfaGVpZ2h0ABBrVXNlckdTd29wTG9ja2VkAg1fR1N3b3BfYW1vdW50ABFrVG90YWxHU3dvcExvY2tlZAISdG90YWxfR1N3b3BfYW1vdW50ABJrVXNlclRvdGFsVm90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HNlAgkBC2lzQWRtaW5DYWxsAQUBaQMFBmFjdGl2ZQkAAgECFkRBcHAgaXMgYWxyZWFkeSBhY3RpdmUJAMwIAgkBDEJvb2xlYW5FbnRyeQIFB2tBY3RpdmUGCQDMCAIJAQtEZWxldGVFbnRyeQEFBmtDYXVzZQUDbmlsAQJ0eAEGdmVyaWZ5AAQSYWRtaW5QdWJLZXkxU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACLy++PQ==", "height": 2279358, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DUg3371WqvKdHqXYPo6PGFt8PPWKGKBNPRSqTTLwGgqb Next: EHYDiRDmTfBPmLcejzEMHuQ3iGqnPppZham6mRg8hwrN Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | - | let b = " | |
6 | + | let b = "active_all_contracts" | |
7 | 7 | ||
8 | - | let c = " | |
8 | + | let c = "shutdown_cause" | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "last_interest" | |
11 | 11 | ||
12 | - | let e = "_ | |
12 | + | let e = "_last_interest" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "_SWOP_amount" | |
15 | 15 | ||
16 | - | let g = "_SWOP_ | |
16 | + | let g = "total_SWOP_amount" | |
17 | 17 | ||
18 | - | let h = "_ | |
18 | + | let h = "_SWOP_unlock_height" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "_GSwop_amount" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "total_GSwop_amount" | |
23 | 23 | ||
24 | - | let k = "_user_ | |
24 | + | let k = "_user_total_vote_gSWOP" | |
25 | 25 | ||
26 | - | let l = "_ | |
26 | + | let l = "_user_available_for_claim" | |
27 | 27 | ||
28 | - | let m = "_ | |
28 | + | let m = "_current_pool_fraction_reward" | |
29 | 29 | ||
30 | - | let n = "_pool_reward | |
30 | + | let n = "_previous_pool_fraction_reward" | |
31 | 31 | ||
32 | - | let o = "reward_update_height" | |
32 | + | let o = "_pool_reward_update_height" | |
33 | 33 | ||
34 | - | let p = "reward_update_height | |
34 | + | let p = "reward_update_height" | |
35 | 35 | ||
36 | - | let q = "_ | |
36 | + | let q = "reward_update_height_first_pagination" | |
37 | 37 | ||
38 | - | let r = "_vote_ | |
38 | + | let r = "_vote_no" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "_vote_yes" | |
41 | 41 | ||
42 | - | let t = "_ | |
42 | + | let t = "_status" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "_finish_height" | |
45 | 45 | ||
46 | - | let v = "voting_active_cell_ | |
46 | + | let v = "voting_active_cell_1" | |
47 | 47 | ||
48 | - | let w = "voting_active_cell_ | |
48 | + | let w = "voting_active_cell_2" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "voting_active_cell_3" | |
51 | 51 | ||
52 | - | let y = "_ | |
52 | + | let y = "sum_reward_current" | |
53 | 53 | ||
54 | - | let z = "_ | |
54 | + | let z = "_bought_tickets" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "_swop_per_ticket" | |
57 | 57 | ||
58 | - | let B = "_ | |
58 | + | let B = "launchpad_active_id" | |
59 | 59 | ||
60 | - | let C = "_ | |
60 | + | let C = "_duration" | |
61 | 61 | ||
62 | - | let D = "start_height" | |
62 | + | let D = "_start_height" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "start_height" | |
65 | 65 | ||
66 | - | let F = "period | |
66 | + | let F = "base_period" | |
67 | 67 | ||
68 | - | let G = "_ | |
68 | + | let G = "period_length" | |
69 | 69 | ||
70 | - | let H = "_ | |
70 | + | let H = "_user_total_struc" | |
71 | 71 | ||
72 | - | let I = " | |
72 | + | let I = "_freeze_swop_duration" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "SWOP_id" | |
75 | 75 | ||
76 | - | let K = " | |
76 | + | let K = "airdrop_fee" | |
77 | 77 | ||
78 | - | let L = "admin_pub_ | |
78 | + | let L = "admin_pub_1" | |
79 | 79 | ||
80 | - | let M = "admin_pub_ | |
80 | + | let M = "admin_pub_2" | |
81 | 81 | ||
82 | - | let N = " | |
82 | + | let N = "admin_pub_3" | |
83 | 83 | ||
84 | - | let O = " | |
84 | + | let O = "money_box_pub_key" | |
85 | 85 | ||
86 | - | let P = " | |
86 | + | let P = "farming_address" | |
87 | 87 | ||
88 | - | let Q = "voting_ | |
88 | + | let Q = "voting_address" | |
89 | 89 | ||
90 | - | let R = " | |
90 | + | let R = "voting_new_pool_address" | |
91 | 91 | ||
92 | - | let S = " | |
92 | + | let S = "launchpad_address" | |
93 | 93 | ||
94 | - | let T = | |
94 | + | let T = "airdrop_fee_money_box" | |
95 | 95 | ||
96 | - | func U (V) = { | |
97 | - | let W = getString(T, V) | |
98 | - | if ($isInstanceOf(W, "String")) | |
96 | + | let U = "pool_" | |
97 | + | ||
98 | + | let V = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
99 | + | ||
100 | + | func W (X) = { | |
101 | + | let Y = getString(V, X) | |
102 | + | if ($isInstanceOf(Y, "String")) | |
99 | 103 | then { | |
100 | - | let | |
101 | - | fromBase58String( | |
104 | + | let Z = Y | |
105 | + | fromBase58String(Z) | |
102 | 106 | } | |
103 | 107 | else { | |
104 | - | let | |
105 | - | throw(( | |
108 | + | let aa = Y | |
109 | + | throw((X + "is empty")) | |
106 | 110 | } | |
107 | 111 | } | |
108 | 112 | ||
109 | 113 | ||
110 | - | let | |
114 | + | let ab = W(L) | |
111 | 115 | ||
112 | - | let | |
116 | + | let ac = W(M) | |
113 | 117 | ||
114 | - | let | |
118 | + | let ad = W(N) | |
115 | 119 | ||
116 | - | let | |
120 | + | let ae = W(O) | |
117 | 121 | ||
118 | - | let | |
122 | + | let af = Address(W(P)) | |
119 | 123 | ||
120 | - | let | |
124 | + | let ag = Address(W(Q)) | |
121 | 125 | ||
122 | - | let | |
126 | + | let ah = Address(W(R)) | |
123 | 127 | ||
124 | - | let | |
128 | + | let ai = Address(W(S)) | |
125 | 129 | ||
126 | - | let | |
130 | + | let aj = Address(W(T)) | |
127 | 131 | ||
128 | - | let | |
132 | + | let ak = (10102 * 4) | |
129 | 133 | ||
130 | - | let | |
134 | + | let al = fromBase58String(getStringValue(af, J)) | |
131 | 135 | ||
132 | - | let | |
136 | + | let am = 100000000 | |
133 | 137 | ||
134 | - | let | |
138 | + | let an = 10000000000 | |
135 | 139 | ||
136 | - | let | |
140 | + | let ao = 1000000 | |
137 | 141 | ||
138 | - | let | |
142 | + | let ap = valueOrErrorMessage(getInteger(ag, F), "Empty kBasePeriod at voting contract") | |
139 | 143 | ||
140 | - | let | |
144 | + | let aq = valueOrErrorMessage(getInteger(ag, E), "Empty kStartHeight at voting contract") | |
141 | 145 | ||
142 | - | let | |
146 | + | let ar = valueOrErrorMessage(getInteger(ag, G), "Empty kPeriodLength at voting contract") | |
143 | 147 | ||
144 | - | let | |
148 | + | let as = valueOrElse(getString(ah, v), "") | |
145 | 149 | ||
146 | - | let | |
150 | + | let at = valueOrElse(getString(ah, w), "") | |
147 | 151 | ||
148 | - | let | |
152 | + | let au = valueOrElse(getString(ah, x), "") | |
149 | 153 | ||
150 | - | let | |
154 | + | let av = valueOrElse(getBoolean(this, a), true) | |
151 | 155 | ||
152 | - | let | |
156 | + | let aw = valueOrElse(getBoolean(V, b), true) | |
153 | 157 | ||
154 | - | let | |
158 | + | let ax = getIntegerValue(V, K) | |
155 | 159 | ||
156 | - | func aw (ax) = [BooleanEntry(a, false), StringEntry(b, ax)] | |
160 | + | let ay = (ap + ((height - aq) / ar)) | |
161 | + | ||
162 | + | func az (aA) = [BooleanEntry(a, false), StringEntry(c, aA)] | |
157 | 163 | ||
158 | 164 | ||
159 | - | func ay () = if (at) | |
165 | + | func aB () = if (if (av) | |
166 | + | then aw | |
167 | + | else false) | |
160 | 168 | then unit | |
161 | 169 | else throw("DApp is inactive at this moment") | |
162 | 170 | ||
163 | 171 | ||
164 | - | func | |
172 | + | func aC (aD) = if (containsElement([ab, ac, ad], aD.callerPublicKey)) | |
165 | 173 | then unit | |
166 | 174 | else throw("Only admin can call this function") | |
167 | 175 | ||
168 | 176 | ||
169 | - | func | |
177 | + | func aE () = valueOrElse(getInteger(this, d), 0) | |
170 | 178 | ||
171 | 179 | ||
172 | - | func | |
173 | - | let | |
174 | - | let | |
175 | - | $Tuple2( | |
180 | + | func aF () = { | |
181 | + | let aG = valueOrElse(getInteger(this, g), 0) | |
182 | + | let aH = valueOrElse(getInteger(this, j), aG) | |
183 | + | $Tuple2(aG, aH) | |
176 | 184 | } | |
177 | 185 | ||
178 | 186 | ||
179 | - | func | |
180 | - | let | |
181 | - | let | |
182 | - | $Tuple2( | |
187 | + | func aI (aJ) = { | |
188 | + | let aK = valueOrElse(getInteger(this, (aJ + f)), 0) | |
189 | + | let aL = valueOrElse(getInteger(this, (aJ + i)), aK) | |
190 | + | $Tuple2(aK, aL) | |
183 | 191 | } | |
184 | 192 | ||
185 | 193 | ||
186 | - | func | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | $Tuple3( | |
194 | + | func aM (aJ,aN) = { | |
195 | + | let aO = aI(aJ) | |
196 | + | let aP = aO._1 | |
197 | + | let aQ = aO._2 | |
198 | + | let aR = valueOrElse(getInteger(this, (aJ + e)), aN) | |
199 | + | $Tuple3(aR, aP, aQ) | |
192 | 200 | } | |
193 | 201 | ||
194 | 202 | ||
195 | - | func | |
203 | + | func aS (aJ) = valueOrElse(getInteger(this, (aJ + l)), 0) | |
196 | 204 | ||
197 | 205 | ||
198 | - | func | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | if ((0 > | |
206 | + | func aT (aU,aJ) = { | |
207 | + | let aV = valueOrElse(getInteger(ah, aU), -1) | |
208 | + | let aW = valueOrElse(getInteger(ah, (toString(aV) + u)), 0) | |
209 | + | let aX = valueOrElse(getBoolean(ah, (toString(aV) + t)), true) | |
210 | + | let aY = height | |
211 | + | if ((0 > aV)) | |
204 | 212 | then 0 | |
205 | - | else if (!( | |
213 | + | else if (!(aX)) | |
206 | 214 | then 0 | |
207 | - | else if (( | |
208 | - | then (valueOrElse(getInteger( | |
215 | + | else if ((aW > aY)) | |
216 | + | then (valueOrElse(getInteger(ah, (((toString(aJ) + "_") + toString(aV)) + s)), 0) + valueOrElse(getInteger(ah, (((toString(aJ) + "_") + toString(aV)) + r)), 0)) | |
209 | 217 | else 0 | |
210 | 218 | } | |
211 | 219 | ||
212 | 220 | ||
213 | - | func | |
214 | - | let | |
215 | - | max( | |
221 | + | func aZ (aJ) = { | |
222 | + | let ba = [aT(as, aJ), aT(at, aJ), aT(au, aJ)] | |
223 | + | max(ba) | |
216 | 224 | } | |
217 | 225 | ||
218 | 226 | ||
219 | - | func | |
220 | - | let | |
221 | - | if (( | |
227 | + | func bb (aJ) = { | |
228 | + | let bc = toString(valueOrElse(getInteger(ai, B), 0)) | |
229 | + | if ((bc == "0")) | |
222 | 230 | then 0 | |
223 | 231 | else { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if ((height > | |
232 | + | let bd = valueOrElse(getInteger(ai, (bc + D)), 0) | |
233 | + | let be = valueOrElse(getInteger(ai, (bc + C)), 0) | |
234 | + | let bf = valueOrElse(getInteger(ai, (bc + I)), 0) | |
235 | + | let bg = ((bd + be) + bf) | |
236 | + | if ((height > bg)) | |
229 | 237 | then 0 | |
230 | 238 | else { | |
231 | - | let | |
232 | - | let | |
233 | - | ( | |
239 | + | let bh = valueOrElse(getInteger(ai, (((toString(aJ) + "_") + bc) + z)), 0) | |
240 | + | let bi = valueOrElse(getInteger(ai, (bc + A)), 0) | |
241 | + | (bh * bi) | |
234 | 242 | } | |
235 | 243 | } | |
236 | 244 | } | |
237 | 245 | ||
238 | 246 | ||
239 | - | func | |
240 | - | let | |
247 | + | func bj (aJ) = { | |
248 | + | let bk = if (isDefined(getString(ag, (toString(aJ) + H)))) | |
241 | 249 | then { | |
242 | - | let | |
243 | - | $Tuple3(parseIntValue( | |
250 | + | let bl = split(valueOrErrorMessage(getString(ag, (toString(aJ) + H)), "Empty kUserTotalStruc"), "_") | |
251 | + | $Tuple3(parseIntValue(bl[0]), parseIntValue(bl[1]), parseIntValue(bl[2])) | |
244 | 252 | } | |
245 | 253 | else { | |
246 | - | let | |
247 | - | $Tuple3( | |
254 | + | let bm = valueOrElse(getInteger(ag, (toString(aJ) + k)), 0) | |
255 | + | $Tuple3(bm, 0, ay) | |
248 | 256 | } | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | then | |
257 | + | let bn = bk._1 | |
258 | + | let bo = bk._2 | |
259 | + | let bp = bk._3 | |
260 | + | let bq = if ((bp == ay)) | |
261 | + | then bo | |
254 | 262 | else 0 | |
255 | - | $Tuple2( | |
263 | + | $Tuple2(bn, bq) | |
256 | 264 | } | |
257 | 265 | ||
258 | 266 | ||
259 | - | func | |
267 | + | func br (aU) = valueOrElse(getInteger(this, (aU + o)), 0) | |
260 | 268 | ||
261 | 269 | ||
262 | - | func | |
270 | + | func bs (aU) = isDefined(getInteger(this, (aU + o))) | |
263 | 271 | ||
264 | 272 | ||
265 | - | func | |
273 | + | func bt (aU) = valueOrElse(getInteger(this, (aU + m)), 0) | |
266 | 274 | ||
267 | 275 | ||
268 | - | func | |
276 | + | func bu (aU) = valueOrElse(getInteger(this, (aU + n)), 0) | |
269 | 277 | ||
270 | 278 | ||
271 | - | func | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | $Tuple2( | |
279 | + | func bv (aJ) = { | |
280 | + | let aN = aE() | |
281 | + | let bw = aM(aJ, aN) | |
282 | + | let aR = bw._1 | |
283 | + | let bx = bw._2 | |
284 | + | let aQ = bw._3 | |
285 | + | let by = fraction(aQ, (aN - aR), am) | |
286 | + | let bz = aN | |
287 | + | $Tuple2(bz, by) | |
280 | 288 | } | |
281 | 289 | ||
282 | 290 | ||
283 | - | @Callable(aA) | |
284 | - | func airDrop () = valueOrElse(ay(), { | |
285 | - | let bx = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId) | |
286 | - | let by = bx._1 | |
287 | - | let bz = bx._2 | |
288 | - | if ((bz != aj)) | |
291 | + | func bA (bB) = if (isDefined(getString(V, (U + bB)))) | |
292 | + | then unit | |
293 | + | else throw("DApp is not registered pool") | |
294 | + | ||
295 | + | ||
296 | + | @Callable(aD) | |
297 | + | func addPool (bB) = valueOrElse(aC(aD), valueOrElse(aB(), valueOrElse(bA(bB), if (isDefined(getInteger(this, (bB + m)))) | |
298 | + | then throw("Pool already in governance") | |
299 | + | else [IntegerEntry((bB + m), 0), IntegerEntry((bB + n), 0), IntegerEntry((bB + o), getIntegerValue(this, p))]))) | |
300 | + | ||
301 | + | ||
302 | + | ||
303 | + | @Callable(aD) | |
304 | + | func airDrop () = valueOrElse(aB(), { | |
305 | + | let bC = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId) | |
306 | + | let bD = bC._1 | |
307 | + | let bE = bC._2 | |
308 | + | if ((bE != al)) | |
289 | 309 | then throw("Incorrect pmtAssetId") | |
290 | 310 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | [IntegerEntry( | |
311 | + | let bF = fraction(bD, ax, ao, CEILING) | |
312 | + | let bG = aF() | |
313 | + | let bH = bG._1 | |
314 | + | let aH = bG._2 | |
315 | + | let aN = aE() | |
316 | + | let bI = (aN + fraction((bD - bF), am, aH)) | |
317 | + | [IntegerEntry(d, bI), ScriptTransfer(aj, bF, al)] | |
298 | 318 | } | |
299 | 319 | }) | |
300 | 320 | ||
301 | 321 | ||
302 | 322 | ||
303 | - | @Callable( | |
304 | - | func lockSWOP () = valueOrElse( | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
323 | + | @Callable(aD) | |
324 | + | func lockSWOP () = valueOrElse(aB(), { | |
325 | + | let bJ = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId) | |
326 | + | let bD = bJ._1 | |
327 | + | let bE = bJ._2 | |
328 | + | if ((bE != al)) | |
309 | 329 | then throw("Incorrect pmtAssetId") | |
310 | 330 | else { | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | [IntegerEntry(( | |
331 | + | let aJ = toString(aD.caller) | |
332 | + | let aN = aE() | |
333 | + | let bK = aI(aJ) | |
334 | + | let bx = bK._1 | |
335 | + | let aL = bK._2 | |
336 | + | let bL = bv(aJ) | |
337 | + | let bz = bL._1 | |
338 | + | let bM = bL._2 | |
339 | + | let bN = aS(aJ) | |
340 | + | let bO = (bN + bM) | |
341 | + | let bP = (bx + bD) | |
342 | + | let bQ = (aL + bD) | |
343 | + | let bR = aF() | |
344 | + | let bH = bR._1 | |
345 | + | let aH = bR._2 | |
346 | + | let bS = (bH + bD) | |
347 | + | let bT = (aH + bD) | |
348 | + | [IntegerEntry((aJ + h), (height + ak)), IntegerEntry((aJ + e), bz), IntegerEntry((aJ + f), bP), IntegerEntry((aJ + i), bQ), IntegerEntry((aJ + l), bO), IntegerEntry(g, bS), IntegerEntry(j, bT)] | |
329 | 349 | } | |
330 | 350 | }) | |
331 | 351 | ||
332 | 352 | ||
333 | 353 | ||
334 | - | @Callable( | |
335 | - | func withdrawSWOP ( | |
336 | - | let | |
337 | - | let | |
338 | - | if ((0 >= | |
354 | + | @Callable(aD) | |
355 | + | func withdrawSWOP (bU) = valueOrElse(aB(), { | |
356 | + | let aJ = toString(aD.caller) | |
357 | + | let bV = valueOrElse(getInteger(this, (aJ + h)), 0) | |
358 | + | if ((0 >= bU)) | |
339 | 359 | then throw("withdrawAmount <= 0") | |
340 | - | else if (( | |
341 | - | then throw(("You can't withdraw till " + toString( | |
360 | + | else if ((bV > height)) | |
361 | + | then throw(("You can't withdraw till " + toString(bV))) | |
342 | 362 | else { | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | if (if (if ((0 > | |
363 | + | let bW = aF() | |
364 | + | let bH = bW._1 | |
365 | + | let aH = bW._2 | |
366 | + | let bX = aI(aJ) | |
367 | + | let bx = bX._1 | |
368 | + | let aL = bX._2 | |
369 | + | let bY = bv(aJ) | |
370 | + | let bz = bY._1 | |
371 | + | let bM = bY._2 | |
372 | + | let bZ = bj(aD.caller) | |
373 | + | let ca = bZ._1 | |
374 | + | let cb = bZ._2 | |
375 | + | let cc = aZ(aD.caller) | |
376 | + | let cd = bb(aD.caller) | |
377 | + | if (if (if ((0 > cb)) | |
358 | 378 | then true | |
359 | - | else (0 > | |
379 | + | else (0 > ca)) | |
360 | 380 | then true | |
361 | - | else (0 > | |
381 | + | else (0 > cc)) | |
362 | 382 | then throw("userUnvoteAmount < 0 || userVoteAmount < 0 || userVoteAmountForNewPool < 0") | |
363 | 383 | else { | |
364 | - | let | |
365 | - | if (( | |
384 | + | let ce = (bx - max([cc, (ca + cb), cd])) | |
385 | + | if ((bU > ce)) | |
366 | 386 | then throw("withdrawAmount > availableToUnstake") | |
367 | 387 | else { | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | [IntegerEntry(( | |
388 | + | let bN = aS(aJ) | |
389 | + | let bO = (bN + bM) | |
390 | + | let bS = (bH - bU) | |
391 | + | let cf = (bx - bU) | |
392 | + | let bT = ((aH - aL) + cf) | |
393 | + | [IntegerEntry((aJ + e), bz), IntegerEntry((aJ + f), cf), IntegerEntry((aJ + i), cf), IntegerEntry((aJ + l), bO), IntegerEntry(g, bS), IntegerEntry(j, bT), ScriptTransfer(aD.caller, bU, al)] | |
374 | 394 | } | |
375 | 395 | } | |
376 | 396 | } | |
378 | 398 | ||
379 | 399 | ||
380 | 400 | ||
381 | - | @Callable( | |
382 | - | func claimAndWithdrawSWOP () = valueOrElse( | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | if (( | |
401 | + | @Callable(aD) | |
402 | + | func claimAndWithdrawSWOP () = valueOrElse(aB(), { | |
403 | + | let aJ = toString(aD.caller) | |
404 | + | let bN = aS(aJ) | |
405 | + | let cg = bv(aJ) | |
406 | + | let bz = cg._1 | |
407 | + | let by = cg._2 | |
408 | + | let ch = (bN + by) | |
409 | + | if ((ch == 0)) | |
390 | 410 | then throw("You have 0 available SWOP") | |
391 | - | else [IntegerEntry(( | |
411 | + | else [IntegerEntry((aJ + e), bz), IntegerEntry((aJ + l), 0), ScriptTransfer(aD.caller, ch, al)] | |
392 | 412 | }) | |
393 | 413 | ||
394 | 414 | ||
395 | 415 | ||
396 | - | @Callable( | |
397 | - | func claimAndStakeSWOP () = valueOrElse( | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (( | |
416 | + | @Callable(aD) | |
417 | + | func claimAndStakeSWOP () = valueOrElse(aB(), { | |
418 | + | let aJ = toString(aD.caller) | |
419 | + | let ci = aF() | |
420 | + | let bH = ci._1 | |
421 | + | let aH = ci._2 | |
422 | + | let cj = aI(aJ) | |
423 | + | let bx = cj._1 | |
424 | + | let aL = cj._2 | |
425 | + | let bN = aS(aJ) | |
426 | + | let ck = bv(aJ) | |
427 | + | let bz = ck._1 | |
428 | + | let by = ck._2 | |
429 | + | let ch = (bN + by) | |
430 | + | let bP = (bx + ch) | |
431 | + | let bQ = (aL + (ch * 2)) | |
432 | + | let bS = (bH + ch) | |
433 | + | let bT = (aH + (ch * 2)) | |
434 | + | if ((ch == 0)) | |
415 | 435 | then throw("You have 0 available SWOP") | |
416 | - | else [IntegerEntry((toString( | |
436 | + | else [IntegerEntry((toString(aD.caller) + h), (height + ak)), IntegerEntry((toString(aD.caller) + e), bz), IntegerEntry(g, bS), IntegerEntry(j, bT), IntegerEntry((toString(aD.caller) + f), bP), IntegerEntry((toString(aD.caller) + i), bQ), IntegerEntry((aJ + l), 0)] | |
417 | 437 | }) | |
418 | 438 | ||
419 | 439 | ||
420 | 440 | ||
421 | - | @Callable( | |
422 | - | func lockSWOPFromFarming () = valueOrElse( | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | if (( | |
441 | + | @Callable(aD) | |
442 | + | func lockSWOPFromFarming () = valueOrElse(aB(), { | |
443 | + | let cl = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId) | |
444 | + | let bD = cl._1 | |
445 | + | let bE = cl._2 | |
446 | + | if ((aD.caller != af)) | |
427 | 447 | then throw("Only farming can call this function") | |
428 | - | else if (( | |
448 | + | else if ((bE != al)) | |
429 | 449 | then throw("Incorrect pmtAssetId") | |
430 | 450 | else { | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | [IntegerEntry(( | |
451 | + | let aJ = toString(aD.originCaller) | |
452 | + | let aN = aE() | |
453 | + | let cm = aI(aJ) | |
454 | + | let bx = cm._1 | |
455 | + | let aL = cm._2 | |
456 | + | let cn = bv(aJ) | |
457 | + | let bz = cn._1 | |
458 | + | let bM = cn._2 | |
459 | + | let bN = aS(aJ) | |
460 | + | let bO = (bN + bM) | |
461 | + | let bP = (bx + bD) | |
462 | + | let bQ = (aL + (bD * 2)) | |
463 | + | let co = aF() | |
464 | + | let bH = co._1 | |
465 | + | let aH = co._2 | |
466 | + | let bS = (bH + bD) | |
467 | + | let bT = (aH + (bD * 2)) | |
468 | + | [IntegerEntry((aJ + h), (height + ak)), IntegerEntry((aJ + e), bz), IntegerEntry((aJ + f), bP), IntegerEntry((aJ + i), aL), IntegerEntry((aJ + l), bO), IntegerEntry(g, bS), IntegerEntry(j, bT)] | |
449 | 469 | } | |
450 | 470 | }) | |
451 | 471 | ||
452 | 472 | ||
453 | 473 | ||
454 | - | @Callable( | |
455 | - | func updateWeights ( | |
456 | - | let | |
457 | - | let | |
458 | - | if (!(containsElement([ | |
474 | + | @Callable(aD) | |
475 | + | func updateWeights (cp,cq,cr,cs) = valueOrElse(aB(), { | |
476 | + | let ct = 10 | |
477 | + | let cu = valueOrElse(getInteger(this, p), 0) | |
478 | + | if (!(containsElement([ab, ac, ad, ae], aD.callerPublicKey))) | |
459 | 479 | then throw("Only admin can call this function") | |
460 | - | else if ((size( | |
461 | - | then throw(("Max amount of pool is " + toString( | |
462 | - | else if (( | |
480 | + | else if ((size(cp) > ct)) | |
481 | + | then throw(("Max amount of pool is " + toString(ct))) | |
482 | + | else if ((cu >= cr)) | |
463 | 483 | then throw("rewardUpdateHeight <= totalRewardUpdateHeight") | |
464 | - | else if ((height >= | |
484 | + | else if ((height >= cr)) | |
465 | 485 | then throw("height >= rewardUpdateHeight") | |
466 | - | else if ((0 >= | |
486 | + | else if ((0 >= cr)) | |
467 | 487 | then throw("0 >= rewardUpdateHeight ") | |
468 | 488 | else { | |
469 | - | func | |
489 | + | func cv (cw,cx) = (cw + cx) | |
470 | 490 | ||
471 | - | func | |
472 | - | let | |
473 | - | if (if (!( | |
491 | + | func cy (cz,aU) = { | |
492 | + | let cA = br(aU) | |
493 | + | if (if (!(bs(aU))) | |
474 | 494 | then true | |
475 | - | else if (( | |
476 | - | then ( | |
495 | + | else if ((cr != cA)) | |
496 | + | then (cA == cu) | |
477 | 497 | else false) | |
478 | 498 | then { | |
479 | - | let | |
480 | - | IntegerEntry(( | |
499 | + | let cB = bt(aU) | |
500 | + | IntegerEntry((aU + n), cB) :: cz | |
481 | 501 | } | |
482 | 502 | else { | |
483 | - | let | |
484 | - | IntegerEntry(( | |
503 | + | let cB = bu(aU) | |
504 | + | IntegerEntry((aU + n), cB) :: cz | |
485 | 505 | } | |
486 | 506 | } | |
487 | 507 | ||
488 | - | func | |
489 | - | let | |
490 | - | let | |
491 | - | if ((0 > | |
508 | + | func cC (cz,aU) = { | |
509 | + | let cD = value(indexOf(cp, aU)) | |
510 | + | let cB = cq[cD] | |
511 | + | if ((0 > cB)) | |
492 | 512 | then throw("PoolReward < 0") | |
493 | - | else IntegerEntry(( | |
513 | + | else IntegerEntry((aU + m), cB) :: cz | |
494 | 514 | } | |
495 | 515 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | if (( | |
500 | - | then IntegerEntry(( | |
516 | + | func cE (cz,aU) = { | |
517 | + | let cF = cr | |
518 | + | let cG = invoke(af, "updatePoolInterest", [aU], nil) | |
519 | + | if ((cG == cG)) | |
520 | + | then IntegerEntry((aU + o), cF) :: cz | |
501 | 521 | else throw("Strict value is not equal to itself.") | |
502 | 522 | } | |
503 | 523 | ||
504 | - | func | |
505 | - | then if (( | |
506 | - | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString( | |
507 | - | else $Tuple2([IntegerEntry( | |
508 | - | else if (( | |
524 | + | func cH (cI,cs) = if ((cs == 0)) | |
525 | + | then if ((cI > an)) | |
526 | + | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString(cs)) + " ") + toString(cI))) | |
527 | + | else $Tuple2([IntegerEntry(y, cI)], [IntegerEntry(q, cr)]) | |
528 | + | else if ((cs == 1)) | |
509 | 529 | then { | |
510 | - | let | |
511 | - | let | |
512 | - | if ((( | |
513 | - | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString( | |
514 | - | else if (( | |
530 | + | let cJ = valueOrElse(getInteger(this, y), 0) | |
531 | + | let cK = valueOrElse(getInteger(this, q), 0) | |
532 | + | if (((cI + cJ) > an)) | |
533 | + | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString(cs)) + " ") + toString((cI + cJ)))) | |
534 | + | else if ((cK != cr)) | |
515 | 535 | then throw("current rewardUpdateHeight != rewardUpdateHeightFirstPaginationEntry") | |
516 | - | else $Tuple2([IntegerEntry( | |
536 | + | else $Tuple2([IntegerEntry(y, (cI + cJ))], nil) | |
517 | 537 | } | |
518 | - | else if (( | |
538 | + | else if ((cs == 2)) | |
519 | 539 | then { | |
520 | - | let | |
521 | - | let | |
522 | - | if (( | |
540 | + | let cL = (valueOrElse(getInteger(this, y), 0) + cI) | |
541 | + | let cK = valueOrElse(getInteger(this, q), 0) | |
542 | + | if ((cL != an)) | |
523 | 543 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
524 | - | else if (( | |
544 | + | else if ((cK != cr)) | |
525 | 545 | then throw("current rewardUpdateHeight != rewardUpdateHeightFirstPaginationEntry") | |
526 | - | else $Tuple2([IntegerEntry( | |
546 | + | else $Tuple2([IntegerEntry(y, cL)], nil) | |
527 | 547 | } | |
528 | 548 | else throw("Incorrect pagination") | |
529 | 549 | ||
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | func | |
535 | - | then | |
536 | - | else | |
550 | + | let cM = { | |
551 | + | let cN = cp | |
552 | + | let cO = size(cN) | |
553 | + | let cP = nil | |
554 | + | func cQ (cR,cS) = if ((cS >= cO)) | |
555 | + | then cR | |
556 | + | else cy(cR, cN[cS]) | |
537 | 557 | ||
538 | - | func | |
539 | - | then | |
558 | + | func cT (cR,cS) = if ((cS >= cO)) | |
559 | + | then cR | |
540 | 560 | else throw("List size exceeds 10") | |
541 | 561 | ||
542 | - | | |
562 | + | cT(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
543 | 563 | } | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | func | |
549 | - | then | |
550 | - | else | |
564 | + | let cU = { | |
565 | + | let cN = cp | |
566 | + | let cO = size(cN) | |
567 | + | let cP = nil | |
568 | + | func cV (cR,cS) = if ((cS >= cO)) | |
569 | + | then cR | |
570 | + | else cC(cR, cN[cS]) | |
551 | 571 | ||
552 | - | func | |
553 | - | then | |
572 | + | func cW (cR,cS) = if ((cS >= cO)) | |
573 | + | then cR | |
554 | 574 | else throw("List size exceeds 10") | |
555 | 575 | ||
556 | - | | |
576 | + | cW(cV(cV(cV(cV(cV(cV(cV(cV(cV(cV(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
557 | 577 | } | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | func | |
563 | - | then | |
564 | - | else | |
578 | + | let cX = { | |
579 | + | let cN = cp | |
580 | + | let cO = size(cN) | |
581 | + | let cP = nil | |
582 | + | func cY (cR,cS) = if ((cS >= cO)) | |
583 | + | then cR | |
584 | + | else cE(cR, cN[cS]) | |
565 | 585 | ||
566 | - | func | |
567 | - | then | |
586 | + | func cZ (cR,cS) = if ((cS >= cO)) | |
587 | + | then cR | |
568 | 588 | else throw("List size exceeds 10") | |
569 | 589 | ||
570 | - | | |
590 | + | cZ(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
571 | 591 | } | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | func | |
577 | - | then | |
578 | - | else | |
592 | + | let da = { | |
593 | + | let cN = cq | |
594 | + | let cO = size(cN) | |
595 | + | let cP = 0 | |
596 | + | func db (cR,cS) = if ((cS >= cO)) | |
597 | + | then cR | |
598 | + | else cv(cR, cN[cS]) | |
579 | 599 | ||
580 | - | func | |
581 | - | then | |
600 | + | func dc (cR,cS) = if ((cS >= cO)) | |
601 | + | then cR | |
582 | 602 | else throw("List size exceeds 10") | |
583 | 603 | ||
584 | - | | |
604 | + | dc(db(db(db(db(db(db(db(db(db(db(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
585 | 605 | } | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | then [IntegerEntry( | |
606 | + | let dd = cH(da, cs) | |
607 | + | let de = dd._1 | |
608 | + | let cK = dd._2 | |
609 | + | let df = if ((cs == 2)) | |
610 | + | then [IntegerEntry(p, cr)] | |
591 | 611 | else nil | |
592 | - | if ((height > | |
612 | + | if ((height > cr)) | |
593 | 613 | then throw("rewardUpdateHeight < height") | |
594 | - | else ((((( | |
614 | + | else (((((cM ++ cU) ++ cX) ++ de) ++ df) ++ cK) | |
595 | 615 | } | |
596 | 616 | }) | |
597 | 617 | ||
598 | 618 | ||
599 | 619 | ||
600 | - | @Callable( | |
601 | - | func shutdown () = valueOrElse( | |
602 | - | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, | |
603 | - | else | |
620 | + | @Callable(aD) | |
621 | + | func shutdown () = valueOrElse(aC(aD), if (!(av)) | |
622 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
623 | + | else az("Paused by admin")) | |
604 | 624 | ||
605 | 625 | ||
606 | 626 | ||
607 | - | @Callable( | |
608 | - | func activate () = valueOrElse( | |
627 | + | @Callable(aD) | |
628 | + | func activate () = valueOrElse(aC(aD), if (av) | |
609 | 629 | then throw("DApp is already active") | |
610 | - | else [BooleanEntry(a, true), DeleteEntry( | |
630 | + | else [BooleanEntry(a, true), DeleteEntry(c)]) | |
611 | 631 | ||
612 | 632 | ||
613 | - | @Verifier( | |
614 | - | func | |
615 | - | let | |
633 | + | @Verifier(dg) | |
634 | + | func dh () = { | |
635 | + | let di = if (sigVerify(dg.bodyBytes, dg.proofs[0], ab)) | |
616 | 636 | then 1 | |
617 | 637 | else 0 | |
618 | - | let | |
638 | + | let dj = if (sigVerify(dg.bodyBytes, dg.proofs[1], ac)) | |
619 | 639 | then 1 | |
620 | 640 | else 0 | |
621 | - | let | |
641 | + | let dk = if (sigVerify(dg.bodyBytes, dg.proofs[2], ad)) | |
622 | 642 | then 1 | |
623 | 643 | else 0 | |
624 | - | ((( | |
644 | + | (((di + dj) + dk) >= 2) | |
625 | 645 | } | |
626 | 646 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | - | let b = " | |
6 | + | let b = "active_all_contracts" | |
7 | 7 | ||
8 | - | let c = " | |
8 | + | let c = "shutdown_cause" | |
9 | 9 | ||
10 | - | let d = " | |
10 | + | let d = "last_interest" | |
11 | 11 | ||
12 | - | let e = "_ | |
12 | + | let e = "_last_interest" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "_SWOP_amount" | |
15 | 15 | ||
16 | - | let g = "_SWOP_ | |
16 | + | let g = "total_SWOP_amount" | |
17 | 17 | ||
18 | - | let h = "_ | |
18 | + | let h = "_SWOP_unlock_height" | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "_GSwop_amount" | |
21 | 21 | ||
22 | - | let j = " | |
22 | + | let j = "total_GSwop_amount" | |
23 | 23 | ||
24 | - | let k = "_user_ | |
24 | + | let k = "_user_total_vote_gSWOP" | |
25 | 25 | ||
26 | - | let l = "_ | |
26 | + | let l = "_user_available_for_claim" | |
27 | 27 | ||
28 | - | let m = "_ | |
28 | + | let m = "_current_pool_fraction_reward" | |
29 | 29 | ||
30 | - | let n = "_pool_reward | |
30 | + | let n = "_previous_pool_fraction_reward" | |
31 | 31 | ||
32 | - | let o = "reward_update_height" | |
32 | + | let o = "_pool_reward_update_height" | |
33 | 33 | ||
34 | - | let p = "reward_update_height | |
34 | + | let p = "reward_update_height" | |
35 | 35 | ||
36 | - | let q = "_ | |
36 | + | let q = "reward_update_height_first_pagination" | |
37 | 37 | ||
38 | - | let r = "_vote_ | |
38 | + | let r = "_vote_no" | |
39 | 39 | ||
40 | - | let s = "_ | |
40 | + | let s = "_vote_yes" | |
41 | 41 | ||
42 | - | let t = "_ | |
42 | + | let t = "_status" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "_finish_height" | |
45 | 45 | ||
46 | - | let v = "voting_active_cell_ | |
46 | + | let v = "voting_active_cell_1" | |
47 | 47 | ||
48 | - | let w = "voting_active_cell_ | |
48 | + | let w = "voting_active_cell_2" | |
49 | 49 | ||
50 | - | let x = " | |
50 | + | let x = "voting_active_cell_3" | |
51 | 51 | ||
52 | - | let y = "_ | |
52 | + | let y = "sum_reward_current" | |
53 | 53 | ||
54 | - | let z = "_ | |
54 | + | let z = "_bought_tickets" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "_swop_per_ticket" | |
57 | 57 | ||
58 | - | let B = "_ | |
58 | + | let B = "launchpad_active_id" | |
59 | 59 | ||
60 | - | let C = "_ | |
60 | + | let C = "_duration" | |
61 | 61 | ||
62 | - | let D = "start_height" | |
62 | + | let D = "_start_height" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "start_height" | |
65 | 65 | ||
66 | - | let F = "period | |
66 | + | let F = "base_period" | |
67 | 67 | ||
68 | - | let G = "_ | |
68 | + | let G = "period_length" | |
69 | 69 | ||
70 | - | let H = "_ | |
70 | + | let H = "_user_total_struc" | |
71 | 71 | ||
72 | - | let I = " | |
72 | + | let I = "_freeze_swop_duration" | |
73 | 73 | ||
74 | - | let J = " | |
74 | + | let J = "SWOP_id" | |
75 | 75 | ||
76 | - | let K = " | |
76 | + | let K = "airdrop_fee" | |
77 | 77 | ||
78 | - | let L = "admin_pub_ | |
78 | + | let L = "admin_pub_1" | |
79 | 79 | ||
80 | - | let M = "admin_pub_ | |
80 | + | let M = "admin_pub_2" | |
81 | 81 | ||
82 | - | let N = " | |
82 | + | let N = "admin_pub_3" | |
83 | 83 | ||
84 | - | let O = " | |
84 | + | let O = "money_box_pub_key" | |
85 | 85 | ||
86 | - | let P = " | |
86 | + | let P = "farming_address" | |
87 | 87 | ||
88 | - | let Q = "voting_ | |
88 | + | let Q = "voting_address" | |
89 | 89 | ||
90 | - | let R = " | |
90 | + | let R = "voting_new_pool_address" | |
91 | 91 | ||
92 | - | let S = " | |
92 | + | let S = "launchpad_address" | |
93 | 93 | ||
94 | - | let T = | |
94 | + | let T = "airdrop_fee_money_box" | |
95 | 95 | ||
96 | - | func U (V) = { | |
97 | - | let W = getString(T, V) | |
98 | - | if ($isInstanceOf(W, "String")) | |
96 | + | let U = "pool_" | |
97 | + | ||
98 | + | let V = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
99 | + | ||
100 | + | func W (X) = { | |
101 | + | let Y = getString(V, X) | |
102 | + | if ($isInstanceOf(Y, "String")) | |
99 | 103 | then { | |
100 | - | let | |
101 | - | fromBase58String( | |
104 | + | let Z = Y | |
105 | + | fromBase58String(Z) | |
102 | 106 | } | |
103 | 107 | else { | |
104 | - | let | |
105 | - | throw(( | |
108 | + | let aa = Y | |
109 | + | throw((X + "is empty")) | |
106 | 110 | } | |
107 | 111 | } | |
108 | 112 | ||
109 | 113 | ||
110 | - | let | |
114 | + | let ab = W(L) | |
111 | 115 | ||
112 | - | let | |
116 | + | let ac = W(M) | |
113 | 117 | ||
114 | - | let | |
118 | + | let ad = W(N) | |
115 | 119 | ||
116 | - | let | |
120 | + | let ae = W(O) | |
117 | 121 | ||
118 | - | let | |
122 | + | let af = Address(W(P)) | |
119 | 123 | ||
120 | - | let | |
124 | + | let ag = Address(W(Q)) | |
121 | 125 | ||
122 | - | let | |
126 | + | let ah = Address(W(R)) | |
123 | 127 | ||
124 | - | let | |
128 | + | let ai = Address(W(S)) | |
125 | 129 | ||
126 | - | let | |
130 | + | let aj = Address(W(T)) | |
127 | 131 | ||
128 | - | let | |
132 | + | let ak = (10102 * 4) | |
129 | 133 | ||
130 | - | let | |
134 | + | let al = fromBase58String(getStringValue(af, J)) | |
131 | 135 | ||
132 | - | let | |
136 | + | let am = 100000000 | |
133 | 137 | ||
134 | - | let | |
138 | + | let an = 10000000000 | |
135 | 139 | ||
136 | - | let | |
140 | + | let ao = 1000000 | |
137 | 141 | ||
138 | - | let | |
142 | + | let ap = valueOrErrorMessage(getInteger(ag, F), "Empty kBasePeriod at voting contract") | |
139 | 143 | ||
140 | - | let | |
144 | + | let aq = valueOrErrorMessage(getInteger(ag, E), "Empty kStartHeight at voting contract") | |
141 | 145 | ||
142 | - | let | |
146 | + | let ar = valueOrErrorMessage(getInteger(ag, G), "Empty kPeriodLength at voting contract") | |
143 | 147 | ||
144 | - | let | |
148 | + | let as = valueOrElse(getString(ah, v), "") | |
145 | 149 | ||
146 | - | let | |
150 | + | let at = valueOrElse(getString(ah, w), "") | |
147 | 151 | ||
148 | - | let | |
152 | + | let au = valueOrElse(getString(ah, x), "") | |
149 | 153 | ||
150 | - | let | |
154 | + | let av = valueOrElse(getBoolean(this, a), true) | |
151 | 155 | ||
152 | - | let | |
156 | + | let aw = valueOrElse(getBoolean(V, b), true) | |
153 | 157 | ||
154 | - | let | |
158 | + | let ax = getIntegerValue(V, K) | |
155 | 159 | ||
156 | - | func aw (ax) = [BooleanEntry(a, false), StringEntry(b, ax)] | |
160 | + | let ay = (ap + ((height - aq) / ar)) | |
161 | + | ||
162 | + | func az (aA) = [BooleanEntry(a, false), StringEntry(c, aA)] | |
157 | 163 | ||
158 | 164 | ||
159 | - | func ay () = if (at) | |
165 | + | func aB () = if (if (av) | |
166 | + | then aw | |
167 | + | else false) | |
160 | 168 | then unit | |
161 | 169 | else throw("DApp is inactive at this moment") | |
162 | 170 | ||
163 | 171 | ||
164 | - | func | |
172 | + | func aC (aD) = if (containsElement([ab, ac, ad], aD.callerPublicKey)) | |
165 | 173 | then unit | |
166 | 174 | else throw("Only admin can call this function") | |
167 | 175 | ||
168 | 176 | ||
169 | - | func | |
177 | + | func aE () = valueOrElse(getInteger(this, d), 0) | |
170 | 178 | ||
171 | 179 | ||
172 | - | func | |
173 | - | let | |
174 | - | let | |
175 | - | $Tuple2( | |
180 | + | func aF () = { | |
181 | + | let aG = valueOrElse(getInteger(this, g), 0) | |
182 | + | let aH = valueOrElse(getInteger(this, j), aG) | |
183 | + | $Tuple2(aG, aH) | |
176 | 184 | } | |
177 | 185 | ||
178 | 186 | ||
179 | - | func | |
180 | - | let | |
181 | - | let | |
182 | - | $Tuple2( | |
187 | + | func aI (aJ) = { | |
188 | + | let aK = valueOrElse(getInteger(this, (aJ + f)), 0) | |
189 | + | let aL = valueOrElse(getInteger(this, (aJ + i)), aK) | |
190 | + | $Tuple2(aK, aL) | |
183 | 191 | } | |
184 | 192 | ||
185 | 193 | ||
186 | - | func | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | $Tuple3( | |
194 | + | func aM (aJ,aN) = { | |
195 | + | let aO = aI(aJ) | |
196 | + | let aP = aO._1 | |
197 | + | let aQ = aO._2 | |
198 | + | let aR = valueOrElse(getInteger(this, (aJ + e)), aN) | |
199 | + | $Tuple3(aR, aP, aQ) | |
192 | 200 | } | |
193 | 201 | ||
194 | 202 | ||
195 | - | func | |
203 | + | func aS (aJ) = valueOrElse(getInteger(this, (aJ + l)), 0) | |
196 | 204 | ||
197 | 205 | ||
198 | - | func | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | if ((0 > | |
206 | + | func aT (aU,aJ) = { | |
207 | + | let aV = valueOrElse(getInteger(ah, aU), -1) | |
208 | + | let aW = valueOrElse(getInteger(ah, (toString(aV) + u)), 0) | |
209 | + | let aX = valueOrElse(getBoolean(ah, (toString(aV) + t)), true) | |
210 | + | let aY = height | |
211 | + | if ((0 > aV)) | |
204 | 212 | then 0 | |
205 | - | else if (!( | |
213 | + | else if (!(aX)) | |
206 | 214 | then 0 | |
207 | - | else if (( | |
208 | - | then (valueOrElse(getInteger( | |
215 | + | else if ((aW > aY)) | |
216 | + | then (valueOrElse(getInteger(ah, (((toString(aJ) + "_") + toString(aV)) + s)), 0) + valueOrElse(getInteger(ah, (((toString(aJ) + "_") + toString(aV)) + r)), 0)) | |
209 | 217 | else 0 | |
210 | 218 | } | |
211 | 219 | ||
212 | 220 | ||
213 | - | func | |
214 | - | let | |
215 | - | max( | |
221 | + | func aZ (aJ) = { | |
222 | + | let ba = [aT(as, aJ), aT(at, aJ), aT(au, aJ)] | |
223 | + | max(ba) | |
216 | 224 | } | |
217 | 225 | ||
218 | 226 | ||
219 | - | func | |
220 | - | let | |
221 | - | if (( | |
227 | + | func bb (aJ) = { | |
228 | + | let bc = toString(valueOrElse(getInteger(ai, B), 0)) | |
229 | + | if ((bc == "0")) | |
222 | 230 | then 0 | |
223 | 231 | else { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if ((height > | |
232 | + | let bd = valueOrElse(getInteger(ai, (bc + D)), 0) | |
233 | + | let be = valueOrElse(getInteger(ai, (bc + C)), 0) | |
234 | + | let bf = valueOrElse(getInteger(ai, (bc + I)), 0) | |
235 | + | let bg = ((bd + be) + bf) | |
236 | + | if ((height > bg)) | |
229 | 237 | then 0 | |
230 | 238 | else { | |
231 | - | let | |
232 | - | let | |
233 | - | ( | |
239 | + | let bh = valueOrElse(getInteger(ai, (((toString(aJ) + "_") + bc) + z)), 0) | |
240 | + | let bi = valueOrElse(getInteger(ai, (bc + A)), 0) | |
241 | + | (bh * bi) | |
234 | 242 | } | |
235 | 243 | } | |
236 | 244 | } | |
237 | 245 | ||
238 | 246 | ||
239 | - | func | |
240 | - | let | |
247 | + | func bj (aJ) = { | |
248 | + | let bk = if (isDefined(getString(ag, (toString(aJ) + H)))) | |
241 | 249 | then { | |
242 | - | let | |
243 | - | $Tuple3(parseIntValue( | |
250 | + | let bl = split(valueOrErrorMessage(getString(ag, (toString(aJ) + H)), "Empty kUserTotalStruc"), "_") | |
251 | + | $Tuple3(parseIntValue(bl[0]), parseIntValue(bl[1]), parseIntValue(bl[2])) | |
244 | 252 | } | |
245 | 253 | else { | |
246 | - | let | |
247 | - | $Tuple3( | |
254 | + | let bm = valueOrElse(getInteger(ag, (toString(aJ) + k)), 0) | |
255 | + | $Tuple3(bm, 0, ay) | |
248 | 256 | } | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | then | |
257 | + | let bn = bk._1 | |
258 | + | let bo = bk._2 | |
259 | + | let bp = bk._3 | |
260 | + | let bq = if ((bp == ay)) | |
261 | + | then bo | |
254 | 262 | else 0 | |
255 | - | $Tuple2( | |
263 | + | $Tuple2(bn, bq) | |
256 | 264 | } | |
257 | 265 | ||
258 | 266 | ||
259 | - | func | |
267 | + | func br (aU) = valueOrElse(getInteger(this, (aU + o)), 0) | |
260 | 268 | ||
261 | 269 | ||
262 | - | func | |
270 | + | func bs (aU) = isDefined(getInteger(this, (aU + o))) | |
263 | 271 | ||
264 | 272 | ||
265 | - | func | |
273 | + | func bt (aU) = valueOrElse(getInteger(this, (aU + m)), 0) | |
266 | 274 | ||
267 | 275 | ||
268 | - | func | |
276 | + | func bu (aU) = valueOrElse(getInteger(this, (aU + n)), 0) | |
269 | 277 | ||
270 | 278 | ||
271 | - | func | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | $Tuple2( | |
279 | + | func bv (aJ) = { | |
280 | + | let aN = aE() | |
281 | + | let bw = aM(aJ, aN) | |
282 | + | let aR = bw._1 | |
283 | + | let bx = bw._2 | |
284 | + | let aQ = bw._3 | |
285 | + | let by = fraction(aQ, (aN - aR), am) | |
286 | + | let bz = aN | |
287 | + | $Tuple2(bz, by) | |
280 | 288 | } | |
281 | 289 | ||
282 | 290 | ||
283 | - | @Callable(aA) | |
284 | - | func airDrop () = valueOrElse(ay(), { | |
285 | - | let bx = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId) | |
286 | - | let by = bx._1 | |
287 | - | let bz = bx._2 | |
288 | - | if ((bz != aj)) | |
291 | + | func bA (bB) = if (isDefined(getString(V, (U + bB)))) | |
292 | + | then unit | |
293 | + | else throw("DApp is not registered pool") | |
294 | + | ||
295 | + | ||
296 | + | @Callable(aD) | |
297 | + | func addPool (bB) = valueOrElse(aC(aD), valueOrElse(aB(), valueOrElse(bA(bB), if (isDefined(getInteger(this, (bB + m)))) | |
298 | + | then throw("Pool already in governance") | |
299 | + | else [IntegerEntry((bB + m), 0), IntegerEntry((bB + n), 0), IntegerEntry((bB + o), getIntegerValue(this, p))]))) | |
300 | + | ||
301 | + | ||
302 | + | ||
303 | + | @Callable(aD) | |
304 | + | func airDrop () = valueOrElse(aB(), { | |
305 | + | let bC = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId) | |
306 | + | let bD = bC._1 | |
307 | + | let bE = bC._2 | |
308 | + | if ((bE != al)) | |
289 | 309 | then throw("Incorrect pmtAssetId") | |
290 | 310 | else { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | [IntegerEntry( | |
311 | + | let bF = fraction(bD, ax, ao, CEILING) | |
312 | + | let bG = aF() | |
313 | + | let bH = bG._1 | |
314 | + | let aH = bG._2 | |
315 | + | let aN = aE() | |
316 | + | let bI = (aN + fraction((bD - bF), am, aH)) | |
317 | + | [IntegerEntry(d, bI), ScriptTransfer(aj, bF, al)] | |
298 | 318 | } | |
299 | 319 | }) | |
300 | 320 | ||
301 | 321 | ||
302 | 322 | ||
303 | - | @Callable( | |
304 | - | func lockSWOP () = valueOrElse( | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
323 | + | @Callable(aD) | |
324 | + | func lockSWOP () = valueOrElse(aB(), { | |
325 | + | let bJ = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId) | |
326 | + | let bD = bJ._1 | |
327 | + | let bE = bJ._2 | |
328 | + | if ((bE != al)) | |
309 | 329 | then throw("Incorrect pmtAssetId") | |
310 | 330 | else { | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | [IntegerEntry(( | |
331 | + | let aJ = toString(aD.caller) | |
332 | + | let aN = aE() | |
333 | + | let bK = aI(aJ) | |
334 | + | let bx = bK._1 | |
335 | + | let aL = bK._2 | |
336 | + | let bL = bv(aJ) | |
337 | + | let bz = bL._1 | |
338 | + | let bM = bL._2 | |
339 | + | let bN = aS(aJ) | |
340 | + | let bO = (bN + bM) | |
341 | + | let bP = (bx + bD) | |
342 | + | let bQ = (aL + bD) | |
343 | + | let bR = aF() | |
344 | + | let bH = bR._1 | |
345 | + | let aH = bR._2 | |
346 | + | let bS = (bH + bD) | |
347 | + | let bT = (aH + bD) | |
348 | + | [IntegerEntry((aJ + h), (height + ak)), IntegerEntry((aJ + e), bz), IntegerEntry((aJ + f), bP), IntegerEntry((aJ + i), bQ), IntegerEntry((aJ + l), bO), IntegerEntry(g, bS), IntegerEntry(j, bT)] | |
329 | 349 | } | |
330 | 350 | }) | |
331 | 351 | ||
332 | 352 | ||
333 | 353 | ||
334 | - | @Callable( | |
335 | - | func withdrawSWOP ( | |
336 | - | let | |
337 | - | let | |
338 | - | if ((0 >= | |
354 | + | @Callable(aD) | |
355 | + | func withdrawSWOP (bU) = valueOrElse(aB(), { | |
356 | + | let aJ = toString(aD.caller) | |
357 | + | let bV = valueOrElse(getInteger(this, (aJ + h)), 0) | |
358 | + | if ((0 >= bU)) | |
339 | 359 | then throw("withdrawAmount <= 0") | |
340 | - | else if (( | |
341 | - | then throw(("You can't withdraw till " + toString( | |
360 | + | else if ((bV > height)) | |
361 | + | then throw(("You can't withdraw till " + toString(bV))) | |
342 | 362 | else { | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | if (if (if ((0 > | |
363 | + | let bW = aF() | |
364 | + | let bH = bW._1 | |
365 | + | let aH = bW._2 | |
366 | + | let bX = aI(aJ) | |
367 | + | let bx = bX._1 | |
368 | + | let aL = bX._2 | |
369 | + | let bY = bv(aJ) | |
370 | + | let bz = bY._1 | |
371 | + | let bM = bY._2 | |
372 | + | let bZ = bj(aD.caller) | |
373 | + | let ca = bZ._1 | |
374 | + | let cb = bZ._2 | |
375 | + | let cc = aZ(aD.caller) | |
376 | + | let cd = bb(aD.caller) | |
377 | + | if (if (if ((0 > cb)) | |
358 | 378 | then true | |
359 | - | else (0 > | |
379 | + | else (0 > ca)) | |
360 | 380 | then true | |
361 | - | else (0 > | |
381 | + | else (0 > cc)) | |
362 | 382 | then throw("userUnvoteAmount < 0 || userVoteAmount < 0 || userVoteAmountForNewPool < 0") | |
363 | 383 | else { | |
364 | - | let | |
365 | - | if (( | |
384 | + | let ce = (bx - max([cc, (ca + cb), cd])) | |
385 | + | if ((bU > ce)) | |
366 | 386 | then throw("withdrawAmount > availableToUnstake") | |
367 | 387 | else { | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | [IntegerEntry(( | |
388 | + | let bN = aS(aJ) | |
389 | + | let bO = (bN + bM) | |
390 | + | let bS = (bH - bU) | |
391 | + | let cf = (bx - bU) | |
392 | + | let bT = ((aH - aL) + cf) | |
393 | + | [IntegerEntry((aJ + e), bz), IntegerEntry((aJ + f), cf), IntegerEntry((aJ + i), cf), IntegerEntry((aJ + l), bO), IntegerEntry(g, bS), IntegerEntry(j, bT), ScriptTransfer(aD.caller, bU, al)] | |
374 | 394 | } | |
375 | 395 | } | |
376 | 396 | } | |
377 | 397 | }) | |
378 | 398 | ||
379 | 399 | ||
380 | 400 | ||
381 | - | @Callable( | |
382 | - | func claimAndWithdrawSWOP () = valueOrElse( | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | if (( | |
401 | + | @Callable(aD) | |
402 | + | func claimAndWithdrawSWOP () = valueOrElse(aB(), { | |
403 | + | let aJ = toString(aD.caller) | |
404 | + | let bN = aS(aJ) | |
405 | + | let cg = bv(aJ) | |
406 | + | let bz = cg._1 | |
407 | + | let by = cg._2 | |
408 | + | let ch = (bN + by) | |
409 | + | if ((ch == 0)) | |
390 | 410 | then throw("You have 0 available SWOP") | |
391 | - | else [IntegerEntry(( | |
411 | + | else [IntegerEntry((aJ + e), bz), IntegerEntry((aJ + l), 0), ScriptTransfer(aD.caller, ch, al)] | |
392 | 412 | }) | |
393 | 413 | ||
394 | 414 | ||
395 | 415 | ||
396 | - | @Callable( | |
397 | - | func claimAndStakeSWOP () = valueOrElse( | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (( | |
416 | + | @Callable(aD) | |
417 | + | func claimAndStakeSWOP () = valueOrElse(aB(), { | |
418 | + | let aJ = toString(aD.caller) | |
419 | + | let ci = aF() | |
420 | + | let bH = ci._1 | |
421 | + | let aH = ci._2 | |
422 | + | let cj = aI(aJ) | |
423 | + | let bx = cj._1 | |
424 | + | let aL = cj._2 | |
425 | + | let bN = aS(aJ) | |
426 | + | let ck = bv(aJ) | |
427 | + | let bz = ck._1 | |
428 | + | let by = ck._2 | |
429 | + | let ch = (bN + by) | |
430 | + | let bP = (bx + ch) | |
431 | + | let bQ = (aL + (ch * 2)) | |
432 | + | let bS = (bH + ch) | |
433 | + | let bT = (aH + (ch * 2)) | |
434 | + | if ((ch == 0)) | |
415 | 435 | then throw("You have 0 available SWOP") | |
416 | - | else [IntegerEntry((toString( | |
436 | + | else [IntegerEntry((toString(aD.caller) + h), (height + ak)), IntegerEntry((toString(aD.caller) + e), bz), IntegerEntry(g, bS), IntegerEntry(j, bT), IntegerEntry((toString(aD.caller) + f), bP), IntegerEntry((toString(aD.caller) + i), bQ), IntegerEntry((aJ + l), 0)] | |
417 | 437 | }) | |
418 | 438 | ||
419 | 439 | ||
420 | 440 | ||
421 | - | @Callable( | |
422 | - | func lockSWOPFromFarming () = valueOrElse( | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | if (( | |
441 | + | @Callable(aD) | |
442 | + | func lockSWOPFromFarming () = valueOrElse(aB(), { | |
443 | + | let cl = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId) | |
444 | + | let bD = cl._1 | |
445 | + | let bE = cl._2 | |
446 | + | if ((aD.caller != af)) | |
427 | 447 | then throw("Only farming can call this function") | |
428 | - | else if (( | |
448 | + | else if ((bE != al)) | |
429 | 449 | then throw("Incorrect pmtAssetId") | |
430 | 450 | else { | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | [IntegerEntry(( | |
451 | + | let aJ = toString(aD.originCaller) | |
452 | + | let aN = aE() | |
453 | + | let cm = aI(aJ) | |
454 | + | let bx = cm._1 | |
455 | + | let aL = cm._2 | |
456 | + | let cn = bv(aJ) | |
457 | + | let bz = cn._1 | |
458 | + | let bM = cn._2 | |
459 | + | let bN = aS(aJ) | |
460 | + | let bO = (bN + bM) | |
461 | + | let bP = (bx + bD) | |
462 | + | let bQ = (aL + (bD * 2)) | |
463 | + | let co = aF() | |
464 | + | let bH = co._1 | |
465 | + | let aH = co._2 | |
466 | + | let bS = (bH + bD) | |
467 | + | let bT = (aH + (bD * 2)) | |
468 | + | [IntegerEntry((aJ + h), (height + ak)), IntegerEntry((aJ + e), bz), IntegerEntry((aJ + f), bP), IntegerEntry((aJ + i), aL), IntegerEntry((aJ + l), bO), IntegerEntry(g, bS), IntegerEntry(j, bT)] | |
449 | 469 | } | |
450 | 470 | }) | |
451 | 471 | ||
452 | 472 | ||
453 | 473 | ||
454 | - | @Callable( | |
455 | - | func updateWeights ( | |
456 | - | let | |
457 | - | let | |
458 | - | if (!(containsElement([ | |
474 | + | @Callable(aD) | |
475 | + | func updateWeights (cp,cq,cr,cs) = valueOrElse(aB(), { | |
476 | + | let ct = 10 | |
477 | + | let cu = valueOrElse(getInteger(this, p), 0) | |
478 | + | if (!(containsElement([ab, ac, ad, ae], aD.callerPublicKey))) | |
459 | 479 | then throw("Only admin can call this function") | |
460 | - | else if ((size( | |
461 | - | then throw(("Max amount of pool is " + toString( | |
462 | - | else if (( | |
480 | + | else if ((size(cp) > ct)) | |
481 | + | then throw(("Max amount of pool is " + toString(ct))) | |
482 | + | else if ((cu >= cr)) | |
463 | 483 | then throw("rewardUpdateHeight <= totalRewardUpdateHeight") | |
464 | - | else if ((height >= | |
484 | + | else if ((height >= cr)) | |
465 | 485 | then throw("height >= rewardUpdateHeight") | |
466 | - | else if ((0 >= | |
486 | + | else if ((0 >= cr)) | |
467 | 487 | then throw("0 >= rewardUpdateHeight ") | |
468 | 488 | else { | |
469 | - | func | |
489 | + | func cv (cw,cx) = (cw + cx) | |
470 | 490 | ||
471 | - | func | |
472 | - | let | |
473 | - | if (if (!( | |
491 | + | func cy (cz,aU) = { | |
492 | + | let cA = br(aU) | |
493 | + | if (if (!(bs(aU))) | |
474 | 494 | then true | |
475 | - | else if (( | |
476 | - | then ( | |
495 | + | else if ((cr != cA)) | |
496 | + | then (cA == cu) | |
477 | 497 | else false) | |
478 | 498 | then { | |
479 | - | let | |
480 | - | IntegerEntry(( | |
499 | + | let cB = bt(aU) | |
500 | + | IntegerEntry((aU + n), cB) :: cz | |
481 | 501 | } | |
482 | 502 | else { | |
483 | - | let | |
484 | - | IntegerEntry(( | |
503 | + | let cB = bu(aU) | |
504 | + | IntegerEntry((aU + n), cB) :: cz | |
485 | 505 | } | |
486 | 506 | } | |
487 | 507 | ||
488 | - | func | |
489 | - | let | |
490 | - | let | |
491 | - | if ((0 > | |
508 | + | func cC (cz,aU) = { | |
509 | + | let cD = value(indexOf(cp, aU)) | |
510 | + | let cB = cq[cD] | |
511 | + | if ((0 > cB)) | |
492 | 512 | then throw("PoolReward < 0") | |
493 | - | else IntegerEntry(( | |
513 | + | else IntegerEntry((aU + m), cB) :: cz | |
494 | 514 | } | |
495 | 515 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | if (( | |
500 | - | then IntegerEntry(( | |
516 | + | func cE (cz,aU) = { | |
517 | + | let cF = cr | |
518 | + | let cG = invoke(af, "updatePoolInterest", [aU], nil) | |
519 | + | if ((cG == cG)) | |
520 | + | then IntegerEntry((aU + o), cF) :: cz | |
501 | 521 | else throw("Strict value is not equal to itself.") | |
502 | 522 | } | |
503 | 523 | ||
504 | - | func | |
505 | - | then if (( | |
506 | - | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString( | |
507 | - | else $Tuple2([IntegerEntry( | |
508 | - | else if (( | |
524 | + | func cH (cI,cs) = if ((cs == 0)) | |
525 | + | then if ((cI > an)) | |
526 | + | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString(cs)) + " ") + toString(cI))) | |
527 | + | else $Tuple2([IntegerEntry(y, cI)], [IntegerEntry(q, cr)]) | |
528 | + | else if ((cs == 1)) | |
509 | 529 | then { | |
510 | - | let | |
511 | - | let | |
512 | - | if ((( | |
513 | - | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString( | |
514 | - | else if (( | |
530 | + | let cJ = valueOrElse(getInteger(this, y), 0) | |
531 | + | let cK = valueOrElse(getInteger(this, q), 0) | |
532 | + | if (((cI + cJ) > an)) | |
533 | + | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString(cs)) + " ") + toString((cI + cJ)))) | |
534 | + | else if ((cK != cr)) | |
515 | 535 | then throw("current rewardUpdateHeight != rewardUpdateHeightFirstPaginationEntry") | |
516 | - | else $Tuple2([IntegerEntry( | |
536 | + | else $Tuple2([IntegerEntry(y, (cI + cJ))], nil) | |
517 | 537 | } | |
518 | - | else if (( | |
538 | + | else if ((cs == 2)) | |
519 | 539 | then { | |
520 | - | let | |
521 | - | let | |
522 | - | if (( | |
540 | + | let cL = (valueOrElse(getInteger(this, y), 0) + cI) | |
541 | + | let cK = valueOrElse(getInteger(this, q), 0) | |
542 | + | if ((cL != an)) | |
523 | 543 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
524 | - | else if (( | |
544 | + | else if ((cK != cr)) | |
525 | 545 | then throw("current rewardUpdateHeight != rewardUpdateHeightFirstPaginationEntry") | |
526 | - | else $Tuple2([IntegerEntry( | |
546 | + | else $Tuple2([IntegerEntry(y, cL)], nil) | |
527 | 547 | } | |
528 | 548 | else throw("Incorrect pagination") | |
529 | 549 | ||
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | func | |
535 | - | then | |
536 | - | else | |
550 | + | let cM = { | |
551 | + | let cN = cp | |
552 | + | let cO = size(cN) | |
553 | + | let cP = nil | |
554 | + | func cQ (cR,cS) = if ((cS >= cO)) | |
555 | + | then cR | |
556 | + | else cy(cR, cN[cS]) | |
537 | 557 | ||
538 | - | func | |
539 | - | then | |
558 | + | func cT (cR,cS) = if ((cS >= cO)) | |
559 | + | then cR | |
540 | 560 | else throw("List size exceeds 10") | |
541 | 561 | ||
542 | - | | |
562 | + | cT(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cQ(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
543 | 563 | } | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | func | |
549 | - | then | |
550 | - | else | |
564 | + | let cU = { | |
565 | + | let cN = cp | |
566 | + | let cO = size(cN) | |
567 | + | let cP = nil | |
568 | + | func cV (cR,cS) = if ((cS >= cO)) | |
569 | + | then cR | |
570 | + | else cC(cR, cN[cS]) | |
551 | 571 | ||
552 | - | func | |
553 | - | then | |
572 | + | func cW (cR,cS) = if ((cS >= cO)) | |
573 | + | then cR | |
554 | 574 | else throw("List size exceeds 10") | |
555 | 575 | ||
556 | - | | |
576 | + | cW(cV(cV(cV(cV(cV(cV(cV(cV(cV(cV(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
557 | 577 | } | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | func | |
563 | - | then | |
564 | - | else | |
578 | + | let cX = { | |
579 | + | let cN = cp | |
580 | + | let cO = size(cN) | |
581 | + | let cP = nil | |
582 | + | func cY (cR,cS) = if ((cS >= cO)) | |
583 | + | then cR | |
584 | + | else cE(cR, cN[cS]) | |
565 | 585 | ||
566 | - | func | |
567 | - | then | |
586 | + | func cZ (cR,cS) = if ((cS >= cO)) | |
587 | + | then cR | |
568 | 588 | else throw("List size exceeds 10") | |
569 | 589 | ||
570 | - | | |
590 | + | cZ(cY(cY(cY(cY(cY(cY(cY(cY(cY(cY(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
571 | 591 | } | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | func | |
577 | - | then | |
578 | - | else | |
592 | + | let da = { | |
593 | + | let cN = cq | |
594 | + | let cO = size(cN) | |
595 | + | let cP = 0 | |
596 | + | func db (cR,cS) = if ((cS >= cO)) | |
597 | + | then cR | |
598 | + | else cv(cR, cN[cS]) | |
579 | 599 | ||
580 | - | func | |
581 | - | then | |
600 | + | func dc (cR,cS) = if ((cS >= cO)) | |
601 | + | then cR | |
582 | 602 | else throw("List size exceeds 10") | |
583 | 603 | ||
584 | - | | |
604 | + | dc(db(db(db(db(db(db(db(db(db(db(cP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
585 | 605 | } | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | then [IntegerEntry( | |
606 | + | let dd = cH(da, cs) | |
607 | + | let de = dd._1 | |
608 | + | let cK = dd._2 | |
609 | + | let df = if ((cs == 2)) | |
610 | + | then [IntegerEntry(p, cr)] | |
591 | 611 | else nil | |
592 | - | if ((height > | |
612 | + | if ((height > cr)) | |
593 | 613 | then throw("rewardUpdateHeight < height") | |
594 | - | else ((((( | |
614 | + | else (((((cM ++ cU) ++ cX) ++ de) ++ df) ++ cK) | |
595 | 615 | } | |
596 | 616 | }) | |
597 | 617 | ||
598 | 618 | ||
599 | 619 | ||
600 | - | @Callable( | |
601 | - | func shutdown () = valueOrElse( | |
602 | - | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, | |
603 | - | else | |
620 | + | @Callable(aD) | |
621 | + | func shutdown () = valueOrElse(aC(aD), if (!(av)) | |
622 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
623 | + | else az("Paused by admin")) | |
604 | 624 | ||
605 | 625 | ||
606 | 626 | ||
607 | - | @Callable( | |
608 | - | func activate () = valueOrElse( | |
627 | + | @Callable(aD) | |
628 | + | func activate () = valueOrElse(aC(aD), if (av) | |
609 | 629 | then throw("DApp is already active") | |
610 | - | else [BooleanEntry(a, true), DeleteEntry( | |
630 | + | else [BooleanEntry(a, true), DeleteEntry(c)]) | |
611 | 631 | ||
612 | 632 | ||
613 | - | @Verifier( | |
614 | - | func | |
615 | - | let | |
633 | + | @Verifier(dg) | |
634 | + | func dh () = { | |
635 | + | let di = if (sigVerify(dg.bodyBytes, dg.proofs[0], ab)) | |
616 | 636 | then 1 | |
617 | 637 | else 0 | |
618 | - | let | |
638 | + | let dj = if (sigVerify(dg.bodyBytes, dg.proofs[1], ac)) | |
619 | 639 | then 1 | |
620 | 640 | else 0 | |
621 | - | let | |
641 | + | let dk = if (sigVerify(dg.bodyBytes, dg.proofs[2], ad)) | |
622 | 642 | then 1 | |
623 | 643 | else 0 | |
624 | - | ((( | |
644 | + | (((di + dj) + dk) >= 2) | |
625 | 645 | } | |
626 | 646 |
github/deemru/w8io/026f985 414.60 ms ◑