tx · 7TiBrifCDEZFEwtPZbbFk9Mavnw8n8WNLifX2k4f875U 3MqJAScB6GGDcFxwV79KYp6Ub17DBexCDYR: -0.10000000 Waves 2023.01.24 12:09 [2418841] smart account 3MqJAScB6GGDcFxwV79KYp6Ub17DBexCDYR > SELF 0.00000000 Waves
{ "type": 13, "id": "7TiBrifCDEZFEwtPZbbFk9Mavnw8n8WNLifX2k4f875U", "fee": 10000000, "feeAssetId": null, "timestamp": 1674551378867, "version": 2, "chainId": 84, "sender": "3MqJAScB6GGDcFxwV79KYp6Ub17DBexCDYR", "senderPublicKey": "7vAsM1uosf2qCT6sCBdJwhPkkfhBXbJ2Be6DZtdq6Tej", "proofs": [ "39vA6e7wLFUhrD4N1pbUXb6nYmAVTAMRAVvWc4PavpPQUqPKJ4fot644H5CXFMhSDDmx9CTnHi4V4LRUpCc3MhCG", "5GR3fejzRzahUXbcVT2Rk8z8t9yQtPzMzhWhtup7tc5KUhjUsApJsT3ZYxQ42f448QcxKTBYtPgfoewUkdA9BiTk" ], "script": "base64:BgIUCAISABIFCgMICAESAwoBCBIAEgAlAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAWa0xhc3RQb29sVG9rZW5JbnRlcmVzdAITX3Bvb2xfbGFzdF9pbnRlcmVzdAARa1VzZXJMYXN0SW50ZXJlc3QCE191c2VyX2xhc3RfaW50ZXJlc3QAE2tVc2VyQ2xhaW1BdmFpbGFibGUCGF91c2VyX2F2YWlsYWJsZV90b19jbGFpbQAWa1VzZXJTaGFyZVRva2Vuc0xvY2tlZAIUX3NoYXJlX3Rva2Vuc19sb2NrZWQAEmtTaGFyZVRva2Vuc0xvY2tlZAIaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAC2tPcmFjbGVQb29sAgVwb29sXwANa1Bvb2xBc3NldElkcwIJYXNzZXRfaWRzAA1rQWRt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JAQEhAQkBD2NvbnRhaW5zRWxlbWVudAIJAMwIAgUMYWRtaW5QdWJLZXkxCQDMCAIFDGFkbWluUHViS2V5MgkAzAgCBQxhZG1pblB1YktleTMFA25pbAgFAWkPY2FsbGVyUHVibGljS2V5CQACAQIhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQDMCAIJAQxCb29sZWFuRW50cnkCBQdrQWN0aXZlBgkAzAgCCQELRGVsZXRlRW50cnkBBQZrQ2F1c2UFA25pbAECdHgBBnZlcmlmeQAEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAm2dC9o=", "height": 2418841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5McVCsJcuwD9i6SdKY6Mij6y423RfP51C7QWsDk1rfJ7 Next: 3GepcLtUp89Jmuj9jtTo3ypTRMrBo6wtbqNGGBfN5HpH Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "active" | |
5 | 5 | ||
6 | 6 | let b = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let c = "shutdown_cause" | |
9 | 9 | ||
10 | 10 | let d = "_pool_last_interest" | |
11 | 11 | ||
12 | 12 | let e = "_user_last_interest" | |
13 | 13 | ||
14 | 14 | let f = "_user_available_to_claim" | |
15 | 15 | ||
16 | 16 | let g = "_share_tokens_locked" | |
17 | 17 | ||
18 | 18 | let h = "_total_share_tokens_locked" | |
19 | 19 | ||
20 | 20 | let i = "pool_" | |
21 | 21 | ||
22 | 22 | let j = "asset_ids" | |
23 | 23 | ||
24 | 24 | let k = "admin_pub_1" | |
25 | 25 | ||
26 | 26 | let l = "admin_pub_2" | |
27 | 27 | ||
28 | 28 | let m = "admin_pub_3" | |
29 | 29 | ||
30 | 30 | let n = "farming_address" | |
31 | 31 | ||
32 | 32 | let o = "money_box_address" | |
33 | 33 | ||
34 | 34 | let p = 100000000 | |
35 | 35 | ||
36 | 36 | let q = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
37 | 37 | ||
38 | 38 | func r (s) = { | |
39 | 39 | let t = getString(q, s) | |
40 | 40 | if ($isInstanceOf(t, "String")) | |
41 | 41 | then { | |
42 | 42 | let u = t | |
43 | 43 | fromBase58String(u) | |
44 | 44 | } | |
45 | 45 | else { | |
46 | 46 | let v = t | |
47 | 47 | throw((s + "is empty")) | |
48 | 48 | } | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let w = r(k) | |
53 | 53 | ||
54 | 54 | let x = r(l) | |
55 | 55 | ||
56 | 56 | let y = r(m) | |
57 | 57 | ||
58 | 58 | let z = Address(r(n)) | |
59 | 59 | ||
60 | 60 | let A = Address(r(o)) | |
61 | 61 | ||
62 | 62 | let B = valueOrElse(getBoolean(this, a), true) | |
63 | 63 | ||
64 | 64 | let C = valueOrElse(getBoolean(q, b), true) | |
65 | 65 | ||
66 | 66 | func D () = if (if (B) | |
67 | 67 | then C | |
68 | 68 | else false) | |
69 | 69 | then unit | |
70 | 70 | else throw("DApp is inactive at this moment") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func E (F) = if (isDefined(getString(q, (i + toString(F))))) | |
74 | 74 | then unit | |
75 | 75 | else throw("Only pool can call this function") | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func G (F) = if ((F == z)) | |
79 | 79 | then unit | |
80 | 80 | else throw("Only farming can call this function") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func H (I) = [BooleanEntry(a, false), StringEntry(c, I)] | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func J (K,L) = valueOrElse(getInteger(z, (((K + "_") + L) + g)), 0) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func M (K) = valueOrElse(getInteger(z, (K + h)), 0) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func N (O,K,P) = valueOrElse(getInteger(this, (((((O + "_") + K) + "_") + P) + e)), 0) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func Q (K,P) = valueOrElse(getInteger(this, (((K + "_") + P) + d)), 0) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func R (O,K,P) = valueOrElse(getInteger(this, (((((O + "_") + K) + "_") + P) + f)), 0) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func S (P) = { | |
102 | 102 | let t = P | |
103 | 103 | if ($isInstanceOf(t, "ByteVector")) | |
104 | 104 | then { | |
105 | 105 | let T = t | |
106 | 106 | toBase58String(T) | |
107 | 107 | } | |
108 | 108 | else if ($isInstanceOf(t, "Unit")) | |
109 | 109 | then { | |
110 | 110 | let U = t | |
111 | 111 | "WAVES" | |
112 | 112 | } | |
113 | 113 | else throw("Match error") | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func V (K,P,O) = { | |
118 | 118 | let W = Q(K, P) | |
119 | 119 | let X = N(O, K, P) | |
120 | 120 | let Y = J(K, O) | |
121 | 121 | let Z = R(O, K, P) | |
122 | 122 | let aa = fraction(Y, (W - X), p) | |
123 | 123 | $Tuple2((Z + aa), W) | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func ab (K,O) = { | |
128 | 128 | let ac = Address(fromBase58String(K)) | |
129 | 129 | let ad = split(valueOrErrorMessage(getString(ac, j), "Can't find pool assets"), ",") | |
130 | 130 | func ae (af,P) = { | |
131 | 131 | let ag = V(K, P, O) | |
132 | 132 | let ah = ag._1 | |
133 | 133 | let W = ag._2 | |
134 | 134 | (af :+ [ah]) | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | let ai = { | |
138 | 138 | let aj = ad | |
139 | 139 | let ak = size(aj) | |
140 | 140 | let al = nil | |
141 | 141 | func am (an,ao) = if ((ao >= ak)) | |
142 | 142 | then an | |
143 | 143 | else ae(an, aj[ao]) | |
144 | 144 | ||
145 | 145 | func ap (an,ao) = if ((ao >= ak)) | |
146 | 146 | then an | |
147 | 147 | else throw("List size exceeds 15") | |
148 | 148 | ||
149 | 149 | ap(am(am(am(am(am(am(am(am(am(am(am(am(am(am(am(al, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
150 | 150 | } | |
151 | 151 | $Tuple2(ad, ai) | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | @Callable(aq) | |
156 | 156 | func airDrop () = valueOrElse(D(), valueOrElse(E(aq.caller), { | |
157 | 157 | let ar = $Tuple2(aq.payments[0].amount, aq.payments[0].assetId) | |
158 | 158 | let as = ar._1 | |
159 | 159 | let at = ar._2 | |
160 | 160 | let K = toString(aq.caller) | |
161 | 161 | let au = M(K) | |
162 | 162 | if ((au == 0)) | |
163 | 163 | then [ScriptTransfer(A, as, at)] | |
164 | 164 | else { | |
165 | 165 | let W = Q(K, S(at)) | |
166 | 166 | let av = (W + (if ((as > 0)) | |
167 | 167 | then fraction(as, p, au) | |
168 | 168 | else 0)) | |
169 | 169 | [IntegerEntry((((K + "_") + S(at)) + d), av)] | |
170 | 170 | } | |
171 | 171 | })) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | ||
175 | 175 | @Callable(aq) | |
176 | 176 | func updateUserInterest (O,K,aw) = valueOrElse(D(), valueOrElse(G(aq.caller), { | |
177 | 177 | let ac = Address(fromBase58String(K)) | |
178 | 178 | let ad = split(valueOrErrorMessage(getString(ac, j), "Can't find pool assets"), ",") | |
179 | 179 | func ax (af,P) = { | |
180 | 180 | let ay = V(K, P, O) | |
181 | 181 | let ah = ay._1 | |
182 | 182 | let W = ay._2 | |
183 | 183 | (af ++ [IntegerEntry((((((O + "_") + K) + "_") + P) + f), ah), IntegerEntry((((((O + "_") + K) + "_") + P) + e), W)]) | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | let aj = ad | |
187 | 187 | let ak = size(aj) | |
188 | 188 | let al = nil | |
189 | 189 | func am (an,ao) = if ((ao >= ak)) | |
190 | 190 | then an | |
191 | 191 | else ax(an, aj[ao]) | |
192 | 192 | ||
193 | 193 | func ap (an,ao) = if ((ao >= ak)) | |
194 | 194 | then an | |
195 | 195 | else throw("List size exceeds 15") | |
196 | 196 | ||
197 | 197 | ap(am(am(am(am(am(am(am(am(am(am(am(am(am(am(am(al, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
198 | 198 | })) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | ||
202 | 202 | @Callable(aq) | |
203 | 203 | func claim (K) = valueOrElse(D(), { | |
204 | 204 | let ac = Address(fromBase58String(K)) | |
205 | 205 | let O = toString(aq.caller) | |
206 | 206 | let ad = split(valueOrErrorMessage(getString(ac, j), "Can't find pool assets"), ",") | |
207 | 207 | func az (af,P) = { | |
208 | 208 | let aA = af | |
209 | 209 | let aB = aA._1 | |
210 | 210 | let aC = aA._2 | |
211 | 211 | let aD = V(K, P, O) | |
212 | 212 | let ah = aD._1 | |
213 | 213 | let W = aD._2 | |
214 | 214 | $Tuple2((aB ++ [ScriptTransfer(aq.caller, ah, fromBase58String(P)), IntegerEntry((((((O + "_") + K) + "_") + P) + f), 0), IntegerEntry((((((O + "_") + K) + "_") + P) + e), W)]), (aC + ah)) | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | let aE = { | |
218 | 218 | let aj = ad | |
219 | 219 | let ak = size(aj) | |
220 | 220 | let al = $Tuple2(nil, 0) | |
221 | 221 | func am (an,ao) = if ((ao >= ak)) | |
222 | 222 | then an | |
223 | 223 | else az(an, aj[ao]) | |
224 | 224 | ||
225 | 225 | func ap (an,ao) = if ((ao >= ak)) | |
226 | 226 | then an | |
227 | 227 | else throw("List size exceeds 15") | |
228 | 228 | ||
229 | 229 | ap(am(am(am(am(am(am(am(am(am(am(am(am(am(am(am(al, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
230 | 230 | } | |
231 | 231 | let aF = aE._1 | |
232 | 232 | let aG = aE._2 | |
233 | 233 | if ((aG == 0)) | |
234 | 234 | then throw("You have no tokens for claim") | |
235 | 235 | else aF | |
236 | 236 | }) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | ||
240 | 240 | @Callable(aq) | |
241 | 241 | func shutdown () = if (!(B)) | |
242 | 242 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, c), "the cause wasn't specified"))) | |
243 | 243 | else if (!(containsElement([w, x, y], aq.callerPublicKey))) | |
244 | 244 | then throw("Only admin can call this function") | |
245 | 245 | else H("Paused by admin") | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | ||
249 | 249 | @Callable(aq) | |
250 | 250 | func activate () = if (B) | |
251 | 251 | then throw("DApp is already active") | |
252 | 252 | else if (!(containsElement([w, x, y], aq.callerPublicKey))) | |
253 | 253 | then throw("Only admin can call this function") | |
254 | 254 | else [BooleanEntry(a, true), DeleteEntry(c)] | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | @Verifier(aH) | |
258 | 258 | func aI () = { | |
259 | 259 | let aJ = if (sigVerify(aH.bodyBytes, aH.proofs[0], w)) | |
260 | 260 | then 1 | |
261 | 261 | else 0 | |
262 | 262 | let aK = if (sigVerify(aH.bodyBytes, aH.proofs[1], x)) | |
263 | 263 | then 1 | |
264 | 264 | else 0 | |
265 | 265 | let aL = if (sigVerify(aH.bodyBytes, aH.proofs[2], y)) | |
266 | 266 | then 1 | |
267 | 267 | else 0 | |
268 | 268 | (((aJ + aK) + aL) >= 2) | |
269 | 269 | } | |
270 | 270 |
github/deemru/w8io/026f985 30.49 ms ◑