tx · 6g952GSssKSzbLGRs2ZBcD2pBDjE3bHZb6JnRpKpbc6h 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC: -0.01400000 Waves 2021.05.28 11:47 [1545295] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves
{ "type": 13, "id": "6g952GSssKSzbLGRs2ZBcD2pBDjE3bHZb6JnRpKpbc6h", "fee": 1400000, "feeAssetId": null, "timestamp": 1622191705463, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "YewTCM91EQXKM4srf4jTt3pfJDB3J8qCRoxiXbFRQLfFxNYVEjpsHs2zAGS4mcGXmV1UkS8RJaKuD4kecwviT1h" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABVAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAC2tTaGFyZUxpbWl0AgAAABxzaGFyZV9saW1pdF9vbl9maXJzdF9oYXJ2ZXN0AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAca2V5UmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIAAAAdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAAAAAHWtleVJld2FyZFBvb2xGcmFjdGlvblByZXZpb3VzAg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dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm10Q+x", "height": 1545295, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6uoscEBYE8drNmQMLX4JNScjHZTdct89nFPLHNfw7cab Next: F8J4gDDE1dNJMtToxzBBYsf3mFY2h29ai3qV5uuCnhFR Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | ||
10 | 10 | let d = "_total_share_tokens_locked" | |
11 | 11 | ||
12 | - | let e = "_ | |
12 | + | let e = "share_limit_on_first_harvest" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "active" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "_current_pool_fraction_reward" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "_previous_pool_fraction_reward" | |
19 | 19 | ||
20 | - | let i = "reward_ | |
20 | + | let i = "total_reward_per_block_current" | |
21 | 21 | ||
22 | - | let j = "_ | |
22 | + | let j = "total_reward_per_block_previous" | |
23 | 23 | ||
24 | - | let k = "_ | |
24 | + | let k = "reward_update_height" | |
25 | 25 | ||
26 | - | let l = "_ | |
26 | + | let l = "_last_interest" | |
27 | 27 | ||
28 | - | let m = "_last_interest" | |
28 | + | let m = "_last_interest_height" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "_share_tokens_locked" | |
31 | 31 | ||
32 | - | let o = "_ | |
32 | + | let o = "_last_interest" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "SWOP_id" | |
35 | 35 | ||
36 | - | let q = "_ | |
36 | + | let q = "_SWOP_claimed_amount" | |
37 | 37 | ||
38 | - | let r = " | |
38 | + | let r = "_SWOP_last_claimed_amount" | |
39 | 39 | ||
40 | - | let s = " | |
40 | + | let s = "_available_SWOP" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "farming_start_height" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "apy" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "previous_total_vote_SWOP" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "swop_year_emission" | |
49 | 49 | ||
50 | - | let x = "_ | |
50 | + | let x = "A_asset_balance" | |
51 | 51 | ||
52 | - | let y = "_ | |
52 | + | let y = "B_asset_balance" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "_harvest_pool_activeVote_struc" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "_harvest_user_pool_activeVote_struc" | |
57 | 57 | ||
58 | - | let B = " | |
58 | + | let B = "share_limit_on_first_harvest" | |
59 | 59 | ||
60 | - | let C = " | |
60 | + | let C = "A_asset_id" | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "B_asset_id" | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = "first_harvest_height" | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = "first_harvest" | |
67 | 67 | ||
68 | - | let G = Address(base58' | |
68 | + | let G = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
69 | 69 | ||
70 | - | let H = Address(base58' | |
70 | + | let H = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
71 | 71 | ||
72 | - | let I = Address(base58' | |
72 | + | let I = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
73 | 73 | ||
74 | 74 | let J = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
75 | 75 | ||
89 | 89 | ||
90 | 90 | let R = 100000000000 | |
91 | 91 | ||
92 | - | func S (T) = getStringValue(T, | |
92 | + | func S (T) = getStringValue(T, C) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func U (T) = getStringValue(T, | |
95 | + | func U (T) = getStringValue(T, D) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func V (T) = if ((S(T) == "WAVES")) | |
117 | 117 | ||
118 | 118 | let ac = "min_vote_power" | |
119 | 119 | ||
120 | - | let ad = valueOrErrorMessage(getInteger( | |
120 | + | let ad = valueOrErrorMessage(getInteger(I, X), "Empty kBasePeriod") | |
121 | 121 | ||
122 | - | let ae = valueOrErrorMessage(getInteger( | |
122 | + | let ae = valueOrErrorMessage(getInteger(I, Z), "Empty kStartHeight") | |
123 | 123 | ||
124 | - | let af = valueOrErrorMessage(getInteger( | |
124 | + | let af = valueOrErrorMessage(getInteger(I, Y), "Empty kPeriodLength") | |
125 | 125 | ||
126 | - | let ag = valueOrErrorMessage(getInteger( | |
126 | + | let ag = valueOrErrorMessage(getInteger(I, ab), "Empty kDurationFullVotePower") | |
127 | 127 | ||
128 | - | let ah = valueOrErrorMessage(getInteger( | |
128 | + | let ah = valueOrErrorMessage(getInteger(I, ac), "Empty kMinVotePower") | |
129 | 129 | ||
130 | - | let ai = ( | |
130 | + | let ai = getBooleanValue(this, f) | |
131 | 131 | ||
132 | - | ||
132 | + | let aj = (ad + ((height - ae) / af)) | |
133 | 133 | ||
134 | + | func ak (T) = valueOrElse(getIntegerValue(T, B), 0) | |
134 | 135 | ||
135 | - | let ak = getIntegerValue(this, s) | |
136 | 136 | ||
137 | 137 | let al = getIntegerValue(this, u) | |
138 | 138 | ||
139 | - | func am (T) = { | |
140 | - | let an = V(T) | |
141 | - | if ($isInstanceOf(an, "ByteVector")) | |
139 | + | let am = getIntegerValue(this, w) | |
140 | + | ||
141 | + | func an (T) = { | |
142 | + | let ao = V(T) | |
143 | + | if ($isInstanceOf(ao, "ByteVector")) | |
142 | 144 | then { | |
143 | - | let | |
144 | - | value(assetInfo( | |
145 | + | let ap = ao | |
146 | + | value(assetInfo(ap)).name | |
145 | 147 | } | |
146 | - | else if ($isInstanceOf( | |
148 | + | else if ($isInstanceOf(ao, "Unit")) | |
147 | 149 | then { | |
148 | - | let | |
150 | + | let aq = ao | |
149 | 151 | "WAVES" | |
150 | 152 | } | |
151 | 153 | else throw("Match error") | |
152 | 154 | } | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
156 | - | let | |
157 | - | if ($isInstanceOf( | |
157 | + | func ar (T) = { | |
158 | + | let ao = W(T) | |
159 | + | if ($isInstanceOf(ao, "ByteVector")) | |
158 | 160 | then { | |
159 | - | let | |
160 | - | value(assetInfo( | |
161 | + | let ap = ao | |
162 | + | value(assetInfo(ap)).name | |
161 | 163 | } | |
162 | - | else if ($isInstanceOf( | |
164 | + | else if ($isInstanceOf(ao, "Unit")) | |
163 | 165 | then { | |
164 | - | let | |
166 | + | let aq = ao | |
165 | 167 | "WAVES" | |
166 | 168 | } | |
167 | 169 | else throw("Match error") | |
168 | 170 | } | |
169 | 171 | ||
170 | 172 | ||
171 | - | let | |
173 | + | let as = fromBase58String(getStringValue(this, p)) | |
172 | 174 | ||
173 | - | func | |
175 | + | func at (T) = valueOrElse(getBoolean(T, F), false) | |
174 | 176 | ||
175 | 177 | ||
176 | - | func | |
178 | + | func au (T) = valueOrElse(getInteger(T, E), 0) | |
177 | 179 | ||
178 | 180 | ||
179 | - | func | |
181 | + | func av (T) = valueOrErrorMessage(getInteger(T, x), ("No data on the key: " + x)) | |
180 | 182 | ||
181 | 183 | ||
182 | - | func | |
184 | + | func aw (T) = valueOrErrorMessage(getInteger(T, y), ("No data on the key: " + y)) | |
183 | 185 | ||
184 | 186 | ||
185 | - | func | |
187 | + | func ax (T) = valueOrErrorMessage(getInteger(T, e), ("No data on the key: " + e)) | |
186 | 188 | ||
187 | 189 | ||
188 | - | func | |
190 | + | func ay (T) = valueOrErrorMessage(getInteger(this, (T + d)), (("No data on the key: " + T) + d)) | |
189 | 191 | ||
190 | 192 | ||
191 | - | func ay (az) = { | |
192 | - | let an = az | |
193 | - | if ($isInstanceOf(an, "ByteVector")) | |
193 | + | func az (T) = fromBase58String(getStringValue(value(addressFromString(T)), "share_asset_id")) | |
194 | + | ||
195 | + | ||
196 | + | func aA (aB) = { | |
197 | + | let ao = aB | |
198 | + | if ($isInstanceOf(ao, "ByteVector")) | |
194 | 199 | then { | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | $Tuple3( | |
200 | + | let ap = ao | |
201 | + | let aC = toBase58String(ap) | |
202 | + | let aD = valueOrErrorMessage(assetInfo(ap), (("Asset " + aC) + " doesn't exist")) | |
203 | + | $Tuple3(aC, aD.name, aD.decimals) | |
199 | 204 | } | |
200 | - | else if ($isInstanceOf( | |
205 | + | else if ($isInstanceOf(ao, "Unit")) | |
201 | 206 | then { | |
202 | - | let | |
207 | + | let aq = ao | |
203 | 208 | $Tuple3("WAVES", "WAVES", 8) | |
204 | 209 | } | |
205 | 210 | else throw("Match error") | |
206 | 211 | } | |
207 | 212 | ||
208 | 213 | ||
209 | - | func | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | pow(10, 0, | |
214 | + | func aE (aF,aG) = { | |
215 | + | let aH = value(assetInfo(aF)).decimals | |
216 | + | let aI = value(assetInfo(aG)).decimals | |
217 | + | let aJ = ((aI - aH) + 8) | |
218 | + | pow(10, 0, aJ, 0, 0, HALFDOWN) | |
214 | 219 | } | |
215 | 220 | ||
216 | 221 | ||
217 | - | func | |
222 | + | func aK (T,aL) = valueOrElse(getInteger(this, (((T + "_") + toString(aL)) + s)), 0) | |
218 | 223 | ||
219 | 224 | ||
220 | - | func | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if (if (( | |
225 | + | func aM (T) = { | |
226 | + | let aN = valueOrErrorMessage(getInteger(G, i), ((("No data on the key: " + i) + " at address ") + toString(G))) | |
227 | + | let aO = valueOrErrorMessage(getInteger(G, j), ((("No data on the key: " + j) + " at address ") + toString(G))) | |
228 | + | let aP = valueOrErrorMessage(getInteger(G, (T + g)), (((("No data on the key: " + T) + g) + " at address ") + toString(G))) | |
229 | + | let aQ = valueOrErrorMessage(getInteger(G, k), ((("No data on the key: " + k) + " at address ") + toString(G))) | |
230 | + | let aR = valueOrErrorMessage(getInteger(G, (T + h)), (((("No data on the key: " + T) + h) + " at address ") + toString(G))) | |
231 | + | let aS = fraction(aN, aP, L) | |
232 | + | let aT = fraction(aO, aR, L) | |
233 | + | if (if ((aS > aN)) | |
229 | 234 | then true | |
230 | - | else ( | |
235 | + | else (aT > aO)) | |
231 | 236 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
232 | - | else $Tuple3(aQ, | |
237 | + | else $Tuple3(aS, aQ, aT) | |
233 | 238 | } | |
234 | 239 | ||
235 | 240 | ||
236 | - | func | |
237 | - | let | |
238 | - | let | |
239 | - | $Tuple2( | |
241 | + | func aU (T) = { | |
242 | + | let aV = valueOrErrorMessage(getInteger(this, (T + l)), (("No data on the key: " + T) + l)) | |
243 | + | let aW = valueOrElse(getInteger(this, (T + m)), height) | |
244 | + | $Tuple2(aW, aV) | |
240 | 245 | } | |
241 | 246 | ||
242 | 247 | ||
243 | - | func | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
248 | + | func aX (T,aY) = { | |
249 | + | let aZ = getInteger(this, (((T + "_") + toString(aY)) + o)) | |
250 | + | let ba = getInteger(this, (((T + "_") + toString(aY)) + n)) | |
251 | + | let aV = valueOrErrorMessage(getInteger(this, (T + l)), (("No data on the key: " + T) + l)) | |
252 | + | let bb = { | |
253 | + | let ao = aZ | |
254 | + | if ($isInstanceOf(ao, "Int")) | |
250 | 255 | then { | |
251 | - | let | |
252 | - | | |
256 | + | let aZ = ao | |
257 | + | aZ | |
253 | 258 | } | |
254 | - | else | |
259 | + | else aV | |
255 | 260 | } | |
256 | - | let | |
257 | - | let | |
258 | - | if ($isInstanceOf( | |
261 | + | let bc = { | |
262 | + | let ao = ba | |
263 | + | if ($isInstanceOf(ao, "Int")) | |
259 | 264 | then { | |
260 | - | let | |
261 | - | | |
265 | + | let ba = ao | |
266 | + | ba | |
262 | 267 | } | |
263 | 268 | else 0 | |
264 | 269 | } | |
265 | - | $Tuple2( | |
270 | + | $Tuple2(bb, bc) | |
266 | 271 | } | |
267 | 272 | ||
268 | 273 | ||
269 | - | func | |
274 | + | func bd (aW,aQ,aV,be,bf,bg,bh,bi,bj) = if ((bf == 0)) | |
270 | 275 | then 0 | |
271 | - | else if (( | |
276 | + | else if ((aQ > height)) | |
272 | 277 | then { | |
273 | - | let | |
274 | - | ( | |
278 | + | let bk = (bg * (height - aW)) | |
279 | + | (aV + fraction(bk, bi, bf)) | |
275 | 280 | } | |
276 | - | else if (( | |
281 | + | else if ((aW > aQ)) | |
277 | 282 | then { | |
278 | - | let | |
279 | - | ( | |
283 | + | let bk = (be * (height - aW)) | |
284 | + | (aV + fraction(bk, bi, bf)) | |
280 | 285 | } | |
281 | 286 | else { | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | ( | |
287 | + | let bl = (bg * (aQ - aW)) | |
288 | + | let bm = (aV + fraction(bl, bi, bf)) | |
289 | + | let bk = (be * (height - aQ)) | |
290 | + | (bm + fraction(bk, bi, bf)) | |
286 | 291 | } | |
287 | 292 | ||
288 | 293 | ||
289 | - | func | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | $Tuple4(bs, | |
294 | + | func bn (T,bo,bj) = { | |
295 | + | let bh = az(T) | |
296 | + | let bi = aE(as, bh) | |
297 | + | let bf = ay(T) | |
298 | + | let bp = aU(T) | |
299 | + | let aW = bp._1 | |
300 | + | let aV = bp._2 | |
301 | + | let bq = aM(T) | |
302 | + | let be = bq._1 | |
303 | + | let aQ = bq._2 | |
304 | + | let bg = bq._3 | |
305 | + | let br = aX(T, bo) | |
306 | + | let aZ = br._1 | |
307 | + | let bc = br._2 | |
308 | + | let bs = bd(aW, aQ, aV, be, bf, bg, bh, bi, bj) | |
309 | + | let bt = fraction(bc, (bs - aZ), bi) | |
310 | + | let bu = bs | |
311 | + | $Tuple4(bu, bs, bt, bc) | |
307 | 312 | } | |
308 | 313 | ||
309 | 314 | ||
310 | - | func | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | if (( | |
315 | + | func bv (T) = { | |
316 | + | let bw = aU(T) | |
317 | + | let aW = bw._1 | |
318 | + | let aV = bw._2 | |
319 | + | let bx = aM(T) | |
320 | + | let be = bx._1 | |
321 | + | let aQ = bx._2 | |
322 | + | let bg = bx._3 | |
323 | + | let bf = ay(T) | |
324 | + | if ((bf == 0)) | |
320 | 325 | then 0 | |
321 | - | else if (( | |
326 | + | else if ((aQ > height)) | |
322 | 327 | then { | |
323 | - | let | |
324 | - | | |
328 | + | let bk = (bg * (height - aW)) | |
329 | + | bk | |
325 | 330 | } | |
326 | - | else if (( | |
331 | + | else if ((aW > aQ)) | |
327 | 332 | then { | |
328 | - | let | |
329 | - | | |
333 | + | let bk = (be * (height - aW)) | |
334 | + | bk | |
330 | 335 | } | |
331 | 336 | else { | |
332 | - | let | |
333 | - | let | |
334 | - | ( | |
337 | + | let bl = (bg * (aQ - aW)) | |
338 | + | let bk = (be * (height - aQ)) | |
339 | + | (bk + bl) | |
335 | 340 | } | |
336 | 341 | } | |
337 | 342 | ||
338 | 343 | ||
339 | - | func | |
340 | - | let | |
341 | - | if (( | |
344 | + | func by (T,bz) = { | |
345 | + | let bA = fromBase58String(getStringValue(value(addressFromString(T)), "share_asset_id")) | |
346 | + | if ((bz == bA)) | |
342 | 347 | then true | |
343 | 348 | else false | |
344 | 349 | } | |
345 | 350 | ||
346 | 351 | ||
347 | - | func | |
352 | + | func bB (T,aL) = valueOrElse(getInteger(this, (((T + "_") + toString(aL)) + q)), 0) | |
348 | 353 | ||
349 | 354 | ||
350 | - | @Callable( | |
351 | - | func init ( | |
355 | + | @Callable(bC) | |
356 | + | func init (bD) = if (isDefined(getString(this, p))) | |
352 | 357 | then throw("SWOP already initialized") | |
353 | 358 | else { | |
354 | - | let bC = 100000000000000 | |
355 | - | let bD = Issue("SWOP", "SWOP protocol token", bC, 8, true) | |
356 | - | let bE = calculateAssetId(bD) | |
357 | - | [Issue("SWOP", "SWOP protocol token", bC, 8, true), StringEntry(n, toBase58String(bE))] | |
359 | + | let bE = 100000000000000 | |
360 | + | let bF = Issue("SWOP", "SWOP protocol token", bE, 8, true) | |
361 | + | let bG = calculateAssetId(bF) | |
362 | + | if (isDefined(getBoolean(this, f))) | |
363 | + | then throw("DApp is already active") | |
364 | + | else [BooleanEntry(f, true), Issue("SWOP", "SWOP protocol token", bE, 8, true), StringEntry(p, toBase58String(bG))] | |
358 | 365 | } | |
359 | 366 | ||
360 | 367 | ||
361 | 368 | ||
362 | - | @Callable( | |
363 | - | func initPoolShareFarming (T) = if (( | |
369 | + | @Callable(bC) | |
370 | + | func initPoolShareFarming (T) = if ((bC.caller != this)) | |
364 | 371 | then throw("Only the DApp itself can call this function") | |
365 | - | else { | |
366 | - | let bF = aK(T) | |
367 | - | let bG = bF._1 | |
368 | - | let aO = bF._2 | |
369 | - | let be = bF._3 | |
370 | - | [IntegerEntry((T + d), 0), IntegerEntry((T + j), 0), IntegerEntry((T + k), height)] | |
371 | - | } | |
372 | + | else if (!(ai)) | |
373 | + | then throw("DApp is inactive at this moment") | |
374 | + | else { | |
375 | + | let bH = aM(T) | |
376 | + | let bI = bH._1 | |
377 | + | let aQ = bH._2 | |
378 | + | let bg = bH._3 | |
379 | + | [IntegerEntry((T + d), 0), IntegerEntry((T + l), 0), IntegerEntry((T + m), height)] | |
380 | + | } | |
372 | 381 | ||
373 | 382 | ||
374 | 383 | ||
375 | - | @Callable( | |
376 | - | func updatePoolInterest (T) = if (( | |
384 | + | @Callable(bC) | |
385 | + | func updatePoolInterest (T) = if ((bC.caller != H)) | |
377 | 386 | then throw("Only the Admin itself can call this function") | |
378 | - | else { | |
379 | - | let bH = bl(T, J, 0) | |
380 | - | let bs = bH._1 | |
381 | - | let bq = bH._2 | |
382 | - | let br = bH._3 | |
383 | - | let ba = bH._4 | |
384 | - | let bI = aK(T) | |
385 | - | let bG = bI._1 | |
386 | - | let aO = bI._2 | |
387 | - | let be = bI._3 | |
388 | - | [IntegerEntry((T + d), 0), IntegerEntry((T + j), bs), IntegerEntry((T + k), height)] | |
389 | - | } | |
387 | + | else if (!(ai)) | |
388 | + | then throw("DApp is inactive at this moment") | |
389 | + | else { | |
390 | + | let bJ = bn(T, J, 0) | |
391 | + | let bu = bJ._1 | |
392 | + | let bs = bJ._2 | |
393 | + | let bt = bJ._3 | |
394 | + | let bc = bJ._4 | |
395 | + | let bK = aM(T) | |
396 | + | let bI = bK._1 | |
397 | + | let aQ = bK._2 | |
398 | + | let bg = bK._3 | |
399 | + | [IntegerEntry((T + d), 0), IntegerEntry((T + l), bu), IntegerEntry((T + m), height)] | |
400 | + | } | |
390 | 401 | ||
391 | 402 | ||
392 | 403 | ||
393 | - | @Callable( | |
404 | + | @Callable(bC) | |
394 | 405 | func lockShareTokens (T) = { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
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 ((0 >= | |
406 | + | let bL = $Tuple2(bC.payments[0].amount, bC.payments[0].assetId) | |
407 | + | let bj = bL._1 | |
408 | + | let bz = bL._2 | |
409 | + | let bM = aA(bz) | |
410 | + | let bN = bM._1 | |
411 | + | let bO = bM._2 | |
412 | + | let bP = bM._3 | |
413 | + | let bQ = bn(T, bC.caller, bj) | |
414 | + | let bu = bQ._1 | |
415 | + | let bs = bQ._2 | |
416 | + | let bt = bQ._3 | |
417 | + | let bc = bQ._4 | |
418 | + | let bR = (bc + bj) | |
419 | + | let bS = (aK(T, bC.caller) + bt) | |
420 | + | let bT = ay(T) | |
421 | + | let bU = (bT + bj) | |
422 | + | let bV = bB(T, bC.caller) | |
423 | + | let bW = (bV + bt) | |
424 | + | let bX = [IntegerEntry((((T + "_") + toString(bC.caller)) + o), bu), IntegerEntry((((T + "_") + toString(bC.caller)) + n), bR), IntegerEntry((T + d), bU), IntegerEntry((T + l), bs), IntegerEntry((T + m), height), IntegerEntry((((T + "_") + toString(bC.caller)) + q), bW), IntegerEntry((((T + "_") + toString(bC.caller)) + r), bt), IntegerEntry((((T + "_") + toString(bC.caller)) + s), bS)] | |
425 | + | if ((0 >= bj)) | |
415 | 426 | then throw("You can't lock token") | |
416 | - | else if (!(bw(T, bx))) | |
417 | - | then throw("Incorrect pmtAssetId") | |
418 | - | else if (if (as(Address(fromBase58String(T)))) | |
419 | - | then (height > (at(Address(fromBase58String(T))) * af)) | |
420 | - | else false) | |
421 | - | then { | |
422 | - | let bW = split(getStringValue(G, (((toString(this) + "_") + T) + "_user_pool_struc")), "_") | |
423 | - | let bX = split(getStringValue(G, (((toString(this) + "_") + T) + "_pool_struc")), "_") | |
424 | - | let bY = split(getStringValue(G, (((toString(this) + "_") + T) + y)), "_") | |
425 | - | let bZ = split(getStringValue(G, (T + x)), "_") | |
426 | - | let ca = ba | |
427 | - | let cb = if ((toString(ai) == bW[2])) | |
428 | - | then valueOrElse(parseInt(bY[0]), 0) | |
429 | - | else valueOrElse(parseInt(bW[0]), 0) | |
430 | - | let cc = if ((toString(ai) == bX[2])) | |
431 | - | then valueOrElse(parseInt(bZ[0]), 0) | |
432 | - | else valueOrElse(parseInt(bX[0]), 0) | |
433 | - | let cd = bt(T) | |
434 | - | if ((parseInt(bW[1]) != 0)) | |
435 | - | then { | |
436 | - | let ce = (fraction(aw(T), cb, cc) - ca) | |
437 | - | if ((ce > 0)) | |
438 | - | then if ((bS >= ce)) | |
439 | - | then bV | |
440 | - | else throw(("You maximum share token is " + toString(ce))) | |
441 | - | else throw("You can't share token") | |
442 | - | } | |
443 | - | else throw("Your amount of token less than 0") | |
444 | - | } | |
445 | - | else bV | |
427 | + | else if (!(ai)) | |
428 | + | then throw("DApp is inactive at this moment") | |
429 | + | else if (!(by(T, bz))) | |
430 | + | then throw("Incorrect pmtAssetId") | |
431 | + | else if (if (at(Address(fromBase58String(T)))) | |
432 | + | then (height > (au(Address(fromBase58String(T))) * af)) | |
433 | + | else false) | |
434 | + | then { | |
435 | + | let bY = split(getStringValue(I, (((toString(bC.caller) + "_") + T) + "_user_pool_struc")), "_") | |
436 | + | let bZ = split(getStringValue(I, (T + "_pool_struc")), "_") | |
437 | + | let ca = split(getStringValue(I, (((toString(bC.caller) + "_") + T) + A)), "_") | |
438 | + | let cb = split(getStringValue(I, (T + z)), "_") | |
439 | + | let cc = bc | |
440 | + | let cd = if ((toString(aj) == bY[2])) | |
441 | + | then valueOrElse(parseInt(ca[0]), 0) | |
442 | + | else valueOrElse(parseInt(bY[0]), 0) | |
443 | + | let ce = if ((toString(aj) == bZ[2])) | |
444 | + | then valueOrElse(parseInt(cb[0]), 0) | |
445 | + | else valueOrElse(parseInt(bZ[0]), 0) | |
446 | + | let cf = bv(T) | |
447 | + | if ((parseInt(bY[1]) != 0)) | |
448 | + | then { | |
449 | + | let cg = (fraction(ax(addressFromStringValue(T)), cd, ce) - cc) | |
450 | + | if ((cg > 0)) | |
451 | + | then if ((bT == 0)) | |
452 | + | then (bX ++ [ScriptTransfer(H, cf, as)]) | |
453 | + | else if ((cg >= bj)) | |
454 | + | then bX | |
455 | + | else throw(("You maximum share token is " + toString(cg))) | |
456 | + | else throw("You can't share token") | |
457 | + | } | |
458 | + | else throw("Your amount of token less than 0") | |
459 | + | } | |
460 | + | else bX | |
446 | 461 | } | |
447 | 462 | ||
448 | 463 | ||
449 | 464 | ||
450 | - | @Callable( | |
451 | - | func withdrawShareTokens (T, | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | if (( | |
465 | + | @Callable(bC) | |
466 | + | func withdrawShareTokens (T,ch) = { | |
467 | + | let ci = fromBase58String(getStringValue(value(addressFromString(T)), "share_asset_id")) | |
468 | + | let cj = bn(T, bC.caller, 1) | |
469 | + | let bu = cj._1 | |
470 | + | let bs = cj._2 | |
471 | + | let bt = cj._3 | |
472 | + | let bc = cj._4 | |
473 | + | let bR = (bc - ch) | |
474 | + | let bS = (aK(T, bC.caller) + bt) | |
475 | + | let bT = ay(T) | |
476 | + | let bU = (bT - ch) | |
477 | + | let bV = bB(T, bC.caller) | |
478 | + | let bW = (bV + bt) | |
479 | + | if ((ch > bc)) | |
465 | 480 | then throw("Withdraw amount more then user locked amount") | |
466 | - | else [IntegerEntry((((T + "_") + toString(bA.caller)) + m), bs), IntegerEntry((((T + "_") + toString(bA.caller)) + l), bP), IntegerEntry((T + j), bq), IntegerEntry((T + k), height), IntegerEntry((T + d), bS), IntegerEntry((((T + "_") + toString(bA.caller)) + q), bQ), IntegerEntry((((T + "_") + toString(bA.caller)) + o), bU), IntegerEntry((((T + "_") + toString(bA.caller)) + p), br), ScriptTransfer(bA.caller, cf, cg)] | |
481 | + | else if (!(ai)) | |
482 | + | then throw("DApp is inactive at this moment") | |
483 | + | else [IntegerEntry((((T + "_") + toString(bC.caller)) + o), bu), IntegerEntry((((T + "_") + toString(bC.caller)) + n), bR), IntegerEntry((T + l), bs), IntegerEntry((T + m), height), IntegerEntry((T + d), bU), IntegerEntry((((T + "_") + toString(bC.caller)) + s), bS), IntegerEntry((((T + "_") + toString(bC.caller)) + q), bW), IntegerEntry((((T + "_") + toString(bC.caller)) + r), bt), ScriptTransfer(bC.caller, ch, ci)] | |
467 | 484 | } | |
468 | 485 | ||
469 | 486 | ||
470 | 487 | ||
471 | - | @Callable( | |
488 | + | @Callable(bC) | |
472 | 489 | func claim (T) = { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | if (( | |
490 | + | let bf = ay(T) | |
491 | + | let ck = aU(T) | |
492 | + | let aW = ck._1 | |
493 | + | let aV = ck._2 | |
494 | + | let cl = aM(T) | |
495 | + | let be = cl._1 | |
496 | + | let aQ = cl._2 | |
497 | + | let bg = cl._3 | |
498 | + | let cm = bn(T, bC.caller, 1) | |
499 | + | let bu = cm._1 | |
500 | + | let bs = cm._2 | |
501 | + | let bt = cm._3 | |
502 | + | let bc = cm._4 | |
503 | + | let cn = (aK(T, bC.caller) + bt) | |
504 | + | let bV = bB(T, bC.caller) | |
505 | + | let bW = (bV + bt) | |
506 | + | if ((cn == 0)) | |
490 | 507 | then throw("You have 0 available SWOP") | |
491 | - | else [IntegerEntry((((T + "_") + toString(bA.caller)) + m), bs), IntegerEntry((T + j), bq), IntegerEntry((T + k), height), IntegerEntry((((T + "_") + toString(bA.caller)) + q), 0), IntegerEntry((((T + "_") + toString(bA.caller)) + o), bU), IntegerEntry((((T + "_") + toString(bA.caller)) + p), br), ScriptTransfer(bA.caller, cl, ar)] | |
508 | + | else if (!(ai)) | |
509 | + | then throw("DApp is inactive at this moment") | |
510 | + | else [IntegerEntry((((T + "_") + toString(bC.caller)) + o), bu), IntegerEntry((T + l), bs), IntegerEntry((T + m), height), IntegerEntry((((T + "_") + toString(bC.caller)) + s), 0), IntegerEntry((((T + "_") + toString(bC.caller)) + q), bW), IntegerEntry((((T + "_") + toString(bC.caller)) + r), bt), ScriptTransfer(bC.caller, cn, as)] | |
492 | 511 | } | |
493 | 512 | ||
494 | 513 | ||
495 | - | @Verifier( | |
496 | - | func | |
497 | - | let | |
498 | - | sigVerify( | |
514 | + | @Verifier(co) | |
515 | + | func cp () = { | |
516 | + | let ao = co | |
517 | + | sigVerify(co.bodyBytes, co.proofs[0], co.senderPublicKey) | |
499 | 518 | } | |
500 | 519 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | 6 | let b = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | 8 | let c = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let d = "_total_share_tokens_locked" | |
11 | 11 | ||
12 | - | let e = "_ | |
12 | + | let e = "share_limit_on_first_harvest" | |
13 | 13 | ||
14 | - | let f = " | |
14 | + | let f = "active" | |
15 | 15 | ||
16 | - | let g = " | |
16 | + | let g = "_current_pool_fraction_reward" | |
17 | 17 | ||
18 | - | let h = " | |
18 | + | let h = "_previous_pool_fraction_reward" | |
19 | 19 | ||
20 | - | let i = "reward_ | |
20 | + | let i = "total_reward_per_block_current" | |
21 | 21 | ||
22 | - | let j = "_ | |
22 | + | let j = "total_reward_per_block_previous" | |
23 | 23 | ||
24 | - | let k = "_ | |
24 | + | let k = "reward_update_height" | |
25 | 25 | ||
26 | - | let l = "_ | |
26 | + | let l = "_last_interest" | |
27 | 27 | ||
28 | - | let m = "_last_interest" | |
28 | + | let m = "_last_interest_height" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "_share_tokens_locked" | |
31 | 31 | ||
32 | - | let o = "_ | |
32 | + | let o = "_last_interest" | |
33 | 33 | ||
34 | - | let p = " | |
34 | + | let p = "SWOP_id" | |
35 | 35 | ||
36 | - | let q = "_ | |
36 | + | let q = "_SWOP_claimed_amount" | |
37 | 37 | ||
38 | - | let r = " | |
38 | + | let r = "_SWOP_last_claimed_amount" | |
39 | 39 | ||
40 | - | let s = " | |
40 | + | let s = "_available_SWOP" | |
41 | 41 | ||
42 | - | let t = " | |
42 | + | let t = "farming_start_height" | |
43 | 43 | ||
44 | - | let u = " | |
44 | + | let u = "apy" | |
45 | 45 | ||
46 | - | let v = " | |
46 | + | let v = "previous_total_vote_SWOP" | |
47 | 47 | ||
48 | - | let w = " | |
48 | + | let w = "swop_year_emission" | |
49 | 49 | ||
50 | - | let x = "_ | |
50 | + | let x = "A_asset_balance" | |
51 | 51 | ||
52 | - | let y = "_ | |
52 | + | let y = "B_asset_balance" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "_harvest_pool_activeVote_struc" | |
55 | 55 | ||
56 | - | let A = " | |
56 | + | let A = "_harvest_user_pool_activeVote_struc" | |
57 | 57 | ||
58 | - | let B = " | |
58 | + | let B = "share_limit_on_first_harvest" | |
59 | 59 | ||
60 | - | let C = " | |
60 | + | let C = "A_asset_id" | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "B_asset_id" | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = "first_harvest_height" | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = "first_harvest" | |
67 | 67 | ||
68 | - | let G = Address(base58' | |
68 | + | let G = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
69 | 69 | ||
70 | - | let H = Address(base58' | |
70 | + | let H = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
71 | 71 | ||
72 | - | let I = Address(base58' | |
72 | + | let I = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
73 | 73 | ||
74 | 74 | let J = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
75 | 75 | ||
76 | 76 | let K = 10106 | |
77 | 77 | ||
78 | 78 | let L = 10000000000 | |
79 | 79 | ||
80 | 80 | let M = 10 | |
81 | 81 | ||
82 | 82 | let N = 1000 | |
83 | 83 | ||
84 | 84 | let O = 100000 | |
85 | 85 | ||
86 | 86 | let P = 1000000 | |
87 | 87 | ||
88 | 88 | let Q = 100000000 | |
89 | 89 | ||
90 | 90 | let R = 100000000000 | |
91 | 91 | ||
92 | - | func S (T) = getStringValue(T, | |
92 | + | func S (T) = getStringValue(T, C) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func U (T) = getStringValue(T, | |
95 | + | func U (T) = getStringValue(T, D) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func V (T) = if ((S(T) == "WAVES")) | |
99 | 99 | then unit | |
100 | 100 | else fromBase58String(S(T)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func W (T) = if ((U(T) == "WAVES")) | |
104 | 104 | then unit | |
105 | 105 | else fromBase58String(U(T)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let X = "base_period" | |
109 | 109 | ||
110 | 110 | let Y = "period_length" | |
111 | 111 | ||
112 | 112 | let Z = "start_height" | |
113 | 113 | ||
114 | 114 | let aa = "first_harvest_height" | |
115 | 115 | ||
116 | 116 | let ab = "duration_full_vote_power" | |
117 | 117 | ||
118 | 118 | let ac = "min_vote_power" | |
119 | 119 | ||
120 | - | let ad = valueOrErrorMessage(getInteger( | |
120 | + | let ad = valueOrErrorMessage(getInteger(I, X), "Empty kBasePeriod") | |
121 | 121 | ||
122 | - | let ae = valueOrErrorMessage(getInteger( | |
122 | + | let ae = valueOrErrorMessage(getInteger(I, Z), "Empty kStartHeight") | |
123 | 123 | ||
124 | - | let af = valueOrErrorMessage(getInteger( | |
124 | + | let af = valueOrErrorMessage(getInteger(I, Y), "Empty kPeriodLength") | |
125 | 125 | ||
126 | - | let ag = valueOrErrorMessage(getInteger( | |
126 | + | let ag = valueOrErrorMessage(getInteger(I, ab), "Empty kDurationFullVotePower") | |
127 | 127 | ||
128 | - | let ah = valueOrErrorMessage(getInteger( | |
128 | + | let ah = valueOrErrorMessage(getInteger(I, ac), "Empty kMinVotePower") | |
129 | 129 | ||
130 | - | let ai = ( | |
130 | + | let ai = getBooleanValue(this, f) | |
131 | 131 | ||
132 | - | ||
132 | + | let aj = (ad + ((height - ae) / af)) | |
133 | 133 | ||
134 | + | func ak (T) = valueOrElse(getIntegerValue(T, B), 0) | |
134 | 135 | ||
135 | - | let ak = getIntegerValue(this, s) | |
136 | 136 | ||
137 | 137 | let al = getIntegerValue(this, u) | |
138 | 138 | ||
139 | - | func am (T) = { | |
140 | - | let an = V(T) | |
141 | - | if ($isInstanceOf(an, "ByteVector")) | |
139 | + | let am = getIntegerValue(this, w) | |
140 | + | ||
141 | + | func an (T) = { | |
142 | + | let ao = V(T) | |
143 | + | if ($isInstanceOf(ao, "ByteVector")) | |
142 | 144 | then { | |
143 | - | let | |
144 | - | value(assetInfo( | |
145 | + | let ap = ao | |
146 | + | value(assetInfo(ap)).name | |
145 | 147 | } | |
146 | - | else if ($isInstanceOf( | |
148 | + | else if ($isInstanceOf(ao, "Unit")) | |
147 | 149 | then { | |
148 | - | let | |
150 | + | let aq = ao | |
149 | 151 | "WAVES" | |
150 | 152 | } | |
151 | 153 | else throw("Match error") | |
152 | 154 | } | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
156 | - | let | |
157 | - | if ($isInstanceOf( | |
157 | + | func ar (T) = { | |
158 | + | let ao = W(T) | |
159 | + | if ($isInstanceOf(ao, "ByteVector")) | |
158 | 160 | then { | |
159 | - | let | |
160 | - | value(assetInfo( | |
161 | + | let ap = ao | |
162 | + | value(assetInfo(ap)).name | |
161 | 163 | } | |
162 | - | else if ($isInstanceOf( | |
164 | + | else if ($isInstanceOf(ao, "Unit")) | |
163 | 165 | then { | |
164 | - | let | |
166 | + | let aq = ao | |
165 | 167 | "WAVES" | |
166 | 168 | } | |
167 | 169 | else throw("Match error") | |
168 | 170 | } | |
169 | 171 | ||
170 | 172 | ||
171 | - | let | |
173 | + | let as = fromBase58String(getStringValue(this, p)) | |
172 | 174 | ||
173 | - | func | |
175 | + | func at (T) = valueOrElse(getBoolean(T, F), false) | |
174 | 176 | ||
175 | 177 | ||
176 | - | func | |
178 | + | func au (T) = valueOrElse(getInteger(T, E), 0) | |
177 | 179 | ||
178 | 180 | ||
179 | - | func | |
181 | + | func av (T) = valueOrErrorMessage(getInteger(T, x), ("No data on the key: " + x)) | |
180 | 182 | ||
181 | 183 | ||
182 | - | func | |
184 | + | func aw (T) = valueOrErrorMessage(getInteger(T, y), ("No data on the key: " + y)) | |
183 | 185 | ||
184 | 186 | ||
185 | - | func | |
187 | + | func ax (T) = valueOrErrorMessage(getInteger(T, e), ("No data on the key: " + e)) | |
186 | 188 | ||
187 | 189 | ||
188 | - | func | |
190 | + | func ay (T) = valueOrErrorMessage(getInteger(this, (T + d)), (("No data on the key: " + T) + d)) | |
189 | 191 | ||
190 | 192 | ||
191 | - | func ay (az) = { | |
192 | - | let an = az | |
193 | - | if ($isInstanceOf(an, "ByteVector")) | |
193 | + | func az (T) = fromBase58String(getStringValue(value(addressFromString(T)), "share_asset_id")) | |
194 | + | ||
195 | + | ||
196 | + | func aA (aB) = { | |
197 | + | let ao = aB | |
198 | + | if ($isInstanceOf(ao, "ByteVector")) | |
194 | 199 | then { | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | $Tuple3( | |
200 | + | let ap = ao | |
201 | + | let aC = toBase58String(ap) | |
202 | + | let aD = valueOrErrorMessage(assetInfo(ap), (("Asset " + aC) + " doesn't exist")) | |
203 | + | $Tuple3(aC, aD.name, aD.decimals) | |
199 | 204 | } | |
200 | - | else if ($isInstanceOf( | |
205 | + | else if ($isInstanceOf(ao, "Unit")) | |
201 | 206 | then { | |
202 | - | let | |
207 | + | let aq = ao | |
203 | 208 | $Tuple3("WAVES", "WAVES", 8) | |
204 | 209 | } | |
205 | 210 | else throw("Match error") | |
206 | 211 | } | |
207 | 212 | ||
208 | 213 | ||
209 | - | func | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | pow(10, 0, | |
214 | + | func aE (aF,aG) = { | |
215 | + | let aH = value(assetInfo(aF)).decimals | |
216 | + | let aI = value(assetInfo(aG)).decimals | |
217 | + | let aJ = ((aI - aH) + 8) | |
218 | + | pow(10, 0, aJ, 0, 0, HALFDOWN) | |
214 | 219 | } | |
215 | 220 | ||
216 | 221 | ||
217 | - | func | |
222 | + | func aK (T,aL) = valueOrElse(getInteger(this, (((T + "_") + toString(aL)) + s)), 0) | |
218 | 223 | ||
219 | 224 | ||
220 | - | func | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if (if (( | |
225 | + | func aM (T) = { | |
226 | + | let aN = valueOrErrorMessage(getInteger(G, i), ((("No data on the key: " + i) + " at address ") + toString(G))) | |
227 | + | let aO = valueOrErrorMessage(getInteger(G, j), ((("No data on the key: " + j) + " at address ") + toString(G))) | |
228 | + | let aP = valueOrErrorMessage(getInteger(G, (T + g)), (((("No data on the key: " + T) + g) + " at address ") + toString(G))) | |
229 | + | let aQ = valueOrErrorMessage(getInteger(G, k), ((("No data on the key: " + k) + " at address ") + toString(G))) | |
230 | + | let aR = valueOrErrorMessage(getInteger(G, (T + h)), (((("No data on the key: " + T) + h) + " at address ") + toString(G))) | |
231 | + | let aS = fraction(aN, aP, L) | |
232 | + | let aT = fraction(aO, aR, L) | |
233 | + | if (if ((aS > aN)) | |
229 | 234 | then true | |
230 | - | else ( | |
235 | + | else (aT > aO)) | |
231 | 236 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
232 | - | else $Tuple3(aQ, | |
237 | + | else $Tuple3(aS, aQ, aT) | |
233 | 238 | } | |
234 | 239 | ||
235 | 240 | ||
236 | - | func | |
237 | - | let | |
238 | - | let | |
239 | - | $Tuple2( | |
241 | + | func aU (T) = { | |
242 | + | let aV = valueOrErrorMessage(getInteger(this, (T + l)), (("No data on the key: " + T) + l)) | |
243 | + | let aW = valueOrElse(getInteger(this, (T + m)), height) | |
244 | + | $Tuple2(aW, aV) | |
240 | 245 | } | |
241 | 246 | ||
242 | 247 | ||
243 | - | func | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
248 | + | func aX (T,aY) = { | |
249 | + | let aZ = getInteger(this, (((T + "_") + toString(aY)) + o)) | |
250 | + | let ba = getInteger(this, (((T + "_") + toString(aY)) + n)) | |
251 | + | let aV = valueOrErrorMessage(getInteger(this, (T + l)), (("No data on the key: " + T) + l)) | |
252 | + | let bb = { | |
253 | + | let ao = aZ | |
254 | + | if ($isInstanceOf(ao, "Int")) | |
250 | 255 | then { | |
251 | - | let | |
252 | - | | |
256 | + | let aZ = ao | |
257 | + | aZ | |
253 | 258 | } | |
254 | - | else | |
259 | + | else aV | |
255 | 260 | } | |
256 | - | let | |
257 | - | let | |
258 | - | if ($isInstanceOf( | |
261 | + | let bc = { | |
262 | + | let ao = ba | |
263 | + | if ($isInstanceOf(ao, "Int")) | |
259 | 264 | then { | |
260 | - | let | |
261 | - | | |
265 | + | let ba = ao | |
266 | + | ba | |
262 | 267 | } | |
263 | 268 | else 0 | |
264 | 269 | } | |
265 | - | $Tuple2( | |
270 | + | $Tuple2(bb, bc) | |
266 | 271 | } | |
267 | 272 | ||
268 | 273 | ||
269 | - | func | |
274 | + | func bd (aW,aQ,aV,be,bf,bg,bh,bi,bj) = if ((bf == 0)) | |
270 | 275 | then 0 | |
271 | - | else if (( | |
276 | + | else if ((aQ > height)) | |
272 | 277 | then { | |
273 | - | let | |
274 | - | ( | |
278 | + | let bk = (bg * (height - aW)) | |
279 | + | (aV + fraction(bk, bi, bf)) | |
275 | 280 | } | |
276 | - | else if (( | |
281 | + | else if ((aW > aQ)) | |
277 | 282 | then { | |
278 | - | let | |
279 | - | ( | |
283 | + | let bk = (be * (height - aW)) | |
284 | + | (aV + fraction(bk, bi, bf)) | |
280 | 285 | } | |
281 | 286 | else { | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | ( | |
287 | + | let bl = (bg * (aQ - aW)) | |
288 | + | let bm = (aV + fraction(bl, bi, bf)) | |
289 | + | let bk = (be * (height - aQ)) | |
290 | + | (bm + fraction(bk, bi, bf)) | |
286 | 291 | } | |
287 | 292 | ||
288 | 293 | ||
289 | - | func | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | $Tuple4(bs, | |
294 | + | func bn (T,bo,bj) = { | |
295 | + | let bh = az(T) | |
296 | + | let bi = aE(as, bh) | |
297 | + | let bf = ay(T) | |
298 | + | let bp = aU(T) | |
299 | + | let aW = bp._1 | |
300 | + | let aV = bp._2 | |
301 | + | let bq = aM(T) | |
302 | + | let be = bq._1 | |
303 | + | let aQ = bq._2 | |
304 | + | let bg = bq._3 | |
305 | + | let br = aX(T, bo) | |
306 | + | let aZ = br._1 | |
307 | + | let bc = br._2 | |
308 | + | let bs = bd(aW, aQ, aV, be, bf, bg, bh, bi, bj) | |
309 | + | let bt = fraction(bc, (bs - aZ), bi) | |
310 | + | let bu = bs | |
311 | + | $Tuple4(bu, bs, bt, bc) | |
307 | 312 | } | |
308 | 313 | ||
309 | 314 | ||
310 | - | func | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | if (( | |
315 | + | func bv (T) = { | |
316 | + | let bw = aU(T) | |
317 | + | let aW = bw._1 | |
318 | + | let aV = bw._2 | |
319 | + | let bx = aM(T) | |
320 | + | let be = bx._1 | |
321 | + | let aQ = bx._2 | |
322 | + | let bg = bx._3 | |
323 | + | let bf = ay(T) | |
324 | + | if ((bf == 0)) | |
320 | 325 | then 0 | |
321 | - | else if (( | |
326 | + | else if ((aQ > height)) | |
322 | 327 | then { | |
323 | - | let | |
324 | - | | |
328 | + | let bk = (bg * (height - aW)) | |
329 | + | bk | |
325 | 330 | } | |
326 | - | else if (( | |
331 | + | else if ((aW > aQ)) | |
327 | 332 | then { | |
328 | - | let | |
329 | - | | |
333 | + | let bk = (be * (height - aW)) | |
334 | + | bk | |
330 | 335 | } | |
331 | 336 | else { | |
332 | - | let | |
333 | - | let | |
334 | - | ( | |
337 | + | let bl = (bg * (aQ - aW)) | |
338 | + | let bk = (be * (height - aQ)) | |
339 | + | (bk + bl) | |
335 | 340 | } | |
336 | 341 | } | |
337 | 342 | ||
338 | 343 | ||
339 | - | func | |
340 | - | let | |
341 | - | if (( | |
344 | + | func by (T,bz) = { | |
345 | + | let bA = fromBase58String(getStringValue(value(addressFromString(T)), "share_asset_id")) | |
346 | + | if ((bz == bA)) | |
342 | 347 | then true | |
343 | 348 | else false | |
344 | 349 | } | |
345 | 350 | ||
346 | 351 | ||
347 | - | func | |
352 | + | func bB (T,aL) = valueOrElse(getInteger(this, (((T + "_") + toString(aL)) + q)), 0) | |
348 | 353 | ||
349 | 354 | ||
350 | - | @Callable( | |
351 | - | func init ( | |
355 | + | @Callable(bC) | |
356 | + | func init (bD) = if (isDefined(getString(this, p))) | |
352 | 357 | then throw("SWOP already initialized") | |
353 | 358 | else { | |
354 | - | let bC = 100000000000000 | |
355 | - | let bD = Issue("SWOP", "SWOP protocol token", bC, 8, true) | |
356 | - | let bE = calculateAssetId(bD) | |
357 | - | [Issue("SWOP", "SWOP protocol token", bC, 8, true), StringEntry(n, toBase58String(bE))] | |
359 | + | let bE = 100000000000000 | |
360 | + | let bF = Issue("SWOP", "SWOP protocol token", bE, 8, true) | |
361 | + | let bG = calculateAssetId(bF) | |
362 | + | if (isDefined(getBoolean(this, f))) | |
363 | + | then throw("DApp is already active") | |
364 | + | else [BooleanEntry(f, true), Issue("SWOP", "SWOP protocol token", bE, 8, true), StringEntry(p, toBase58String(bG))] | |
358 | 365 | } | |
359 | 366 | ||
360 | 367 | ||
361 | 368 | ||
362 | - | @Callable( | |
363 | - | func initPoolShareFarming (T) = if (( | |
369 | + | @Callable(bC) | |
370 | + | func initPoolShareFarming (T) = if ((bC.caller != this)) | |
364 | 371 | then throw("Only the DApp itself can call this function") | |
365 | - | else { | |
366 | - | let bF = aK(T) | |
367 | - | let bG = bF._1 | |
368 | - | let aO = bF._2 | |
369 | - | let be = bF._3 | |
370 | - | [IntegerEntry((T + d), 0), IntegerEntry((T + j), 0), IntegerEntry((T + k), height)] | |
371 | - | } | |
372 | + | else if (!(ai)) | |
373 | + | then throw("DApp is inactive at this moment") | |
374 | + | else { | |
375 | + | let bH = aM(T) | |
376 | + | let bI = bH._1 | |
377 | + | let aQ = bH._2 | |
378 | + | let bg = bH._3 | |
379 | + | [IntegerEntry((T + d), 0), IntegerEntry((T + l), 0), IntegerEntry((T + m), height)] | |
380 | + | } | |
372 | 381 | ||
373 | 382 | ||
374 | 383 | ||
375 | - | @Callable( | |
376 | - | func updatePoolInterest (T) = if (( | |
384 | + | @Callable(bC) | |
385 | + | func updatePoolInterest (T) = if ((bC.caller != H)) | |
377 | 386 | then throw("Only the Admin itself can call this function") | |
378 | - | else { | |
379 | - | let bH = bl(T, J, 0) | |
380 | - | let bs = bH._1 | |
381 | - | let bq = bH._2 | |
382 | - | let br = bH._3 | |
383 | - | let ba = bH._4 | |
384 | - | let bI = aK(T) | |
385 | - | let bG = bI._1 | |
386 | - | let aO = bI._2 | |
387 | - | let be = bI._3 | |
388 | - | [IntegerEntry((T + d), 0), IntegerEntry((T + j), bs), IntegerEntry((T + k), height)] | |
389 | - | } | |
387 | + | else if (!(ai)) | |
388 | + | then throw("DApp is inactive at this moment") | |
389 | + | else { | |
390 | + | let bJ = bn(T, J, 0) | |
391 | + | let bu = bJ._1 | |
392 | + | let bs = bJ._2 | |
393 | + | let bt = bJ._3 | |
394 | + | let bc = bJ._4 | |
395 | + | let bK = aM(T) | |
396 | + | let bI = bK._1 | |
397 | + | let aQ = bK._2 | |
398 | + | let bg = bK._3 | |
399 | + | [IntegerEntry((T + d), 0), IntegerEntry((T + l), bu), IntegerEntry((T + m), height)] | |
400 | + | } | |
390 | 401 | ||
391 | 402 | ||
392 | 403 | ||
393 | - | @Callable( | |
404 | + | @Callable(bC) | |
394 | 405 | func lockShareTokens (T) = { | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
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 ((0 >= | |
406 | + | let bL = $Tuple2(bC.payments[0].amount, bC.payments[0].assetId) | |
407 | + | let bj = bL._1 | |
408 | + | let bz = bL._2 | |
409 | + | let bM = aA(bz) | |
410 | + | let bN = bM._1 | |
411 | + | let bO = bM._2 | |
412 | + | let bP = bM._3 | |
413 | + | let bQ = bn(T, bC.caller, bj) | |
414 | + | let bu = bQ._1 | |
415 | + | let bs = bQ._2 | |
416 | + | let bt = bQ._3 | |
417 | + | let bc = bQ._4 | |
418 | + | let bR = (bc + bj) | |
419 | + | let bS = (aK(T, bC.caller) + bt) | |
420 | + | let bT = ay(T) | |
421 | + | let bU = (bT + bj) | |
422 | + | let bV = bB(T, bC.caller) | |
423 | + | let bW = (bV + bt) | |
424 | + | let bX = [IntegerEntry((((T + "_") + toString(bC.caller)) + o), bu), IntegerEntry((((T + "_") + toString(bC.caller)) + n), bR), IntegerEntry((T + d), bU), IntegerEntry((T + l), bs), IntegerEntry((T + m), height), IntegerEntry((((T + "_") + toString(bC.caller)) + q), bW), IntegerEntry((((T + "_") + toString(bC.caller)) + r), bt), IntegerEntry((((T + "_") + toString(bC.caller)) + s), bS)] | |
425 | + | if ((0 >= bj)) | |
415 | 426 | then throw("You can't lock token") | |
416 | - | else if (!(bw(T, bx))) | |
417 | - | then throw("Incorrect pmtAssetId") | |
418 | - | else if (if (as(Address(fromBase58String(T)))) | |
419 | - | then (height > (at(Address(fromBase58String(T))) * af)) | |
420 | - | else false) | |
421 | - | then { | |
422 | - | let bW = split(getStringValue(G, (((toString(this) + "_") + T) + "_user_pool_struc")), "_") | |
423 | - | let bX = split(getStringValue(G, (((toString(this) + "_") + T) + "_pool_struc")), "_") | |
424 | - | let bY = split(getStringValue(G, (((toString(this) + "_") + T) + y)), "_") | |
425 | - | let bZ = split(getStringValue(G, (T + x)), "_") | |
426 | - | let ca = ba | |
427 | - | let cb = if ((toString(ai) == bW[2])) | |
428 | - | then valueOrElse(parseInt(bY[0]), 0) | |
429 | - | else valueOrElse(parseInt(bW[0]), 0) | |
430 | - | let cc = if ((toString(ai) == bX[2])) | |
431 | - | then valueOrElse(parseInt(bZ[0]), 0) | |
432 | - | else valueOrElse(parseInt(bX[0]), 0) | |
433 | - | let cd = bt(T) | |
434 | - | if ((parseInt(bW[1]) != 0)) | |
435 | - | then { | |
436 | - | let ce = (fraction(aw(T), cb, cc) - ca) | |
437 | - | if ((ce > 0)) | |
438 | - | then if ((bS >= ce)) | |
439 | - | then bV | |
440 | - | else throw(("You maximum share token is " + toString(ce))) | |
441 | - | else throw("You can't share token") | |
442 | - | } | |
443 | - | else throw("Your amount of token less than 0") | |
444 | - | } | |
445 | - | else bV | |
427 | + | else if (!(ai)) | |
428 | + | then throw("DApp is inactive at this moment") | |
429 | + | else if (!(by(T, bz))) | |
430 | + | then throw("Incorrect pmtAssetId") | |
431 | + | else if (if (at(Address(fromBase58String(T)))) | |
432 | + | then (height > (au(Address(fromBase58String(T))) * af)) | |
433 | + | else false) | |
434 | + | then { | |
435 | + | let bY = split(getStringValue(I, (((toString(bC.caller) + "_") + T) + "_user_pool_struc")), "_") | |
436 | + | let bZ = split(getStringValue(I, (T + "_pool_struc")), "_") | |
437 | + | let ca = split(getStringValue(I, (((toString(bC.caller) + "_") + T) + A)), "_") | |
438 | + | let cb = split(getStringValue(I, (T + z)), "_") | |
439 | + | let cc = bc | |
440 | + | let cd = if ((toString(aj) == bY[2])) | |
441 | + | then valueOrElse(parseInt(ca[0]), 0) | |
442 | + | else valueOrElse(parseInt(bY[0]), 0) | |
443 | + | let ce = if ((toString(aj) == bZ[2])) | |
444 | + | then valueOrElse(parseInt(cb[0]), 0) | |
445 | + | else valueOrElse(parseInt(bZ[0]), 0) | |
446 | + | let cf = bv(T) | |
447 | + | if ((parseInt(bY[1]) != 0)) | |
448 | + | then { | |
449 | + | let cg = (fraction(ax(addressFromStringValue(T)), cd, ce) - cc) | |
450 | + | if ((cg > 0)) | |
451 | + | then if ((bT == 0)) | |
452 | + | then (bX ++ [ScriptTransfer(H, cf, as)]) | |
453 | + | else if ((cg >= bj)) | |
454 | + | then bX | |
455 | + | else throw(("You maximum share token is " + toString(cg))) | |
456 | + | else throw("You can't share token") | |
457 | + | } | |
458 | + | else throw("Your amount of token less than 0") | |
459 | + | } | |
460 | + | else bX | |
446 | 461 | } | |
447 | 462 | ||
448 | 463 | ||
449 | 464 | ||
450 | - | @Callable( | |
451 | - | func withdrawShareTokens (T, | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | if (( | |
465 | + | @Callable(bC) | |
466 | + | func withdrawShareTokens (T,ch) = { | |
467 | + | let ci = fromBase58String(getStringValue(value(addressFromString(T)), "share_asset_id")) | |
468 | + | let cj = bn(T, bC.caller, 1) | |
469 | + | let bu = cj._1 | |
470 | + | let bs = cj._2 | |
471 | + | let bt = cj._3 | |
472 | + | let bc = cj._4 | |
473 | + | let bR = (bc - ch) | |
474 | + | let bS = (aK(T, bC.caller) + bt) | |
475 | + | let bT = ay(T) | |
476 | + | let bU = (bT - ch) | |
477 | + | let bV = bB(T, bC.caller) | |
478 | + | let bW = (bV + bt) | |
479 | + | if ((ch > bc)) | |
465 | 480 | then throw("Withdraw amount more then user locked amount") | |
466 | - | else [IntegerEntry((((T + "_") + toString(bA.caller)) + m), bs), IntegerEntry((((T + "_") + toString(bA.caller)) + l), bP), IntegerEntry((T + j), bq), IntegerEntry((T + k), height), IntegerEntry((T + d), bS), IntegerEntry((((T + "_") + toString(bA.caller)) + q), bQ), IntegerEntry((((T + "_") + toString(bA.caller)) + o), bU), IntegerEntry((((T + "_") + toString(bA.caller)) + p), br), ScriptTransfer(bA.caller, cf, cg)] | |
481 | + | else if (!(ai)) | |
482 | + | then throw("DApp is inactive at this moment") | |
483 | + | else [IntegerEntry((((T + "_") + toString(bC.caller)) + o), bu), IntegerEntry((((T + "_") + toString(bC.caller)) + n), bR), IntegerEntry((T + l), bs), IntegerEntry((T + m), height), IntegerEntry((T + d), bU), IntegerEntry((((T + "_") + toString(bC.caller)) + s), bS), IntegerEntry((((T + "_") + toString(bC.caller)) + q), bW), IntegerEntry((((T + "_") + toString(bC.caller)) + r), bt), ScriptTransfer(bC.caller, ch, ci)] | |
467 | 484 | } | |
468 | 485 | ||
469 | 486 | ||
470 | 487 | ||
471 | - | @Callable( | |
488 | + | @Callable(bC) | |
472 | 489 | func claim (T) = { | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | if (( | |
490 | + | let bf = ay(T) | |
491 | + | let ck = aU(T) | |
492 | + | let aW = ck._1 | |
493 | + | let aV = ck._2 | |
494 | + | let cl = aM(T) | |
495 | + | let be = cl._1 | |
496 | + | let aQ = cl._2 | |
497 | + | let bg = cl._3 | |
498 | + | let cm = bn(T, bC.caller, 1) | |
499 | + | let bu = cm._1 | |
500 | + | let bs = cm._2 | |
501 | + | let bt = cm._3 | |
502 | + | let bc = cm._4 | |
503 | + | let cn = (aK(T, bC.caller) + bt) | |
504 | + | let bV = bB(T, bC.caller) | |
505 | + | let bW = (bV + bt) | |
506 | + | if ((cn == 0)) | |
490 | 507 | then throw("You have 0 available SWOP") | |
491 | - | else [IntegerEntry((((T + "_") + toString(bA.caller)) + m), bs), IntegerEntry((T + j), bq), IntegerEntry((T + k), height), IntegerEntry((((T + "_") + toString(bA.caller)) + q), 0), IntegerEntry((((T + "_") + toString(bA.caller)) + o), bU), IntegerEntry((((T + "_") + toString(bA.caller)) + p), br), ScriptTransfer(bA.caller, cl, ar)] | |
508 | + | else if (!(ai)) | |
509 | + | then throw("DApp is inactive at this moment") | |
510 | + | else [IntegerEntry((((T + "_") + toString(bC.caller)) + o), bu), IntegerEntry((T + l), bs), IntegerEntry((T + m), height), IntegerEntry((((T + "_") + toString(bC.caller)) + s), 0), IntegerEntry((((T + "_") + toString(bC.caller)) + q), bW), IntegerEntry((((T + "_") + toString(bC.caller)) + r), bt), ScriptTransfer(bC.caller, cn, as)] | |
492 | 511 | } | |
493 | 512 | ||
494 | 513 | ||
495 | - | @Verifier( | |
496 | - | func | |
497 | - | let | |
498 | - | sigVerify( | |
514 | + | @Verifier(co) | |
515 | + | func cp () = { | |
516 | + | let ao = co | |
517 | + | sigVerify(co.bodyBytes, co.proofs[0], co.senderPublicKey) | |
499 | 518 | } | |
500 | 519 |
github/deemru/w8io/026f985 156.51 ms ◑