tx · CUZCV8h3PQ3ZPWCYssp1NrHcBeRkdZNygPKHeD79jC7t 3NC1z7rSjmjRbrab3ja4DcnCw1xZkauKhSo: -0.01400000 Waves 2020.11.03 13:02 [1248974] smart account 3NC1z7rSjmjRbrab3ja4DcnCw1xZkauKhSo > SELF 0.00000000 Waves
{ "type": 13, "id": "CUZCV8h3PQ3ZPWCYssp1NrHcBeRkdZNygPKHeD79jC7t", "fee": 1400000, "feeAssetId": null, "timestamp": 1604397769608, "version": 1, "sender": "3NC1z7rSjmjRbrab3ja4DcnCw1xZkauKhSo", "senderPublicKey": "FyXgaE6rRdPKPgcSheVHX7SMhDdiGGdcq2vD3HCazAwC", "proofs": [ "3xP5zuyVAeNe8MTszPFxcCsvATXVnGhgY5dzL4H4u2BrcBeZiGhDxcnan4Lhw41ijMGMb6W2CnPVxQ1cYmKxdMJA" ], "script": "base64:AAIEAAAAAAAAABMIAhIAEgASBAoCCAgSABIDCgEIAAAAYgEAAAARa2V5QWNjdW11bGF0ZWRGZWUAAAAAAgAAABIlc19fYWNjdW11bGF0ZWRGZWUBAAAADmtleVVjb2xsYXRlcmFsAAAAAAIAAAAPJXNfX3Vjb2xsYXRlcmFsAQAAABlrZXlUb3RhbExlbmRlZEF0T3RoZXJBY2NzAAAAAAIAAAAaJXNfX3RvdGFsTGVuZGVkQXRPdGhlckFjY3MBAAAAE2tleUFzc2V0TG9ja2VkVG90YWwAAAABAAAAB2Fzc2V0SWQJAAEsAAAAAgIAAAAYJXMlc19fYXNzZXRMb2NrZWRUb3RhbF9fBQAAAAdhc3NldElkAQAAABNrZXlBY2NvdW50T3BlcmF0aW9uAAAAAwAAAAx1bmxvY2tIZWlnaHQAAAAHYWRkcmVzcwAAAAZzdGF0dXMJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAB4lcyVzJWQlc19fZGVmb0Fzc2V0T3BlcmF0aW9uX18FAAAAB2FkZHJlc3MCAAAAAl9fCQABpAAAAAEFAA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gAAAA5sb2NrTmV1dHJpbm9TUAYJAAAAAAAAAggFAAAAA2ludgAAAAhmdW5jdGlvbgIAAAAOdW5sb2NrTmV1dHJpbm8DCQEAAAACIT0AAAACCQAEJQAAAAEFAAAAEm5ldXRyaW5vU3Rha2luZ0FjYwkABCUAAAABCQAEJAAAAAEIBQAAAANpbnYAAAAEZEFwcAkAAAIAAAABAgAAACVpbnZhbGlkIG5ldXRyaW5vIHN0YWtpbmcgZGFwcCBhZGRyZXNzCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkBAAAAImZhY3RvcnlSZWFkRGVmb1N0YWtpbmdQYWNlbWFrZXJQdWIAAAAACQAAAgAAAAECAAAAI05vdCBhbGxvd2VkIGludm9jYXRpb24gbWV0aG9kIGNhbGxzCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQG6mDs=", "chainId": 84, "height": 1248974, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7Ckw5CqTyCGLYNgMo5wGcZz125XzRBADfnLjJycWbr64 Next: 7sG4spNo6XVM5fQScJpRYsvV4js3Q7jWHL1m75xvL1e2 Diff:
Old | New | Differences | |
---|---|---|---|
77 | 77 | func W () = "%s%s__commonConfig__defoStakingPacemakerPub" | |
78 | 78 | ||
79 | 79 | ||
80 | - | func X () = | |
80 | + | func X (V,Y,Z) = makeString(["%s%s%s%d%s__pool", V, Y, toString(Z), "liquidityRequest"], "__") | |
81 | 81 | ||
82 | 82 | ||
83 | - | func | |
83 | + | func aa (V,Y) = makeString(["%s%s%s%s__pool", V, Y, "unlockHeight"], "__") | |
84 | 84 | ||
85 | 85 | ||
86 | - | func Z (l) = { | |
86 | + | func ab () = valueOrErrorMessage(getString(M, N()), ((("No config at factory=" + toString(M)) + " for key=") + N())) | |
87 | + | ||
88 | + | ||
89 | + | func ac (Q) = split(valueOrErrorMessage(getString(M, P(Q)), ((("No config at factory=" + toString(M)) + " for key=") + P(Q))), "__") | |
90 | + | ||
91 | + | ||
92 | + | func ad (l) = { | |
87 | 93 | let Q = valueOrErrorMessage(getString(M, T(l)), ((("No config at factory=" + toString(M)) + " for key=") + T(l))) | |
88 | - | $Tuple2(Q, | |
94 | + | $Tuple2(Q, ac(Q)) | |
89 | 95 | } | |
90 | 96 | ||
91 | 97 | ||
92 | - | func | |
98 | + | func ae (Q) = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, U(Q)), ((("No config at factory=" + toString(M)) + " for key=") + U(Q)))), ("address extraction error for key=" + U(Q))) | |
93 | 99 | ||
94 | 100 | ||
95 | - | func | |
101 | + | func af () = fromBase58String(valueOrErrorMessage(getString(M, W()), ((("No config at factory=" + toString(M)) + " for key=") + W()))) | |
96 | 102 | ||
97 | 103 | ||
98 | - | let | |
104 | + | let ag = 1 | |
99 | 105 | ||
100 | - | let | |
106 | + | let ah = 2 | |
101 | 107 | ||
102 | - | let | |
108 | + | let ai = 3 | |
103 | 109 | ||
104 | - | let | |
110 | + | let aj = 4 | |
105 | 111 | ||
106 | - | let | |
112 | + | let ak = 5 | |
107 | 113 | ||
108 | - | let | |
114 | + | let al = 6 | |
109 | 115 | ||
110 | - | let | |
116 | + | let am = 7 | |
111 | 117 | ||
112 | - | let | |
118 | + | let an = 8 | |
113 | 119 | ||
114 | - | let | |
120 | + | let ao = 9 | |
115 | 121 | ||
116 | - | let | |
122 | + | let ap = 10 | |
117 | 123 | ||
118 | - | let | |
124 | + | let aq = 11 | |
119 | 125 | ||
120 | - | let | |
126 | + | let ar = 12 | |
121 | 127 | ||
122 | - | let | |
128 | + | let as = 13 | |
123 | 129 | ||
124 | - | let | |
130 | + | let at = 14 | |
125 | 131 | ||
126 | - | let | |
132 | + | let au = 15 | |
127 | 133 | ||
128 | - | let | |
134 | + | let av = 16 | |
129 | 135 | ||
130 | - | let | |
136 | + | let aw = ac(toString(this)) | |
131 | 137 | ||
132 | - | let | |
138 | + | let ax = aw[ag] | |
133 | 139 | ||
134 | - | let | |
140 | + | let ay = aw[ah] | |
135 | 141 | ||
136 | - | let | |
142 | + | let az = fromBase58String(ay) | |
137 | 143 | ||
138 | - | let | |
144 | + | let aA = addressFromStringValue(aw[an]) | |
139 | 145 | ||
140 | - | let | |
146 | + | let aB = parseIntValue(aw[al]) | |
141 | 147 | ||
142 | - | let | |
148 | + | let aC = aw[ak] | |
143 | 149 | ||
144 | - | let | |
150 | + | let aD = fromBase58String(aC) | |
145 | 151 | ||
146 | - | let | |
152 | + | let aE = parseIntValue(aw[aj]) | |
147 | 153 | ||
148 | - | let | |
154 | + | let aF = parseIntValue(aw[ao]) | |
149 | 155 | ||
150 | - | let | |
156 | + | let aG = parseIntValue(aw[ap]) | |
151 | 157 | ||
152 | - | let | |
158 | + | let aH = parseIntValue(aw[aq]) | |
153 | 159 | ||
154 | - | let | |
160 | + | let aI = parseIntValue(aw[ar]) | |
155 | 161 | ||
156 | - | func aF () = "%s__isBlocked" | |
162 | + | let aJ = parseIntValue(aw[as]) | |
163 | + | ||
164 | + | let aK = parseIntValue(aw[at]) | |
165 | + | ||
166 | + | let aL = parseIntValue(aw[av]) | |
167 | + | ||
168 | + | func aM () = "%s__isBlocked" | |
157 | 169 | ||
158 | 170 | ||
159 | - | let aG = valueOrElse(getBoolean(au, aF()), false) | |
160 | - | ||
161 | - | func aH (l) = valueOrErrorMessage(getInteger(au, m(l)), ((("No price at priceOracle=" + toString(au)) + " for key=") + m(l))) | |
171 | + | func aN (l) = ("%s%s__isMarketOpened__" + l) | |
162 | 172 | ||
163 | 173 | ||
164 | - | func aI (l) = valueOrErrorMessage(getInteger(au, n(l)), ((("No lastHeight at priceOracle=" + toString(au)) + " for key=") + n(l))) | |
174 | + | let aO = valueOrElse(getBoolean(aA, aM()), false) | |
175 | + | ||
176 | + | let aP = valueOrElse(getBoolean(aA, aN(ax)), false) | |
177 | + | ||
178 | + | func aQ (l) = valueOrErrorMessage(getInteger(aA, m(l)), ((("No price at priceOracle=" + toString(aA)) + " for key=") + m(l))) | |
165 | 179 | ||
166 | 180 | ||
167 | - | func | |
181 | + | func aR (l) = valueOrErrorMessage(getInteger(aA, n(l)), ((("No lastHeight at priceOracle=" + toString(aA)) + " for key=") + n(l))) | |
168 | 182 | ||
169 | 183 | ||
170 | - | func aK (aL) = { | |
171 | - | let aM = ("idxHeight_" + toString(aL)) | |
172 | - | valueOrElse(getInteger(au, aM), 0) | |
184 | + | func aS () = valueOrErrorMessage(getInteger(aA, "currIdx"), ("No currIdx at controlAcc=" + toString(aA))) | |
185 | + | ||
186 | + | ||
187 | + | func aT (aU) = { | |
188 | + | let aV = ("idxHeight_" + toString(aU)) | |
189 | + | valueOrElse(getInteger(aA, aV), 0) | |
173 | 190 | } | |
174 | 191 | ||
175 | 192 | ||
176 | - | func | |
177 | - | let | |
178 | - | valueOrErrorMessage(getInteger( | |
193 | + | func aW (aX) = { | |
194 | + | let aY = ("price_" + toString(aX)) | |
195 | + | valueOrErrorMessage(getInteger(aA, aY), ((("No " + aY) + " at controlAcc=") + toString(aA))) | |
179 | 196 | } | |
180 | 197 | ||
181 | 198 | ||
182 | - | let | |
199 | + | let aZ = aR(ax) | |
183 | 200 | ||
184 | - | let | |
201 | + | let ba = ((aZ - aZ) > 5) | |
185 | 202 | ||
186 | - | let | |
203 | + | let bb = "%s%s__commonConfig__defoStakingAddress" | |
187 | 204 | ||
188 | - | let | |
205 | + | let bc = "%s%s__commonConfig__neutrinoStakingAddress" | |
189 | 206 | ||
190 | - | func | |
207 | + | func bd (e) = ("%s%s__stakingBalance__" + e) | |
191 | 208 | ||
192 | 209 | ||
193 | - | func | |
210 | + | func be () = ((("rpd_balance_" + aC) + "_") + toString(this)) | |
194 | 211 | ||
195 | 212 | ||
196 | - | let | |
213 | + | let bf = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bb), ((("No config at factoryAcc" + toString(M)) + " for key=") + bb))), ("address extraction error for key=" + bb)) | |
197 | 214 | ||
198 | - | let | |
215 | + | let bg = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bc), ((("No config at factoryAcc" + toString(M)) + " for key=") + bc))), ("address extraction error for key=" + bc)) | |
199 | 216 | ||
200 | - | func | |
217 | + | func bh () = valueOrElse(getInteger(bf, bd(ay)), 0) | |
201 | 218 | ||
202 | 219 | ||
203 | - | func | |
220 | + | func bi () = valueOrElse(getInteger(bg, be()), 0) | |
204 | 221 | ||
205 | 222 | ||
206 | - | let | |
223 | + | let bj = valueOrElse(getInteger(this, b()), 0) | |
207 | 224 | ||
208 | - | let | |
225 | + | let bk = valueOrElse(getInteger(this, a()), 0) | |
209 | 226 | ||
210 | - | let | |
227 | + | let bl = getIntegerValue(M, R(this)) | |
211 | 228 | ||
212 | - | let | |
229 | + | let bm = fromBase58String(ab()) | |
213 | 230 | ||
214 | - | let | |
231 | + | let bn = getIntegerValue(M, O()) | |
215 | 232 | ||
216 | - | let | |
233 | + | let bo = (bn - assetBalance(this, bm)) | |
217 | 234 | ||
218 | - | let | |
235 | + | let bp = ((assetBalance(this, aD) + bi()) + bo) | |
219 | 236 | ||
220 | - | let | |
237 | + | let bq = aQ(aw[ag]) | |
221 | 238 | ||
222 | - | let | |
239 | + | let br = (value(assetInfo(az)).quantity - assetBalance(this, az)) | |
223 | 240 | ||
224 | - | let bi = (value(assetInfo(at)).quantity - assetBalance(this, at)) | |
241 | + | func bs (bt) = if (aP) | |
242 | + | then bq | |
243 | + | else fraction((aE - bt), bq, aE) | |
225 | 244 | ||
226 | - | func bj (bk,bl,bm,bn,bo,bp) = { | |
227 | - | let bq = fraction(bl, bo, ay) | |
228 | - | let br = fraction((ay - bp), bq, ay) | |
229 | - | let A = (bq - br) | |
230 | - | let bs = fraction(bq, ay, bo) | |
231 | - | let bt = (bl - bs) | |
232 | - | if (if ((bn > bl)) | |
233 | - | then (toString(bk) != toString(aW)) | |
245 | + | ||
246 | + | func bu (bt) = if (aP) | |
247 | + | then bq | |
248 | + | else fraction((aE + bt), bq, aE) | |
249 | + | ||
250 | + | ||
251 | + | func bv (bw,bt) = if (aP) | |
252 | + | then bw | |
253 | + | else fraction((aE + bt), bw, aE) | |
254 | + | ||
255 | + | ||
256 | + | func bx (by,bz,bA,bB,bC,bD) = { | |
257 | + | let bE = fraction(bz, bC, aE) | |
258 | + | let bF = fraction((aE - bD), bE, aE) | |
259 | + | let A = (bE - bF) | |
260 | + | let bG = fraction(bE, aE, bC) | |
261 | + | let bH = (bz - bG) | |
262 | + | if (if ((bB > bz)) | |
263 | + | then (toString(by) != toString(bf)) | |
234 | 264 | else false) | |
235 | - | then throw(((((("impossible to issue new " + | |
236 | - | else $Tuple2([IntegerEntry(b(), ( | |
265 | + | then throw(((((("impossible to issue new " + ax) + ": payment=") + toString(bz)) + "is less then min amount=") + toString(bB))) | |
266 | + | else $Tuple2([IntegerEntry(b(), (bj + bG)), StringEntry(f(height, toString(by), "FINISHED"), t(bz, toBase58String(bA), bq, bF, toBase58String(az), bE, A)), Reissue(az, (bF + A), true), ScriptTransfer(by, bF, az), ScriptTransfer(by, bH, bA), ScriptTransfer(ae(toString(this)), A, az), IntegerEntry(a(), (bk + A))], bH) | |
237 | 267 | } | |
238 | 268 | ||
239 | 269 | ||
240 | - | @Callable(bu) | |
241 | - | func buyAsset () = throw("NGN buyAsset operation is temporary unavailable") | |
270 | + | @Callable(bI) | |
271 | + | func buyAsset () = { | |
272 | + | let bJ = value(bI.payments[0]) | |
273 | + | let bK = value(bJ.assetId) | |
274 | + | if (aO) | |
275 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
276 | + | else if (ba) | |
277 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height))) | |
278 | + | else if ((bK != aD)) | |
279 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(aD)) + " actual=") + toBase58String(bK))) | |
280 | + | else bx(bI.caller, bJ.amount, bK, aF, bs(aL), aJ)._1 | |
281 | + | } | |
242 | 282 | ||
243 | 283 | ||
244 | 284 | ||
245 | - | @Callable( | |
285 | + | @Callable(bI) | |
246 | 286 | func sellAsset () = { | |
247 | - | let bv = value(bu.payments[0]) | |
248 | - | let bw = value(bv.assetId) | |
249 | - | let bx = toString(bu.caller) | |
250 | - | if (aG) | |
287 | + | let bJ = value(bI.payments[0]) | |
288 | + | let bL = value(bJ.assetId) | |
289 | + | let bM = toString(bI.caller) | |
290 | + | let bN = bu(aL) | |
291 | + | if (aO) | |
251 | 292 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
252 | - | else if ( | |
253 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
254 | - | else if (( | |
255 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
256 | - | else if (( | |
257 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
293 | + | else if (ba) | |
294 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height))) | |
295 | + | else if ((bL != az)) | |
296 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(az)) + " actual=") + toBase58String(bL))) | |
297 | + | else if ((aG > bJ.amount)) | |
298 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(bJ.amount)) + " minAmount=") + toString(aG))) | |
258 | 299 | else { | |
259 | - | let | |
260 | - | let | |
261 | - | then | |
262 | - | else | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | [IntegerEntry(b(), ( | |
300 | + | let bO = fraction(bJ.amount, aE, bN) | |
301 | + | let bP = if ((bO > bp)) | |
302 | + | then bp | |
303 | + | else bO | |
304 | + | let bQ = fraction(bP, bN, aE) | |
305 | + | let bH = (bJ.amount - bQ) | |
306 | + | let bR = fraction(aK, bQ, aE) | |
307 | + | let bS = (bQ - bR) | |
308 | + | let bT = fraction(bS, aE, bN) | |
309 | + | [IntegerEntry(b(), (bj - bT)), StringEntry(f(height, bM, "FINISHED"), t(bJ.amount, toBase58String(bL), bN, bT, aC, bQ, bR)), Burn(az, bS), ScriptTransfer(bI.caller, bT, aD), ScriptTransfer(bI.caller, bH, az), ScriptTransfer(ae(toString(this)), bR, az), IntegerEntry(a(), (bk + bR))] | |
269 | 310 | } | |
270 | 311 | } | |
271 | 312 | ||
272 | 313 | ||
273 | 314 | ||
274 | - | @Callable(bu) | |
275 | - | func crossExchange (bE,bF) = throw("NGN crossExchange operation is temporary unavailable") | |
276 | - | ||
277 | - | ||
278 | - | ||
279 | - | @Callable(bu) | |
280 | - | func rebalanceDebts () = { | |
281 | - | let bG = value(bu.payments[0]) | |
282 | - | let bH = value(bG.assetId) | |
283 | - | let bI = value(bu.payments[1]) | |
284 | - | let bJ = value(bI.assetId) | |
285 | - | let bK = toString(bu.caller) | |
286 | - | let bL = Y(bK) | |
287 | - | let C = bL[ac] | |
288 | - | let bM = k(C) | |
289 | - | let bN = valueOrErrorMessage(getInteger(this, bM), ("No debts for " + C)) | |
290 | - | if (aG) | |
315 | + | @Callable(bI) | |
316 | + | func crossExchange (bU,bV) = { | |
317 | + | let bJ = value(bI.payments[0]) | |
318 | + | let bL = value(bJ.assetId) | |
319 | + | let bW = toBase58String(bL) | |
320 | + | let bX = bJ.amount | |
321 | + | let bM = toString(bI.caller) | |
322 | + | let bY = aw | |
323 | + | let bZ = ad(bV) | |
324 | + | let ca = bZ._2 | |
325 | + | let cb = valueOrErrorMessage(addressFromString(bZ._1), ("couldn't parse address from string for assetCode=" + bV)) | |
326 | + | let cc = valueOrErrorMessage(parseInt(ca[ap]), ("minSellPmt parsing error: rawVal=" + ca[ap])) | |
327 | + | let cd = aR(bV) | |
328 | + | let ce = ((cd - cd) > 5) | |
329 | + | if (aO) | |
291 | 330 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
292 | - | else if (( | |
293 | - | then throw((((" | |
294 | - | else if (( | |
295 | - | then throw((((" | |
296 | - | else if (( | |
297 | - | then throw(" | |
298 | - | else if (( | |
299 | - | then throw((" | |
300 | - | else if ( | |
301 | - | then throw((" | |
302 | - | else if ( | |
303 | - | then throw((((" | |
331 | + | else if ((aw[ag] != bU)) | |
332 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + aw[ag]) + " BUT buyAssetId=") + bU)) | |
333 | + | else if ((ca[ah] != bW)) | |
334 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + ca[ah]) + "BUT pmtAsset=") + bW)) | |
335 | + | else if ((aw[ai] != "ISSUED")) | |
336 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + bU) + " BUT status=") + aw[ai])) | |
337 | + | else if ((ca[ai] != "ISSUED")) | |
338 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + bW) + " BUT status=") + ca[ai])) | |
339 | + | else if (ba) | |
340 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height)) + " buyCode=") + bU)) | |
341 | + | else if (ce) | |
342 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height)) + " sellCode=") + bV)) | |
304 | 343 | else { | |
305 | - | let bO = valueOrElse(getInteger(this, c()), 0) | |
306 | - | let G = (bN - bG.amount) | |
307 | - | [IntegerEntry(bM, G), IntegerEntry(c(), (bO - bG.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bu.transactionId)), B(C, bG, bI, bN, G))] | |
344 | + | let cf = bs((aL / 2)) | |
345 | + | let cg = bv(aQ(bV), (aL / 2)) | |
346 | + | let bC = fraction(cf, aE, cg) | |
347 | + | let ch = fraction(bX, aE, cg) | |
348 | + | let ci = valueOrElse(getInteger(this, c()), 0) | |
349 | + | let cj = k(bV) | |
350 | + | let ck = valueOrElse(getInteger(this, cj), 0) | |
351 | + | let cl = parseIntValue(ca[at]) | |
352 | + | let cm = bx(bI.caller, bX, bL, cc, bC, fraction((aJ + cl), 50, 100)) | |
353 | + | ((((cm._1 :+ ScriptTransfer(cb, ch, bm)) :+ ScriptTransfer(cb, (bX - cm._2), bL)) :+ IntegerEntry(cj, (ck + ch))) :+ IntegerEntry(c(), (ci + ch))) | |
308 | 354 | } | |
309 | 355 | } | |
310 | 356 | ||
311 | 357 | ||
312 | - | @Verifier(bP) | |
313 | - | func bQ () = { | |
314 | - | let bR = bP | |
315 | - | if ($isInstanceOf(bR, "InvokeScriptTransaction")) | |
358 | + | ||
359 | + | @Callable(bI) | |
360 | + | func rebalanceDebts () = { | |
361 | + | let cn = value(bI.payments[0]) | |
362 | + | let co = value(cn.assetId) | |
363 | + | let cp = value(bI.payments[1]) | |
364 | + | let cq = value(cp.assetId) | |
365 | + | let cr = toString(bI.caller) | |
366 | + | let cs = ac(cr) | |
367 | + | let C = cs[ag] | |
368 | + | let cj = k(C) | |
369 | + | let ct = valueOrErrorMessage(getInteger(this, cj), ("No debts for " + C)) | |
370 | + | if (aO) | |
371 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
372 | + | else if ((bm != co)) | |
373 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bm)) + " actual=") + toBase58String(co))) | |
374 | + | else if ((aD != cq)) | |
375 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(aD)) + " actual=") + toBase58String(cq))) | |
376 | + | else if ((cn.amount != cp.amount)) | |
377 | + | then throw("first payment amount doesn't match to the second payment amount") | |
378 | + | else if ((0 >= ct)) | |
379 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(ct))) | |
380 | + | else if (((100 * aE) >= cn.amount)) | |
381 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cn.amount))) | |
382 | + | else if ((cn.amount > ct)) | |
383 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cn.amount)) + " lendedAmt=") + toString(ct))) | |
384 | + | else { | |
385 | + | let ci = valueOrElse(getInteger(this, c()), 0) | |
386 | + | let G = (ct - cn.amount) | |
387 | + | [IntegerEntry(cj, G), IntegerEntry(c(), (ci - cn.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bI.transactionId)), B(C, cn, cp, ct, G))] | |
388 | + | } | |
389 | + | } | |
390 | + | ||
391 | + | ||
392 | + | ||
393 | + | @Callable(bI) | |
394 | + | func fulfillRedeemRequest (Y) = { | |
395 | + | let cu = toString(this) | |
396 | + | let cv = aa(cu, Y) | |
397 | + | let cw = valueOrElse(getInteger(M, cv), 0) | |
398 | + | if ((0 >= cw)) | |
399 | + | then throw("All liquidity request fulfilled") | |
400 | + | else { | |
401 | + | let cx = X(cu, Y, cw) | |
402 | + | let cy = valueOrErrorMessage(getInteger(M, cx), "Empty poolMakerLiquidityRequestKey at factory acc") | |
403 | + | if (isDefined(getInteger(this, cx))) | |
404 | + | then throw("Liquidity request has been already fulfilled") | |
405 | + | else [IntegerEntry(cx, cy), ScriptTransfer(M, cy, aD)] | |
406 | + | } | |
407 | + | } | |
408 | + | ||
409 | + | ||
410 | + | @Verifier(cz) | |
411 | + | func cA () = { | |
412 | + | let cB = cz | |
413 | + | if ($isInstanceOf(cB, "InvokeScriptTransaction")) | |
316 | 414 | then { | |
317 | - | let | |
318 | - | if (( | |
319 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
320 | - | else if (isDefined( | |
415 | + | let cC = cB | |
416 | + | if ((cC.fee > (900 * 1000))) | |
417 | + | then throw(("fee amount is greater than max allowed: " + toString(cC.fee))) | |
418 | + | else if (isDefined(cC.feeAssetId)) | |
321 | 419 | then throw("only Waves is allowed as feeAssetId") | |
322 | - | else if (( | |
420 | + | else if ((cC.function == "rebalanceDebts")) | |
323 | 421 | then { | |
324 | - | let | |
325 | - | if (( | |
422 | + | let cD = toString(addressFromRecipient(cC.dApp)) | |
423 | + | if ((ac(cD)[ai] != "ISSUED")) | |
326 | 424 | then throw("only defo dapp is allowed") | |
327 | - | else if (( | |
425 | + | else if ((cD == toString(this))) | |
328 | 426 | then throw("impossible to call self rebealnceDebt") | |
329 | 427 | else true | |
330 | 428 | } | |
331 | - | else if (if (if (( | |
429 | + | else if (if (if ((cC.function == "lockNeutrino")) | |
332 | 430 | then true | |
333 | - | else ( | |
431 | + | else (cC.function == "lockNeutrinoSP")) | |
334 | 432 | then true | |
335 | - | else ( | |
336 | - | then if ((toString( | |
433 | + | else (cC.function == "unlockNeutrino")) | |
434 | + | then if ((toString(bg) != toString(addressFromRecipient(cC.dApp)))) | |
337 | 435 | then throw("invalid neutrino staking dapp address") | |
338 | - | else sigVerify( | |
436 | + | else sigVerify(cz.bodyBytes, cz.proofs[0], af()) | |
339 | 437 | else throw("Not allowed invocation method calls") | |
340 | 438 | } | |
341 | - | else sigVerify( | |
439 | + | else sigVerify(cz.bodyBytes, cz.proofs[0], cz.senderPublicKey) | |
342 | 440 | } | |
343 | 441 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = "%s__accumulatedFee" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func b () = "%s__ucollateral" | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func c () = "%s__totalLendedAtOtherAccs" | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func d (e) = ("%s%s__assetLockedTotal__" + e) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func f (g,h,i) = ((((("%s%s%d%s__defoAssetOperation__" + h) + "__") + toString(g)) + "__") + i) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func j () = "%s__factory" | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func k (l) = ("%s%s__lendedBaseAssetAmount__" + l) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func m (l) = ("%s%s__price__" + l) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func n (l) = ("%s%s__lastHeight__" + l) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | let o = 1 | |
32 | 32 | ||
33 | 33 | let p = 2 | |
34 | 34 | ||
35 | 35 | let q = 3 | |
36 | 36 | ||
37 | 37 | let r = 4 | |
38 | 38 | ||
39 | 39 | let s = 5 | |
40 | 40 | ||
41 | 41 | func t (u,v,w,x,y,z,A) = makeString(["%d%s%d%s%d%d%d", toString(u), v, toString(x), y, toString(w), toString(z), toString(A)], "__") | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func B (C,D,E,F,G) = makeString(["%s%s%d%s%d%d%d", C, toBase58String(value(D.assetId)), toString(D.amount), toBase58String(value(E.assetId)), toString(E.amount), toString(F), toString(G)], "__") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func H (I) = { | |
48 | 48 | let J = valueOrErrorMessage(getString(this, I), ("There is no request for passed arguments: " + I)) | |
49 | 49 | split(J, "__") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let K = -1 | |
54 | 54 | ||
55 | 55 | let L = "NULL" | |
56 | 56 | ||
57 | 57 | let M = addressFromStringValue(valueOrErrorMessage(getString(this, j()), ((("No config at this=" + toString(this)) + " for key=") + j()))) | |
58 | 58 | ||
59 | 59 | func N () = "%s%s__commonConfig__debtAssetId" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func O () = "%s%s__commonConfig__debtAssetEtalonBalance" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func P (Q) = (("%s%s%s__defoAsset__" + Q) + "__config") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func R (S) = (("%s%s%s__defoAsset__" + toString(S)) + "__currentPool") | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func T (l) = (("%s%s%s__defoAsset__" + l) + "__addressByAssetCode") | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func U (V) = (("%s%s%s__defoAsset__" + V) + "__poolMakers") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func W () = "%s%s__commonConfig__defoStakingPacemakerPub" | |
78 | 78 | ||
79 | 79 | ||
80 | - | func X () = | |
80 | + | func X (V,Y,Z) = makeString(["%s%s%s%d%s__pool", V, Y, toString(Z), "liquidityRequest"], "__") | |
81 | 81 | ||
82 | 82 | ||
83 | - | func | |
83 | + | func aa (V,Y) = makeString(["%s%s%s%s__pool", V, Y, "unlockHeight"], "__") | |
84 | 84 | ||
85 | 85 | ||
86 | - | func Z (l) = { | |
86 | + | func ab () = valueOrErrorMessage(getString(M, N()), ((("No config at factory=" + toString(M)) + " for key=") + N())) | |
87 | + | ||
88 | + | ||
89 | + | func ac (Q) = split(valueOrErrorMessage(getString(M, P(Q)), ((("No config at factory=" + toString(M)) + " for key=") + P(Q))), "__") | |
90 | + | ||
91 | + | ||
92 | + | func ad (l) = { | |
87 | 93 | let Q = valueOrErrorMessage(getString(M, T(l)), ((("No config at factory=" + toString(M)) + " for key=") + T(l))) | |
88 | - | $Tuple2(Q, | |
94 | + | $Tuple2(Q, ac(Q)) | |
89 | 95 | } | |
90 | 96 | ||
91 | 97 | ||
92 | - | func | |
98 | + | func ae (Q) = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, U(Q)), ((("No config at factory=" + toString(M)) + " for key=") + U(Q)))), ("address extraction error for key=" + U(Q))) | |
93 | 99 | ||
94 | 100 | ||
95 | - | func | |
101 | + | func af () = fromBase58String(valueOrErrorMessage(getString(M, W()), ((("No config at factory=" + toString(M)) + " for key=") + W()))) | |
96 | 102 | ||
97 | 103 | ||
98 | - | let | |
104 | + | let ag = 1 | |
99 | 105 | ||
100 | - | let | |
106 | + | let ah = 2 | |
101 | 107 | ||
102 | - | let | |
108 | + | let ai = 3 | |
103 | 109 | ||
104 | - | let | |
110 | + | let aj = 4 | |
105 | 111 | ||
106 | - | let | |
112 | + | let ak = 5 | |
107 | 113 | ||
108 | - | let | |
114 | + | let al = 6 | |
109 | 115 | ||
110 | - | let | |
116 | + | let am = 7 | |
111 | 117 | ||
112 | - | let | |
118 | + | let an = 8 | |
113 | 119 | ||
114 | - | let | |
120 | + | let ao = 9 | |
115 | 121 | ||
116 | - | let | |
122 | + | let ap = 10 | |
117 | 123 | ||
118 | - | let | |
124 | + | let aq = 11 | |
119 | 125 | ||
120 | - | let | |
126 | + | let ar = 12 | |
121 | 127 | ||
122 | - | let | |
128 | + | let as = 13 | |
123 | 129 | ||
124 | - | let | |
130 | + | let at = 14 | |
125 | 131 | ||
126 | - | let | |
132 | + | let au = 15 | |
127 | 133 | ||
128 | - | let | |
134 | + | let av = 16 | |
129 | 135 | ||
130 | - | let | |
136 | + | let aw = ac(toString(this)) | |
131 | 137 | ||
132 | - | let | |
138 | + | let ax = aw[ag] | |
133 | 139 | ||
134 | - | let | |
140 | + | let ay = aw[ah] | |
135 | 141 | ||
136 | - | let | |
142 | + | let az = fromBase58String(ay) | |
137 | 143 | ||
138 | - | let | |
144 | + | let aA = addressFromStringValue(aw[an]) | |
139 | 145 | ||
140 | - | let | |
146 | + | let aB = parseIntValue(aw[al]) | |
141 | 147 | ||
142 | - | let | |
148 | + | let aC = aw[ak] | |
143 | 149 | ||
144 | - | let | |
150 | + | let aD = fromBase58String(aC) | |
145 | 151 | ||
146 | - | let | |
152 | + | let aE = parseIntValue(aw[aj]) | |
147 | 153 | ||
148 | - | let | |
154 | + | let aF = parseIntValue(aw[ao]) | |
149 | 155 | ||
150 | - | let | |
156 | + | let aG = parseIntValue(aw[ap]) | |
151 | 157 | ||
152 | - | let | |
158 | + | let aH = parseIntValue(aw[aq]) | |
153 | 159 | ||
154 | - | let | |
160 | + | let aI = parseIntValue(aw[ar]) | |
155 | 161 | ||
156 | - | func aF () = "%s__isBlocked" | |
162 | + | let aJ = parseIntValue(aw[as]) | |
163 | + | ||
164 | + | let aK = parseIntValue(aw[at]) | |
165 | + | ||
166 | + | let aL = parseIntValue(aw[av]) | |
167 | + | ||
168 | + | func aM () = "%s__isBlocked" | |
157 | 169 | ||
158 | 170 | ||
159 | - | let aG = valueOrElse(getBoolean(au, aF()), false) | |
160 | - | ||
161 | - | func aH (l) = valueOrErrorMessage(getInteger(au, m(l)), ((("No price at priceOracle=" + toString(au)) + " for key=") + m(l))) | |
171 | + | func aN (l) = ("%s%s__isMarketOpened__" + l) | |
162 | 172 | ||
163 | 173 | ||
164 | - | func aI (l) = valueOrErrorMessage(getInteger(au, n(l)), ((("No lastHeight at priceOracle=" + toString(au)) + " for key=") + n(l))) | |
174 | + | let aO = valueOrElse(getBoolean(aA, aM()), false) | |
175 | + | ||
176 | + | let aP = valueOrElse(getBoolean(aA, aN(ax)), false) | |
177 | + | ||
178 | + | func aQ (l) = valueOrErrorMessage(getInteger(aA, m(l)), ((("No price at priceOracle=" + toString(aA)) + " for key=") + m(l))) | |
165 | 179 | ||
166 | 180 | ||
167 | - | func | |
181 | + | func aR (l) = valueOrErrorMessage(getInteger(aA, n(l)), ((("No lastHeight at priceOracle=" + toString(aA)) + " for key=") + n(l))) | |
168 | 182 | ||
169 | 183 | ||
170 | - | func aK (aL) = { | |
171 | - | let aM = ("idxHeight_" + toString(aL)) | |
172 | - | valueOrElse(getInteger(au, aM), 0) | |
184 | + | func aS () = valueOrErrorMessage(getInteger(aA, "currIdx"), ("No currIdx at controlAcc=" + toString(aA))) | |
185 | + | ||
186 | + | ||
187 | + | func aT (aU) = { | |
188 | + | let aV = ("idxHeight_" + toString(aU)) | |
189 | + | valueOrElse(getInteger(aA, aV), 0) | |
173 | 190 | } | |
174 | 191 | ||
175 | 192 | ||
176 | - | func | |
177 | - | let | |
178 | - | valueOrErrorMessage(getInteger( | |
193 | + | func aW (aX) = { | |
194 | + | let aY = ("price_" + toString(aX)) | |
195 | + | valueOrErrorMessage(getInteger(aA, aY), ((("No " + aY) + " at controlAcc=") + toString(aA))) | |
179 | 196 | } | |
180 | 197 | ||
181 | 198 | ||
182 | - | let | |
199 | + | let aZ = aR(ax) | |
183 | 200 | ||
184 | - | let | |
201 | + | let ba = ((aZ - aZ) > 5) | |
185 | 202 | ||
186 | - | let | |
203 | + | let bb = "%s%s__commonConfig__defoStakingAddress" | |
187 | 204 | ||
188 | - | let | |
205 | + | let bc = "%s%s__commonConfig__neutrinoStakingAddress" | |
189 | 206 | ||
190 | - | func | |
207 | + | func bd (e) = ("%s%s__stakingBalance__" + e) | |
191 | 208 | ||
192 | 209 | ||
193 | - | func | |
210 | + | func be () = ((("rpd_balance_" + aC) + "_") + toString(this)) | |
194 | 211 | ||
195 | 212 | ||
196 | - | let | |
213 | + | let bf = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bb), ((("No config at factoryAcc" + toString(M)) + " for key=") + bb))), ("address extraction error for key=" + bb)) | |
197 | 214 | ||
198 | - | let | |
215 | + | let bg = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, bc), ((("No config at factoryAcc" + toString(M)) + " for key=") + bc))), ("address extraction error for key=" + bc)) | |
199 | 216 | ||
200 | - | func | |
217 | + | func bh () = valueOrElse(getInteger(bf, bd(ay)), 0) | |
201 | 218 | ||
202 | 219 | ||
203 | - | func | |
220 | + | func bi () = valueOrElse(getInteger(bg, be()), 0) | |
204 | 221 | ||
205 | 222 | ||
206 | - | let | |
223 | + | let bj = valueOrElse(getInteger(this, b()), 0) | |
207 | 224 | ||
208 | - | let | |
225 | + | let bk = valueOrElse(getInteger(this, a()), 0) | |
209 | 226 | ||
210 | - | let | |
227 | + | let bl = getIntegerValue(M, R(this)) | |
211 | 228 | ||
212 | - | let | |
229 | + | let bm = fromBase58String(ab()) | |
213 | 230 | ||
214 | - | let | |
231 | + | let bn = getIntegerValue(M, O()) | |
215 | 232 | ||
216 | - | let | |
233 | + | let bo = (bn - assetBalance(this, bm)) | |
217 | 234 | ||
218 | - | let | |
235 | + | let bp = ((assetBalance(this, aD) + bi()) + bo) | |
219 | 236 | ||
220 | - | let | |
237 | + | let bq = aQ(aw[ag]) | |
221 | 238 | ||
222 | - | let | |
239 | + | let br = (value(assetInfo(az)).quantity - assetBalance(this, az)) | |
223 | 240 | ||
224 | - | let bi = (value(assetInfo(at)).quantity - assetBalance(this, at)) | |
241 | + | func bs (bt) = if (aP) | |
242 | + | then bq | |
243 | + | else fraction((aE - bt), bq, aE) | |
225 | 244 | ||
226 | - | func bj (bk,bl,bm,bn,bo,bp) = { | |
227 | - | let bq = fraction(bl, bo, ay) | |
228 | - | let br = fraction((ay - bp), bq, ay) | |
229 | - | let A = (bq - br) | |
230 | - | let bs = fraction(bq, ay, bo) | |
231 | - | let bt = (bl - bs) | |
232 | - | if (if ((bn > bl)) | |
233 | - | then (toString(bk) != toString(aW)) | |
245 | + | ||
246 | + | func bu (bt) = if (aP) | |
247 | + | then bq | |
248 | + | else fraction((aE + bt), bq, aE) | |
249 | + | ||
250 | + | ||
251 | + | func bv (bw,bt) = if (aP) | |
252 | + | then bw | |
253 | + | else fraction((aE + bt), bw, aE) | |
254 | + | ||
255 | + | ||
256 | + | func bx (by,bz,bA,bB,bC,bD) = { | |
257 | + | let bE = fraction(bz, bC, aE) | |
258 | + | let bF = fraction((aE - bD), bE, aE) | |
259 | + | let A = (bE - bF) | |
260 | + | let bG = fraction(bE, aE, bC) | |
261 | + | let bH = (bz - bG) | |
262 | + | if (if ((bB > bz)) | |
263 | + | then (toString(by) != toString(bf)) | |
234 | 264 | else false) | |
235 | - | then throw(((((("impossible to issue new " + | |
236 | - | else $Tuple2([IntegerEntry(b(), ( | |
265 | + | then throw(((((("impossible to issue new " + ax) + ": payment=") + toString(bz)) + "is less then min amount=") + toString(bB))) | |
266 | + | else $Tuple2([IntegerEntry(b(), (bj + bG)), StringEntry(f(height, toString(by), "FINISHED"), t(bz, toBase58String(bA), bq, bF, toBase58String(az), bE, A)), Reissue(az, (bF + A), true), ScriptTransfer(by, bF, az), ScriptTransfer(by, bH, bA), ScriptTransfer(ae(toString(this)), A, az), IntegerEntry(a(), (bk + A))], bH) | |
237 | 267 | } | |
238 | 268 | ||
239 | 269 | ||
240 | - | @Callable(bu) | |
241 | - | func buyAsset () = throw("NGN buyAsset operation is temporary unavailable") | |
270 | + | @Callable(bI) | |
271 | + | func buyAsset () = { | |
272 | + | let bJ = value(bI.payments[0]) | |
273 | + | let bK = value(bJ.assetId) | |
274 | + | if (aO) | |
275 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
276 | + | else if (ba) | |
277 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height))) | |
278 | + | else if ((bK != aD)) | |
279 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(aD)) + " actual=") + toBase58String(bK))) | |
280 | + | else bx(bI.caller, bJ.amount, bK, aF, bs(aL), aJ)._1 | |
281 | + | } | |
242 | 282 | ||
243 | 283 | ||
244 | 284 | ||
245 | - | @Callable( | |
285 | + | @Callable(bI) | |
246 | 286 | func sellAsset () = { | |
247 | - | let bv = value(bu.payments[0]) | |
248 | - | let bw = value(bv.assetId) | |
249 | - | let bx = toString(bu.caller) | |
250 | - | if (aG) | |
287 | + | let bJ = value(bI.payments[0]) | |
288 | + | let bL = value(bJ.assetId) | |
289 | + | let bM = toString(bI.caller) | |
290 | + | let bN = bu(aL) | |
291 | + | if (aO) | |
251 | 292 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
252 | - | else if ( | |
253 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
254 | - | else if (( | |
255 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
256 | - | else if (( | |
257 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
293 | + | else if (ba) | |
294 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height))) | |
295 | + | else if ((bL != az)) | |
296 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(az)) + " actual=") + toBase58String(bL))) | |
297 | + | else if ((aG > bJ.amount)) | |
298 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(bJ.amount)) + " minAmount=") + toString(aG))) | |
258 | 299 | else { | |
259 | - | let | |
260 | - | let | |
261 | - | then | |
262 | - | else | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | [IntegerEntry(b(), ( | |
300 | + | let bO = fraction(bJ.amount, aE, bN) | |
301 | + | let bP = if ((bO > bp)) | |
302 | + | then bp | |
303 | + | else bO | |
304 | + | let bQ = fraction(bP, bN, aE) | |
305 | + | let bH = (bJ.amount - bQ) | |
306 | + | let bR = fraction(aK, bQ, aE) | |
307 | + | let bS = (bQ - bR) | |
308 | + | let bT = fraction(bS, aE, bN) | |
309 | + | [IntegerEntry(b(), (bj - bT)), StringEntry(f(height, bM, "FINISHED"), t(bJ.amount, toBase58String(bL), bN, bT, aC, bQ, bR)), Burn(az, bS), ScriptTransfer(bI.caller, bT, aD), ScriptTransfer(bI.caller, bH, az), ScriptTransfer(ae(toString(this)), bR, az), IntegerEntry(a(), (bk + bR))] | |
269 | 310 | } | |
270 | 311 | } | |
271 | 312 | ||
272 | 313 | ||
273 | 314 | ||
274 | - | @Callable(bu) | |
275 | - | func crossExchange (bE,bF) = throw("NGN crossExchange operation is temporary unavailable") | |
276 | - | ||
277 | - | ||
278 | - | ||
279 | - | @Callable(bu) | |
280 | - | func rebalanceDebts () = { | |
281 | - | let bG = value(bu.payments[0]) | |
282 | - | let bH = value(bG.assetId) | |
283 | - | let bI = value(bu.payments[1]) | |
284 | - | let bJ = value(bI.assetId) | |
285 | - | let bK = toString(bu.caller) | |
286 | - | let bL = Y(bK) | |
287 | - | let C = bL[ac] | |
288 | - | let bM = k(C) | |
289 | - | let bN = valueOrErrorMessage(getInteger(this, bM), ("No debts for " + C)) | |
290 | - | if (aG) | |
315 | + | @Callable(bI) | |
316 | + | func crossExchange (bU,bV) = { | |
317 | + | let bJ = value(bI.payments[0]) | |
318 | + | let bL = value(bJ.assetId) | |
319 | + | let bW = toBase58String(bL) | |
320 | + | let bX = bJ.amount | |
321 | + | let bM = toString(bI.caller) | |
322 | + | let bY = aw | |
323 | + | let bZ = ad(bV) | |
324 | + | let ca = bZ._2 | |
325 | + | let cb = valueOrErrorMessage(addressFromString(bZ._1), ("couldn't parse address from string for assetCode=" + bV)) | |
326 | + | let cc = valueOrErrorMessage(parseInt(ca[ap]), ("minSellPmt parsing error: rawVal=" + ca[ap])) | |
327 | + | let cd = aR(bV) | |
328 | + | let ce = ((cd - cd) > 5) | |
329 | + | if (aO) | |
291 | 330 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
292 | - | else if (( | |
293 | - | then throw((((" | |
294 | - | else if (( | |
295 | - | then throw((((" | |
296 | - | else if (( | |
297 | - | then throw(" | |
298 | - | else if (( | |
299 | - | then throw((" | |
300 | - | else if ( | |
301 | - | then throw((" | |
302 | - | else if ( | |
303 | - | then throw((((" | |
331 | + | else if ((aw[ag] != bU)) | |
332 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + aw[ag]) + " BUT buyAssetId=") + bU)) | |
333 | + | else if ((ca[ah] != bW)) | |
334 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + ca[ah]) + "BUT pmtAsset=") + bW)) | |
335 | + | else if ((aw[ai] != "ISSUED")) | |
336 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + bU) + " BUT status=") + aw[ai])) | |
337 | + | else if ((ca[ai] != "ISSUED")) | |
338 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + bW) + " BUT status=") + ca[ai])) | |
339 | + | else if (ba) | |
340 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height)) + " buyCode=") + bU)) | |
341 | + | else if (ce) | |
342 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aZ)) + " currHeight=") + toString(height)) + " sellCode=") + bV)) | |
304 | 343 | else { | |
305 | - | let bO = valueOrElse(getInteger(this, c()), 0) | |
306 | - | let G = (bN - bG.amount) | |
307 | - | [IntegerEntry(bM, G), IntegerEntry(c(), (bO - bG.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bu.transactionId)), B(C, bG, bI, bN, G))] | |
344 | + | let cf = bs((aL / 2)) | |
345 | + | let cg = bv(aQ(bV), (aL / 2)) | |
346 | + | let bC = fraction(cf, aE, cg) | |
347 | + | let ch = fraction(bX, aE, cg) | |
348 | + | let ci = valueOrElse(getInteger(this, c()), 0) | |
349 | + | let cj = k(bV) | |
350 | + | let ck = valueOrElse(getInteger(this, cj), 0) | |
351 | + | let cl = parseIntValue(ca[at]) | |
352 | + | let cm = bx(bI.caller, bX, bL, cc, bC, fraction((aJ + cl), 50, 100)) | |
353 | + | ((((cm._1 :+ ScriptTransfer(cb, ch, bm)) :+ ScriptTransfer(cb, (bX - cm._2), bL)) :+ IntegerEntry(cj, (ck + ch))) :+ IntegerEntry(c(), (ci + ch))) | |
308 | 354 | } | |
309 | 355 | } | |
310 | 356 | ||
311 | 357 | ||
312 | - | @Verifier(bP) | |
313 | - | func bQ () = { | |
314 | - | let bR = bP | |
315 | - | if ($isInstanceOf(bR, "InvokeScriptTransaction")) | |
358 | + | ||
359 | + | @Callable(bI) | |
360 | + | func rebalanceDebts () = { | |
361 | + | let cn = value(bI.payments[0]) | |
362 | + | let co = value(cn.assetId) | |
363 | + | let cp = value(bI.payments[1]) | |
364 | + | let cq = value(cp.assetId) | |
365 | + | let cr = toString(bI.caller) | |
366 | + | let cs = ac(cr) | |
367 | + | let C = cs[ag] | |
368 | + | let cj = k(C) | |
369 | + | let ct = valueOrErrorMessage(getInteger(this, cj), ("No debts for " + C)) | |
370 | + | if (aO) | |
371 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
372 | + | else if ((bm != co)) | |
373 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bm)) + " actual=") + toBase58String(co))) | |
374 | + | else if ((aD != cq)) | |
375 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(aD)) + " actual=") + toBase58String(cq))) | |
376 | + | else if ((cn.amount != cp.amount)) | |
377 | + | then throw("first payment amount doesn't match to the second payment amount") | |
378 | + | else if ((0 >= ct)) | |
379 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(ct))) | |
380 | + | else if (((100 * aE) >= cn.amount)) | |
381 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cn.amount))) | |
382 | + | else if ((cn.amount > ct)) | |
383 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cn.amount)) + " lendedAmt=") + toString(ct))) | |
384 | + | else { | |
385 | + | let ci = valueOrElse(getInteger(this, c()), 0) | |
386 | + | let G = (ct - cn.amount) | |
387 | + | [IntegerEntry(cj, G), IntegerEntry(c(), (ci - cn.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bI.transactionId)), B(C, cn, cp, ct, G))] | |
388 | + | } | |
389 | + | } | |
390 | + | ||
391 | + | ||
392 | + | ||
393 | + | @Callable(bI) | |
394 | + | func fulfillRedeemRequest (Y) = { | |
395 | + | let cu = toString(this) | |
396 | + | let cv = aa(cu, Y) | |
397 | + | let cw = valueOrElse(getInteger(M, cv), 0) | |
398 | + | if ((0 >= cw)) | |
399 | + | then throw("All liquidity request fulfilled") | |
400 | + | else { | |
401 | + | let cx = X(cu, Y, cw) | |
402 | + | let cy = valueOrErrorMessage(getInteger(M, cx), "Empty poolMakerLiquidityRequestKey at factory acc") | |
403 | + | if (isDefined(getInteger(this, cx))) | |
404 | + | then throw("Liquidity request has been already fulfilled") | |
405 | + | else [IntegerEntry(cx, cy), ScriptTransfer(M, cy, aD)] | |
406 | + | } | |
407 | + | } | |
408 | + | ||
409 | + | ||
410 | + | @Verifier(cz) | |
411 | + | func cA () = { | |
412 | + | let cB = cz | |
413 | + | if ($isInstanceOf(cB, "InvokeScriptTransaction")) | |
316 | 414 | then { | |
317 | - | let | |
318 | - | if (( | |
319 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
320 | - | else if (isDefined( | |
415 | + | let cC = cB | |
416 | + | if ((cC.fee > (900 * 1000))) | |
417 | + | then throw(("fee amount is greater than max allowed: " + toString(cC.fee))) | |
418 | + | else if (isDefined(cC.feeAssetId)) | |
321 | 419 | then throw("only Waves is allowed as feeAssetId") | |
322 | - | else if (( | |
420 | + | else if ((cC.function == "rebalanceDebts")) | |
323 | 421 | then { | |
324 | - | let | |
325 | - | if (( | |
422 | + | let cD = toString(addressFromRecipient(cC.dApp)) | |
423 | + | if ((ac(cD)[ai] != "ISSUED")) | |
326 | 424 | then throw("only defo dapp is allowed") | |
327 | - | else if (( | |
425 | + | else if ((cD == toString(this))) | |
328 | 426 | then throw("impossible to call self rebealnceDebt") | |
329 | 427 | else true | |
330 | 428 | } | |
331 | - | else if (if (if (( | |
429 | + | else if (if (if ((cC.function == "lockNeutrino")) | |
332 | 430 | then true | |
333 | - | else ( | |
431 | + | else (cC.function == "lockNeutrinoSP")) | |
334 | 432 | then true | |
335 | - | else ( | |
336 | - | then if ((toString( | |
433 | + | else (cC.function == "unlockNeutrino")) | |
434 | + | then if ((toString(bg) != toString(addressFromRecipient(cC.dApp)))) | |
337 | 435 | then throw("invalid neutrino staking dapp address") | |
338 | - | else sigVerify( | |
436 | + | else sigVerify(cz.bodyBytes, cz.proofs[0], af()) | |
339 | 437 | else throw("Not allowed invocation method calls") | |
340 | 438 | } | |
341 | - | else sigVerify( | |
439 | + | else sigVerify(cz.bodyBytes, cz.proofs[0], cz.senderPublicKey) | |
342 | 440 | } | |
343 | 441 |
github/deemru/w8io/026f985 401.27 ms ◑