tx · PRJmjby2ZNY38NmUi3xT9REgFgXeBiJc7Qsy7sduBVr 3N9q1aaLDRJf2zTTccfVqD5bSF9hQydZvP1: -0.01400000 Waves 2020.12.12 22:26 [1305867] smart account 3N9q1aaLDRJf2zTTccfVqD5bSF9hQydZvP1 > SELF 0.00000000 Waves
{ "type": 13, "id": "PRJmjby2ZNY38NmUi3xT9REgFgXeBiJc7Qsy7sduBVr", "fee": 1400000, "feeAssetId": null, "timestamp": 1607801213966, "version": 1, "sender": "3N9q1aaLDRJf2zTTccfVqD5bSF9hQydZvP1", "senderPublicKey": "82Sso9xbbsrJ73fRXMFvLEyaw7ZapdR75hNjSpxUUkiq", "proofs": [ "etvcV5VmeQGTinS6D9LcAJ17vnbnQ24uqutSEAK2JAKyeFAuEfYmX2ob94QFb5DyNPEPe51VxTswfRd3mm2cApF" ], "script": "base64:AAIEAAAAAAAAABoIAhIAEgMKAQgSAwoBCBIECgIIARIECgIIAQAAAB8AAAAADGFkbWluUHViS2V5MQEAAAAgELDi6uQgdVvao3EGz2pOOnWzKruRdXrpd4DobbWyZx8AAAAADGFkbWluUHViS2V5MgEAAAAgELDi6uQgdVvao3EGz2pOOnWzKruRdXrpd4DobbWyZx8AAAAADGFkbWluUHViS2V5MwEAAAAgELDi6uQgdVvao3EGz2pOOnWzKruRdXrpd4DobbWyZx8AAAAAFGFkbWluUHViS2V5U3RhcnRTdG9wAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAASYWRtaW5QdWJLZXlTdGFraW5nAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAUa2V5U2hhcmVUb2tlbnNMb2NrZWQCAAAAGl90b3RhbF9zaGFyZV90b2tlbnNfbG9ja2VkAAAAABBrZXlDdXJyZW50UmV3YXJkAgAAAA9fY3VycmVudF9yZXdhcmQAAAAAFWtleVJld2FyZFVwZGF0ZUhlaWdodAIAAAAVX3Jld2FyZF91cGRhdGVfaGVpZ2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AQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAOY2xhaW1BbW91bnRBc2sFAAAABFNXT1AFAAAAA25pbAAAAABix20m", "chainId": 84, "height": 1305867, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CYg8fAYNMmysbH6NRXgpuipz1RJQmMghs5yYHmhQ8TB5 Next: Ckhk43HZnRk1ovDFCMKk2W79krDWEWktZwhsQbFDUKuW Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
5 | 5 | ||
6 | 6 | let b = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
7 | 7 | ||
8 | 8 | let c = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
9 | 9 | ||
10 | 10 | let d = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
11 | 11 | ||
12 | 12 | let e = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
13 | 13 | ||
14 | 14 | let f = "_total_share_tokens_locked" | |
15 | 15 | ||
16 | 16 | let g = "_current_reward" | |
17 | 17 | ||
18 | 18 | let h = "_reward_update_height" | |
19 | 19 | ||
20 | 20 | let i = "_previous_reward" | |
21 | 21 | ||
22 | 22 | let j = "_last_interest" | |
23 | 23 | ||
24 | 24 | let k = "_last_interest_height" | |
25 | 25 | ||
26 | 26 | let l = "_share_tokens_locked" | |
27 | 27 | ||
28 | 28 | let m = "_last_interest" | |
29 | 29 | ||
30 | 30 | let n = "SWOP_id" | |
31 | 31 | ||
32 | 32 | let o = "_address" | |
33 | 33 | ||
34 | 34 | let p = "_available_funds" | |
35 | 35 | ||
36 | 36 | let q = Address(base58'3N5F5DCmWNzT8ZPe1tBfiXaVYzWJriaJZ9E') | |
37 | 37 | ||
38 | 38 | let r = fromBase58String(getStringValue(this, n)) | |
39 | 39 | ||
40 | 40 | let s = getIntegerValue(this, "height_reward_update") | |
41 | 41 | ||
42 | 42 | func t () = throw("Only admin can call this function") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func u () = throw("DApp is already active") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func v (w) = valueOrErrorMessage(getInteger(this, (w + f)), (("No data on the key: " + w) + f)) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (w) = fromBase58String(getStringValue(value(addressFromString(w)), "share_asset_id")) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func y (z,A) = { | |
55 | 55 | let B = value(assetInfo(z)).decimals | |
56 | 56 | let C = value(assetInfo(A)).decimals | |
57 | 57 | let D = ((C - B) + 8) | |
58 | 58 | pow(10, 0, D, 0, 0, HALFDOWN) | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func E (w,F) = { | |
63 | 63 | let G = getInteger(this, ((((w + "_") + toString(F)) + "_") + p)) | |
64 | 64 | let H = { | |
65 | 65 | let I = G | |
66 | 66 | if ($isInstanceOf(I, "Int")) | |
67 | 67 | then { | |
68 | 68 | let H = I | |
69 | 69 | H | |
70 | 70 | } | |
71 | 71 | else if ($isInstanceOf(I, "Unit")) | |
72 | 72 | then { | |
73 | 73 | let H = I | |
74 | 74 | 0 | |
75 | 75 | } | |
76 | 76 | else throw("Match error") | |
77 | 77 | } | |
78 | 78 | H | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func J (w) = { | |
83 | 83 | let K = valueOrErrorMessage(getInteger(q, (w + g)), (((("No data on the key: " + w) + g) + " at address ") + toString(q))) | |
84 | 84 | let L = valueOrErrorMessage(getInteger(q, (w + h)), (((("No data on the key: " + w) + h) + " at address ") + toString(q))) | |
85 | 85 | let M = valueOrErrorMessage(getInteger(q, (w + h)), (((("No data on the key: " + w) + i) + " at address ") + toString(q))) | |
86 | 86 | $Tuple3(K, L, M) | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func N (w) = { | |
91 | 91 | let O = valueOrErrorMessage(getInteger(this, (w + j)), (((("No data on the key: " + w) + "_") + w) + j)) | |
92 | 92 | let P = valueOrErrorMessage(getInteger(this, (w + k)), (("No data on the key: " + w) + k)) | |
93 | 93 | $Tuple2(P, O) | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func Q (w,R) = { | |
98 | 98 | let S = getInteger(this, (((w + "_") + toString(R)) + m)) | |
99 | 99 | let T = getInteger(this, (((w + "_") + toString(R)) + l)) | |
100 | 100 | let U = { | |
101 | 101 | let I = S | |
102 | 102 | if ($isInstanceOf(I, "Int")) | |
103 | 103 | then { | |
104 | 104 | let S = I | |
105 | 105 | S | |
106 | 106 | } | |
107 | 107 | else 0 | |
108 | 108 | } | |
109 | 109 | let V = { | |
110 | 110 | let I = T | |
111 | 111 | if ($isInstanceOf(I, "Int")) | |
112 | 112 | then { | |
113 | 113 | let T = I | |
114 | 114 | T | |
115 | 115 | } | |
116 | 116 | else 0 | |
117 | 117 | } | |
118 | 118 | $Tuple2(U, V) | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func W (P,L,O,X,Y,Z,aa,ab) = if ((P > L)) | |
123 | 123 | then if ((Y == 0)) | |
124 | 124 | then 0 | |
125 | 125 | else { | |
126 | 126 | let ac = (X * (height - P)) | |
127 | 127 | (O + fraction(ac, ab, Y)) | |
128 | 128 | } | |
129 | 129 | else { | |
130 | 130 | let ad = (Z * (L - P)) | |
131 | 131 | let ae = (O + fraction(ad, ab, Y)) | |
132 | 132 | let ac = (X * (height - L)) | |
133 | 133 | (ae + fraction(ac, ab, Y)) | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func af (w,ag) = { | |
138 | 138 | let aa = x(w) | |
139 | 139 | let ab = y(r, aa) | |
140 | 140 | let Y = v(w) | |
141 | 141 | let ah = N(w) | |
142 | 142 | let P = ah._1 | |
143 | 143 | let O = ah._2 | |
144 | 144 | let ai = J(w) | |
145 | 145 | let X = ai._1 | |
146 | 146 | let L = ai._2 | |
147 | 147 | let Z = ai._3 | |
148 | 148 | let aj = Q(w, ag) | |
149 | 149 | let S = aj._1 | |
150 | 150 | let V = aj._2 | |
151 | 151 | let ak = W(P, L, O, X, Y, Z, aa, ab) | |
152 | 152 | let al = fraction(V, (ak - S), ab) | |
153 | 153 | let am = ak | |
154 | 154 | $Tuple4(am, ak, al, V) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func an (w,ao) = { | |
159 | 159 | let ap = value(addressFromString(getStringValue(this, (w + o)))) | |
160 | 160 | let aq = fromBase58String(getStringValue(ap, "share_asset_id")) | |
161 | 161 | if ((ao == aq)) | |
162 | 162 | then true | |
163 | 163 | else false | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(ar) | |
168 | 168 | func init () = if (!(containsElement([a, b, c], ar.callerPublicKey))) | |
169 | 169 | then throw("Only admin can call this function") | |
170 | 170 | else { | |
171 | 171 | let as = Issue("SWOP", "SWOP protocol token", 1, 8, true) | |
172 | 172 | let at = calculateAssetId(as) | |
173 | 173 | [Issue("SWOP", "SWOP protocol token", 1, 8, true), StringEntry(n, toBase58String(at))] | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(ar) | |
179 | 179 | func initPoolShareLocking (w) = if (!(containsElement([a, b, c], ar.callerPublicKey))) | |
180 | 180 | then throw("Only admin can call this function") | |
181 | 181 | else { | |
182 | 182 | let au = J(w) | |
183 | 183 | let K = au._1 | |
184 | 184 | let L = au._2 | |
185 | 185 | let Z = au._3 | |
186 | 186 | [StringEntry((w + o), w), IntegerEntry((w + f), 0), IntegerEntry((w + g), 0), IntegerEntry((w + j), 0), IntegerEntry((w + k), height), IntegerEntry((w + h), L), IntegerEntry((w + i), Z)] | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(ar) | |
192 | 192 | func lockShareTokens (w) = { | |
193 | 193 | let av = $Tuple2(ar.payments[0].amount, ar.payments[0].assetId) | |
194 | 194 | let aw = av._1 | |
195 | 195 | let ao = av._2 | |
196 | 196 | if (!(an(w, ao))) | |
197 | 197 | then throw("Incorrect pmtAssetId") | |
198 | 198 | else { | |
199 | 199 | let ax = af(w, ar.caller) | |
200 | 200 | let am = ax._1 | |
201 | 201 | let ak = ax._2 | |
202 | 202 | let al = ax._3 | |
203 | 203 | let V = ax._4 | |
204 | 204 | let ay = (V + aw) | |
205 | 205 | let az = (E(w, ar.caller) + al) | |
206 | 206 | let aA = v(w) | |
207 | 207 | let aB = (aA + aw) | |
208 | 208 | [IntegerEntry((((w + "_") + toString(ar.caller)) + m), am), IntegerEntry((((w + "_") + toString(ar.caller)) + l), ay), IntegerEntry((w + j), ak), IntegerEntry((w + k), height), IntegerEntry((w + f), aB), IntegerEntry(((((w + "_") + toString(ar.caller)) + "_") + p), az)] | |
209 | 209 | } | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(ar) | |
215 | 215 | func withdrawShareTokens (w,aC) = { | |
216 | 216 | let aD = af(w, ar.caller) | |
217 | 217 | let am = aD._1 | |
218 | 218 | let ak = aD._2 | |
219 | 219 | let al = aD._3 | |
220 | 220 | let V = aD._4 | |
221 | 221 | if ((aC > V)) | |
222 | 222 | then throw("Withdraw amount more then user locked amount") | |
223 | 223 | else { | |
224 | 224 | let ay = (V - aC) | |
225 | 225 | let az = (E(w, ar.caller) + al) | |
226 | 226 | let aE = fromBase58String(getStringValue(value(addressFromString(w)), "share_asset_id")) | |
227 | 227 | [IntegerEntry((((w + "_") + toString(ar.caller)) + m), am), IntegerEntry((((w + "_") + toString(ar.caller)) + l), ay), IntegerEntry((w + j), ak), IntegerEntry((w + k), height), IntegerEntry(((((w + "_") + toString(ar.caller)) + "_") + p), az), ScriptTransfer(ar.caller, aC, aE)] | |
228 | 228 | } | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(ar) | |
234 | 234 | func claim (w,aF) = { | |
235 | 235 | let Y = v(w) | |
236 | 236 | let aG = N(w) | |
237 | 237 | let P = aG._1 | |
238 | 238 | let O = aG._2 | |
239 | 239 | let aH = J(w) | |
240 | 240 | let X = aH._1 | |
241 | 241 | let L = aH._2 | |
242 | 242 | let Z = aH._3 | |
243 | 243 | let aI = af(w, ar.caller) | |
244 | 244 | let am = aI._1 | |
245 | 245 | let ak = aI._2 | |
246 | 246 | let al = aI._3 | |
247 | 247 | let V = aI._4 | |
248 | 248 | let aJ = (E(w, ar.caller) + al) | |
249 | 249 | if ((aF > aJ)) | |
250 | 250 | then throw(((("You ask more SWOP then you have. Available SWOP: " + toString(aJ)) + ". You ask: ") + toString(aF))) | |
251 | 251 | else { | |
252 | 252 | let az = (aJ - aF) | |
253 | 253 | [IntegerEntry((((w + "_") + toString(ar.caller)) + m), am), IntegerEntry(((w + "_") + j), ak), IntegerEntry(((w + "_") + k), height), IntegerEntry(((((w + "_") + toString(ar.caller)) + "_") + p), az), Reissue(r, aF, true), ScriptTransfer(ar.caller, aF, r)] | |
254 | 254 | } | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 |
github/deemru/w8io/026f985 52.82 ms ◑