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