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