tx · CPN12x3SDRMD7N88NiivAUT4DNWGJALBwHeWHZnoyMJy 3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc: -0.01400000 Waves 2020.10.16 14:42 [1223087] smart account 3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc > SELF 0.00000000 Waves
{ "type": 13, "id": "CPN12x3SDRMD7N88NiivAUT4DNWGJALBwHeWHZnoyMJy", "fee": 1400000, "feeAssetId": null, "timestamp": 1602848606576, "version": 1, "sender": "3MyLfEjWaZMZ3afgDYCf8g7pHexXEkPXffc", "senderPublicKey": "DoeRC9WSwJNdJzQYBEDUB3g6ZcE95e6PjGqwV3q7JNMF", "proofs": [ "5x2qZVJM897LfZ3YdxyPGAqN4jCFyRRZB2q3Ko7vEzweWZpCN8KtGgyXSTG5tRhDB7QM9vUiPJSZrmVSL16hpsmN" ], "script": "base64:AAIEAAAAAAAAAA4IAhIAEgASBAoCCAgSAAAAAGABAAAAEWtleUFjY3VtdWxhdGVkRmVlAAAAAAIAAAASJXNfX2FjY3VtdWxhdGVkRmVlAQAAAA5rZXlVY29sbGF0ZXJhbAAAAAACAAAADyVzX191Y29sbGF0ZXJhbAEAAAAZa2V5VG90YWxMZW5kZWRBdE90aGVyQWNjcwAAAAACAAAAGiVzX190b3RhbExlbmRlZEF0T3RoZXJBY2NzAQAAABNrZXlBc3NldExvY2tlZFRvdGFsAAAAAQAAAAdhc3NldElkCQABLAAAAAICAAAAGCVzJXNfX2Fzc2V0TG9ja2VkVG90YWxfXwUAAAAHYXNzZXRJZAEAAAATa2V5QWNjb3VudE9wZXJhdGlvbgAAAAMAAAAMdW5sb2NrSGVpZ2h0AAAAB2FkZHJlc3MAAAAGc3RhdHVzCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAeJXMlcyVkJXNfX2RlZm9Bc3NldE9wZXJhdGlvbl9fBQAAAAdhZGRyZXNzAgAAAAJfXwkAAaQAAAABBQAAAAx1bmxvY2tI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AAAZJU1NVRUQJAAACAAAAAQIAAAAZb25seSBkZWZvIGRhcHAgaXMgYWxsb3dlZAMJAAAAAAAAAgUAAAAOaW52RGFwcEFkZHJlc3MJAAQlAAAAAQUAAAAEdGhpcwkAAAIAAAABAgAAACVpbXBvc3NpYmxlIHRvIGNhbGwgc2VsZiByZWJlYWxuY2VEZWJ0BgMDAwkAAAAAAAACCAUAAAADaW52AAAACGZ1bmN0aW9uAgAAAAxsb2NrTmV1dHJpbm8GCQAAAAAAAAIIBQAAAANpbnYAAAAIZnVuY3Rpb24CAAAADmxvY2tOZXV0cmlub1NQBgkAAAAAAAACCAUAAAADaW52AAAACGZ1bmN0aW9uAgAAAA51bmxvY2tOZXV0cmlubwMJAQAAAAIhPQAAAAIJAAQlAAAAAQUAAAASbmV1dHJpbm9TdGFraW5nQWNjCQAEJQAAAAEJAAQkAAAAAQgFAAAAA2ludgAAAARkQXBwCQAAAgAAAAECAAAAJWludmFsaWQgbmV1dHJpbm8gc3Rha2luZyBkYXBwIGFkZHJlc3MJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQEAAAAiZmFjdG9yeVJlYWREZWZvU3Rha2luZ1BhY2VtYWtlclB1YgAAAAAJAAACAAAAAQIAAAAjTm90IGFsbG93ZWQgaW52b2NhdGlvbiBtZXRob2QgY2FsbHMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5fas/pQ==", "chainId": 84, "height": 1223087, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4sgWxCnHqA9tfRH6cUTMk5zDTEZhqhXKuWDcFZw4uY97 Next: 2WwUhdkomWrKZBBzA5aLar3fTWmo7ZADjfgJBrcQXEgR Diff:
Old | New | Differences | |
---|---|---|---|
123 | 123 | ||
124 | 124 | let ap = 14 | |
125 | 125 | ||
126 | - | let aq = | |
126 | + | let aq = 15 | |
127 | 127 | ||
128 | - | let ar = | |
128 | + | let ar = 16 | |
129 | 129 | ||
130 | - | let as = | |
130 | + | let as = Y(toString(this)) | |
131 | 131 | ||
132 | - | let at = | |
132 | + | let at = as[ac] | |
133 | 133 | ||
134 | - | let au = | |
134 | + | let au = as[ad] | |
135 | 135 | ||
136 | - | let av = | |
136 | + | let av = fromBase58String(au) | |
137 | 137 | ||
138 | - | let aw = | |
138 | + | let aw = addressFromStringValue(as[aj]) | |
139 | 139 | ||
140 | - | let ax = | |
140 | + | let ax = parseIntValue(as[ah]) | |
141 | 141 | ||
142 | - | let ay = | |
142 | + | let ay = as[ag] | |
143 | 143 | ||
144 | - | let az = | |
144 | + | let az = fromBase58String(ay) | |
145 | 145 | ||
146 | - | let aA = parseIntValue( | |
146 | + | let aA = parseIntValue(as[af]) | |
147 | 147 | ||
148 | - | let aB = parseIntValue( | |
148 | + | let aB = parseIntValue(as[ak]) | |
149 | 149 | ||
150 | - | let aC = parseIntValue( | |
150 | + | let aC = parseIntValue(as[al]) | |
151 | 151 | ||
152 | - | let aD = parseIntValue( | |
152 | + | let aD = parseIntValue(as[am]) | |
153 | 153 | ||
154 | - | let aE = parseIntValue( | |
154 | + | let aE = parseIntValue(as[an]) | |
155 | 155 | ||
156 | - | func aF () = "%s__isBlocked" | |
156 | + | let aF = parseIntValue(as[ao]) | |
157 | + | ||
158 | + | let aG = parseIntValue(as[ap]) | |
159 | + | ||
160 | + | let aH = parseIntValue(as[ar]) | |
161 | + | ||
162 | + | func aI () = "%s__isBlocked" | |
157 | 163 | ||
158 | 164 | ||
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))) | |
165 | + | func aJ (l) = ("%s%s__isMarketOpened__" + l) | |
162 | 166 | ||
163 | 167 | ||
164 | - | func aI (l) = valueOrErrorMessage(getInteger(au, n(l)), ((("No lastHeight at priceOracle=" + toString(au)) + " for key=") + n(l))) | |
168 | + | let aK = valueOrElse(getBoolean(aw, aI()), false) | |
169 | + | ||
170 | + | let aL = valueOrElse(getBoolean(aw, aJ(at)), false) | |
171 | + | ||
172 | + | func aM (l) = valueOrErrorMessage(getInteger(aw, m(l)), ((("No price at priceOracle=" + toString(aw)) + " for key=") + m(l))) | |
165 | 173 | ||
166 | 174 | ||
167 | - | func | |
175 | + | func aN (l) = valueOrErrorMessage(getInteger(aw, n(l)), ((("No lastHeight at priceOracle=" + toString(aw)) + " for key=") + n(l))) | |
168 | 176 | ||
169 | 177 | ||
170 | - | func aK (aL) = { | |
171 | - | let aM = ("idxHeight_" + toString(aL)) | |
172 | - | valueOrElse(getInteger(au, aM), 0) | |
178 | + | func aO () = valueOrErrorMessage(getInteger(aw, "currIdx"), ("No currIdx at controlAcc=" + toString(aw))) | |
179 | + | ||
180 | + | ||
181 | + | func aP (aQ) = { | |
182 | + | let aR = ("idxHeight_" + toString(aQ)) | |
183 | + | valueOrElse(getInteger(aw, aR), 0) | |
173 | 184 | } | |
174 | 185 | ||
175 | 186 | ||
176 | - | func | |
177 | - | let | |
178 | - | valueOrErrorMessage(getInteger( | |
187 | + | func aS (aT) = { | |
188 | + | let aU = ("price_" + toString(aT)) | |
189 | + | valueOrErrorMessage(getInteger(aw, aU), ((("No " + aU) + " at controlAcc=") + toString(aw))) | |
179 | 190 | } | |
180 | 191 | ||
181 | 192 | ||
182 | - | let | |
193 | + | let aV = aN(at) | |
183 | 194 | ||
184 | - | let | |
195 | + | let aW = ((aV - aV) > 5) | |
185 | 196 | ||
186 | - | let | |
197 | + | let aX = "%s%s__commonConfig__defoStakingAddress" | |
187 | 198 | ||
188 | - | let | |
199 | + | let aY = "%s%s__commonConfig__neutrinoStakingAddress" | |
189 | 200 | ||
190 | - | func | |
201 | + | func aZ (e) = ("%s%s__stakingBalance__" + e) | |
191 | 202 | ||
192 | 203 | ||
193 | - | func | |
204 | + | func ba () = ((("rpd_balance_" + ay) + "_") + toString(this)) | |
194 | 205 | ||
195 | 206 | ||
196 | - | let | |
207 | + | let bb = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, aX), ((("No config at factoryAcc" + toString(M)) + " for key=") + aX))), ("address extraction error for key=" + aX)) | |
197 | 208 | ||
198 | - | let | |
209 | + | let bc = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, aY), ((("No config at factoryAcc" + toString(M)) + " for key=") + aY))), ("address extraction error for key=" + aY)) | |
199 | 210 | ||
200 | - | func | |
211 | + | func bd () = valueOrElse(getInteger(bb, aZ(au)), 0) | |
201 | 212 | ||
202 | 213 | ||
203 | - | func | |
214 | + | func be () = valueOrElse(getInteger(bc, ba()), 0) | |
204 | 215 | ||
205 | 216 | ||
206 | - | let | |
217 | + | let bf = valueOrElse(getInteger(this, b()), 0) | |
207 | 218 | ||
208 | - | let | |
219 | + | let bg = valueOrElse(getInteger(this, a()), 0) | |
209 | 220 | ||
210 | - | let | |
221 | + | let bh = getIntegerValue(M, R(this)) | |
211 | 222 | ||
212 | - | let | |
223 | + | let bi = fromBase58String(X()) | |
213 | 224 | ||
214 | - | let | |
225 | + | let bj = getIntegerValue(M, O()) | |
215 | 226 | ||
216 | - | let | |
227 | + | let bk = (bj - assetBalance(this, bi)) | |
217 | 228 | ||
218 | - | let | |
229 | + | let bl = ((assetBalance(this, az) + be()) + bk) | |
219 | 230 | ||
220 | - | let | |
231 | + | let bm = aM(as[ac]) | |
221 | 232 | ||
222 | - | let | |
233 | + | let bn = (value(assetInfo(av)).quantity - assetBalance(this, av)) | |
223 | 234 | ||
224 | - | let bi = (value(assetInfo(at)).quantity - assetBalance(this, at)) | |
235 | + | func bo (bp) = if (aL) | |
236 | + | then bm | |
237 | + | else fraction((aA - bp), bm, aA) | |
225 | 238 | ||
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)) | |
239 | + | ||
240 | + | func bq (bp) = if (aL) | |
241 | + | then bm | |
242 | + | else fraction((aA + bp), bm, aA) | |
243 | + | ||
244 | + | ||
245 | + | func br (bs,bp) = if (aL) | |
246 | + | then bm | |
247 | + | else fraction((aA + bp), bs, aA) | |
248 | + | ||
249 | + | ||
250 | + | func bt (bu,bv,bw,bx,by,bz) = { | |
251 | + | let bA = fraction(bv, by, aA) | |
252 | + | let bB = fraction((aA - bz), bA, aA) | |
253 | + | let A = (bA - bB) | |
254 | + | let bC = fraction(bA, aA, by) | |
255 | + | let bD = (bv - bC) | |
256 | + | if (if ((bx > bv)) | |
257 | + | then (toString(bu) != toString(bb)) | |
234 | 258 | else false) | |
235 | - | then throw(((((("impossible to issue new " + | |
236 | - | else $Tuple2([IntegerEntry(b(), ( | |
259 | + | then throw(((((("impossible to issue new " + at) + ": payment=") + toString(bv)) + "is less then min amount=") + toString(bx))) | |
260 | + | else $Tuple2([IntegerEntry(b(), (bf + bC)), StringEntry(f(height, toString(bu), "FINISHED"), t(bv, toBase58String(bw), bm, bB, toBase58String(av), bA, A)), Reissue(av, (bB + A), true), ScriptTransfer(bu, bB, av), ScriptTransfer(bu, bD, bw), ScriptTransfer(aa(toString(this)), A, av), IntegerEntry(a(), (bg + A))], bD) | |
237 | 261 | } | |
238 | 262 | ||
239 | 263 | ||
240 | - | @Callable( | |
264 | + | @Callable(bE) | |
241 | 265 | func buyAsset () = { | |
242 | - | let | |
243 | - | let | |
244 | - | if ( | |
266 | + | let bF = value(bE.payments[0]) | |
267 | + | let bG = value(bF.assetId) | |
268 | + | if (aK) | |
245 | 269 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
246 | - | else if ( | |
247 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
248 | - | else if (( | |
249 | - | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String( | |
250 | - | else | |
270 | + | else if (aW) | |
271 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height))) | |
272 | + | else if ((bG != az)) | |
273 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(az)) + " actual=") + toBase58String(bG))) | |
274 | + | else bt(bE.caller, bF.amount, bG, aB, bo(aH), aF)._1 | |
251 | 275 | } | |
252 | 276 | ||
253 | 277 | ||
254 | 278 | ||
255 | - | @Callable( | |
279 | + | @Callable(bE) | |
256 | 280 | func sellAsset () = { | |
257 | - | let bv = value(bu.payments[0]) | |
258 | - | let bx = value(bv.assetId) | |
259 | - | let by = toString(bu.caller) | |
260 | - | if (aG) | |
281 | + | let bF = value(bE.payments[0]) | |
282 | + | let bH = value(bF.assetId) | |
283 | + | let bI = toString(bE.caller) | |
284 | + | let bJ = bq(aH) | |
285 | + | if (aK) | |
261 | 286 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
262 | - | else if ( | |
263 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
264 | - | else if (( | |
265 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
266 | - | else if (( | |
267 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
287 | + | else if (aW) | |
288 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height))) | |
289 | + | else if ((bH != av)) | |
290 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(av)) + " actual=") + toBase58String(bH))) | |
291 | + | else if ((aC > bF.amount)) | |
292 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(bF.amount)) + " minAmount=") + toString(aC))) | |
268 | 293 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | then | |
272 | - | else | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | [IntegerEntry(b(), ( | |
294 | + | let bK = fraction(bF.amount, aA, bJ) | |
295 | + | let bL = if ((bK > bl)) | |
296 | + | then bl | |
297 | + | else bK | |
298 | + | let bM = fraction(bL, bJ, aA) | |
299 | + | let bD = (bF.amount - bM) | |
300 | + | let bN = fraction(aG, bM, aA) | |
301 | + | let bO = (bM - bN) | |
302 | + | let bP = fraction(bO, aA, bJ) | |
303 | + | [IntegerEntry(b(), (bf - bP)), StringEntry(f(height, bI, "FINISHED"), t(bF.amount, toBase58String(bH), bJ, bP, ay, bM, bN)), Burn(av, bO), ScriptTransfer(bE.caller, bP, az), ScriptTransfer(bE.caller, bD, av), ScriptTransfer(aa(toString(this)), bN, av), IntegerEntry(a(), (bg + bN))] | |
279 | 304 | } | |
280 | 305 | } | |
281 | 306 | ||
282 | 307 | ||
283 | 308 | ||
284 | - | @Callable( | |
285 | - | func crossExchange ( | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | if ( | |
309 | + | @Callable(bE) | |
310 | + | func crossExchange (bQ,bR) = { | |
311 | + | let bF = value(bE.payments[0]) | |
312 | + | let bH = value(bF.assetId) | |
313 | + | let bS = toBase58String(bH) | |
314 | + | let bT = bF.amount | |
315 | + | let bI = toString(bE.caller) | |
316 | + | let bU = as | |
317 | + | let bV = Z(bR) | |
318 | + | let bW = bV._2 | |
319 | + | let bX = valueOrErrorMessage(addressFromString(bV._1), ("couldn't parse address from string for assetCode=" + bR)) | |
320 | + | let bY = valueOrErrorMessage(parseInt(bW[al]), ("minSellPmt parsing error: rawVal=" + bW[al])) | |
321 | + | let bZ = aN(bR) | |
322 | + | let ca = ((bZ - bZ) > 5) | |
323 | + | if (aK) | |
299 | 324 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
300 | - | else if (( | |
325 | + | else if ((bW[ac] == "NGN")) | |
301 | 326 | then throw("crossExchange for NGN is temporary disabled") | |
302 | - | else if (( | |
303 | - | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + | |
304 | - | else if (( | |
305 | - | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + | |
306 | - | else if (( | |
307 | - | then throw(((("toAsset has not been issued yet: buyAssetId=" + | |
308 | - | else if (( | |
309 | - | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + | |
310 | - | else if ( | |
311 | - | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
312 | - | else if ( | |
313 | - | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
327 | + | else if ((as[ac] != bQ)) | |
328 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + as[ac]) + " BUT buyAssetId=") + bQ)) | |
329 | + | else if ((bW[ad] != bS)) | |
330 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + bW[ad]) + "BUT pmtAsset=") + bS)) | |
331 | + | else if ((as[ae] != "ISSUED")) | |
332 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + bQ) + " BUT status=") + as[ae])) | |
333 | + | else if ((bW[ae] != "ISSUED")) | |
334 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + bS) + " BUT status=") + bW[ae])) | |
335 | + | else if (aW) | |
336 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height)) + " buyCode=") + bQ)) | |
337 | + | else if (ca) | |
338 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height)) + " sellCode=") + bR)) | |
314 | 339 | else { | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | (((( | |
340 | + | let cb = bo((aH / 2)) | |
341 | + | let cc = br(aM(bR), (aH / 2)) | |
342 | + | let by = fraction(cb, aA, cc) | |
343 | + | let cd = fraction(bT, aA, cc) | |
344 | + | let ce = valueOrElse(getInteger(this, c()), 0) | |
345 | + | let cf = k(bR) | |
346 | + | let cg = valueOrElse(getInteger(this, cf), 0) | |
347 | + | let ch = parseIntValue(bW[ap]) | |
348 | + | let ci = bt(bE.caller, bT, bH, bY, by, fraction((aF + ch), 50, 100)) | |
349 | + | ((((ci._1 :+ ScriptTransfer(bX, cd, bi)) :+ ScriptTransfer(bX, (bT - ci._2), bH)) :+ IntegerEntry(cf, (cg + cd))) :+ IntegerEntry(c(), (ce + cd))) | |
325 | 350 | } | |
326 | 351 | } | |
327 | 352 | ||
328 | 353 | ||
329 | 354 | ||
330 | - | @Callable( | |
355 | + | @Callable(bE) | |
331 | 356 | func rebalanceDebts () = { | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let C = | |
339 | - | let | |
340 | - | let | |
341 | - | if ( | |
357 | + | let cj = value(bE.payments[0]) | |
358 | + | let ck = value(cj.assetId) | |
359 | + | let cl = value(bE.payments[1]) | |
360 | + | let cm = value(cl.assetId) | |
361 | + | let cn = toString(bE.caller) | |
362 | + | let co = Y(cn) | |
363 | + | let C = co[ac] | |
364 | + | let cf = k(C) | |
365 | + | let cp = valueOrErrorMessage(getInteger(this, cf), ("No debts for " + C)) | |
366 | + | if (aK) | |
342 | 367 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
343 | - | else if (( | |
344 | - | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String( | |
345 | - | else if (( | |
346 | - | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String( | |
347 | - | else if (( | |
368 | + | else if ((bi != ck)) | |
369 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bi)) + " actual=") + toBase58String(ck))) | |
370 | + | else if ((az != cm)) | |
371 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(az)) + " actual=") + toBase58String(cm))) | |
372 | + | else if ((cj.amount != cl.amount)) | |
348 | 373 | then throw("first payment amount doesn't match to the second payment amount") | |
349 | - | else if ((0 >= | |
350 | - | then throw(("lendedAmt is less then zero: lendedAmt=" + toString( | |
351 | - | else if (((100 * | |
352 | - | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString( | |
353 | - | else if (( | |
354 | - | then throw(((("attached payment is grater than required: pmtAmount=" + toString( | |
374 | + | else if ((0 >= cp)) | |
375 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(cp))) | |
376 | + | else if (((100 * aA) >= cj.amount)) | |
377 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cj.amount))) | |
378 | + | else if ((cj.amount > cp)) | |
379 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cj.amount)) + " lendedAmt=") + toString(cp))) | |
355 | 380 | else { | |
356 | - | let | |
357 | - | let G = ( | |
358 | - | [IntegerEntry( | |
381 | + | let ce = valueOrElse(getInteger(this, c()), 0) | |
382 | + | let G = (cp - cj.amount) | |
383 | + | [IntegerEntry(cf, G), IntegerEntry(c(), (ce - cj.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bE.transactionId)), B(C, cj, cl, cp, G))] | |
359 | 384 | } | |
360 | 385 | } | |
361 | 386 | ||
362 | 387 | ||
363 | - | @Verifier( | |
364 | - | func | |
365 | - | let | |
366 | - | if ($isInstanceOf( | |
388 | + | @Verifier(cq) | |
389 | + | func cr () = { | |
390 | + | let cs = cq | |
391 | + | if ($isInstanceOf(cs, "InvokeScriptTransaction")) | |
367 | 392 | then { | |
368 | - | let | |
369 | - | if (( | |
370 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
371 | - | else if (isDefined( | |
393 | + | let ct = cs | |
394 | + | if ((ct.fee > (900 * 1000))) | |
395 | + | then throw(("fee amount is greater than max allowed: " + toString(ct.fee))) | |
396 | + | else if (isDefined(ct.feeAssetId)) | |
372 | 397 | then throw("only Waves is allowed as feeAssetId") | |
373 | - | else if (( | |
398 | + | else if ((ct.function == "rebalanceDebts")) | |
374 | 399 | then { | |
375 | - | let | |
376 | - | if ((Y( | |
400 | + | let cu = toString(addressFromRecipient(ct.dApp)) | |
401 | + | if ((Y(cu)[ae] != "ISSUED")) | |
377 | 402 | then throw("only defo dapp is allowed") | |
378 | - | else if (( | |
403 | + | else if ((cu == toString(this))) | |
379 | 404 | then throw("impossible to call self rebealnceDebt") | |
380 | 405 | else true | |
381 | 406 | } | |
382 | - | else if (if (if (( | |
407 | + | else if (if (if ((ct.function == "lockNeutrino")) | |
383 | 408 | then true | |
384 | - | else ( | |
409 | + | else (ct.function == "lockNeutrinoSP")) | |
385 | 410 | then true | |
386 | - | else ( | |
387 | - | then if ((toString( | |
411 | + | else (ct.function == "unlockNeutrino")) | |
412 | + | then if ((toString(bc) != toString(addressFromRecipient(ct.dApp)))) | |
388 | 413 | then throw("invalid neutrino staking dapp address") | |
389 | - | else sigVerify( | |
414 | + | else sigVerify(cq.bodyBytes, cq.proofs[0], ab()) | |
390 | 415 | else throw("Not allowed invocation method calls") | |
391 | 416 | } | |
392 | - | else sigVerify( | |
417 | + | else sigVerify(cq.bodyBytes, cq.proofs[0], cq.senderPublicKey) | |
393 | 418 | } | |
394 | 419 |
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 | 80 | func X () = valueOrErrorMessage(getString(M, N()), ((("No config at factory=" + toString(M)) + " for key=") + N())) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func Y (Q) = split(valueOrErrorMessage(getString(M, P(Q)), ((("No config at factory=" + toString(M)) + " for key=") + P(Q))), "__") | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func Z (l) = { | |
87 | 87 | let Q = valueOrErrorMessage(getString(M, T(l)), ((("No config at factory=" + toString(M)) + " for key=") + T(l))) | |
88 | 88 | $Tuple2(Q, Y(Q)) | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func aa (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 | 93 | ||
94 | 94 | ||
95 | 95 | func ab () = fromBase58String(valueOrErrorMessage(getString(M, W()), ((("No config at factory=" + toString(M)) + " for key=") + W()))) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | let ac = 1 | |
99 | 99 | ||
100 | 100 | let ad = 2 | |
101 | 101 | ||
102 | 102 | let ae = 3 | |
103 | 103 | ||
104 | 104 | let af = 4 | |
105 | 105 | ||
106 | 106 | let ag = 5 | |
107 | 107 | ||
108 | 108 | let ah = 6 | |
109 | 109 | ||
110 | 110 | let ai = 7 | |
111 | 111 | ||
112 | 112 | let aj = 8 | |
113 | 113 | ||
114 | 114 | let ak = 9 | |
115 | 115 | ||
116 | 116 | let al = 10 | |
117 | 117 | ||
118 | 118 | let am = 11 | |
119 | 119 | ||
120 | 120 | let an = 12 | |
121 | 121 | ||
122 | 122 | let ao = 13 | |
123 | 123 | ||
124 | 124 | let ap = 14 | |
125 | 125 | ||
126 | - | let aq = | |
126 | + | let aq = 15 | |
127 | 127 | ||
128 | - | let ar = | |
128 | + | let ar = 16 | |
129 | 129 | ||
130 | - | let as = | |
130 | + | let as = Y(toString(this)) | |
131 | 131 | ||
132 | - | let at = | |
132 | + | let at = as[ac] | |
133 | 133 | ||
134 | - | let au = | |
134 | + | let au = as[ad] | |
135 | 135 | ||
136 | - | let av = | |
136 | + | let av = fromBase58String(au) | |
137 | 137 | ||
138 | - | let aw = | |
138 | + | let aw = addressFromStringValue(as[aj]) | |
139 | 139 | ||
140 | - | let ax = | |
140 | + | let ax = parseIntValue(as[ah]) | |
141 | 141 | ||
142 | - | let ay = | |
142 | + | let ay = as[ag] | |
143 | 143 | ||
144 | - | let az = | |
144 | + | let az = fromBase58String(ay) | |
145 | 145 | ||
146 | - | let aA = parseIntValue( | |
146 | + | let aA = parseIntValue(as[af]) | |
147 | 147 | ||
148 | - | let aB = parseIntValue( | |
148 | + | let aB = parseIntValue(as[ak]) | |
149 | 149 | ||
150 | - | let aC = parseIntValue( | |
150 | + | let aC = parseIntValue(as[al]) | |
151 | 151 | ||
152 | - | let aD = parseIntValue( | |
152 | + | let aD = parseIntValue(as[am]) | |
153 | 153 | ||
154 | - | let aE = parseIntValue( | |
154 | + | let aE = parseIntValue(as[an]) | |
155 | 155 | ||
156 | - | func aF () = "%s__isBlocked" | |
156 | + | let aF = parseIntValue(as[ao]) | |
157 | + | ||
158 | + | let aG = parseIntValue(as[ap]) | |
159 | + | ||
160 | + | let aH = parseIntValue(as[ar]) | |
161 | + | ||
162 | + | func aI () = "%s__isBlocked" | |
157 | 163 | ||
158 | 164 | ||
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))) | |
165 | + | func aJ (l) = ("%s%s__isMarketOpened__" + l) | |
162 | 166 | ||
163 | 167 | ||
164 | - | func aI (l) = valueOrErrorMessage(getInteger(au, n(l)), ((("No lastHeight at priceOracle=" + toString(au)) + " for key=") + n(l))) | |
168 | + | let aK = valueOrElse(getBoolean(aw, aI()), false) | |
169 | + | ||
170 | + | let aL = valueOrElse(getBoolean(aw, aJ(at)), false) | |
171 | + | ||
172 | + | func aM (l) = valueOrErrorMessage(getInteger(aw, m(l)), ((("No price at priceOracle=" + toString(aw)) + " for key=") + m(l))) | |
165 | 173 | ||
166 | 174 | ||
167 | - | func | |
175 | + | func aN (l) = valueOrErrorMessage(getInteger(aw, n(l)), ((("No lastHeight at priceOracle=" + toString(aw)) + " for key=") + n(l))) | |
168 | 176 | ||
169 | 177 | ||
170 | - | func aK (aL) = { | |
171 | - | let aM = ("idxHeight_" + toString(aL)) | |
172 | - | valueOrElse(getInteger(au, aM), 0) | |
178 | + | func aO () = valueOrErrorMessage(getInteger(aw, "currIdx"), ("No currIdx at controlAcc=" + toString(aw))) | |
179 | + | ||
180 | + | ||
181 | + | func aP (aQ) = { | |
182 | + | let aR = ("idxHeight_" + toString(aQ)) | |
183 | + | valueOrElse(getInteger(aw, aR), 0) | |
173 | 184 | } | |
174 | 185 | ||
175 | 186 | ||
176 | - | func | |
177 | - | let | |
178 | - | valueOrErrorMessage(getInteger( | |
187 | + | func aS (aT) = { | |
188 | + | let aU = ("price_" + toString(aT)) | |
189 | + | valueOrErrorMessage(getInteger(aw, aU), ((("No " + aU) + " at controlAcc=") + toString(aw))) | |
179 | 190 | } | |
180 | 191 | ||
181 | 192 | ||
182 | - | let | |
193 | + | let aV = aN(at) | |
183 | 194 | ||
184 | - | let | |
195 | + | let aW = ((aV - aV) > 5) | |
185 | 196 | ||
186 | - | let | |
197 | + | let aX = "%s%s__commonConfig__defoStakingAddress" | |
187 | 198 | ||
188 | - | let | |
199 | + | let aY = "%s%s__commonConfig__neutrinoStakingAddress" | |
189 | 200 | ||
190 | - | func | |
201 | + | func aZ (e) = ("%s%s__stakingBalance__" + e) | |
191 | 202 | ||
192 | 203 | ||
193 | - | func | |
204 | + | func ba () = ((("rpd_balance_" + ay) + "_") + toString(this)) | |
194 | 205 | ||
195 | 206 | ||
196 | - | let | |
207 | + | let bb = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, aX), ((("No config at factoryAcc" + toString(M)) + " for key=") + aX))), ("address extraction error for key=" + aX)) | |
197 | 208 | ||
198 | - | let | |
209 | + | let bc = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(M, aY), ((("No config at factoryAcc" + toString(M)) + " for key=") + aY))), ("address extraction error for key=" + aY)) | |
199 | 210 | ||
200 | - | func | |
211 | + | func bd () = valueOrElse(getInteger(bb, aZ(au)), 0) | |
201 | 212 | ||
202 | 213 | ||
203 | - | func | |
214 | + | func be () = valueOrElse(getInteger(bc, ba()), 0) | |
204 | 215 | ||
205 | 216 | ||
206 | - | let | |
217 | + | let bf = valueOrElse(getInteger(this, b()), 0) | |
207 | 218 | ||
208 | - | let | |
219 | + | let bg = valueOrElse(getInteger(this, a()), 0) | |
209 | 220 | ||
210 | - | let | |
221 | + | let bh = getIntegerValue(M, R(this)) | |
211 | 222 | ||
212 | - | let | |
223 | + | let bi = fromBase58String(X()) | |
213 | 224 | ||
214 | - | let | |
225 | + | let bj = getIntegerValue(M, O()) | |
215 | 226 | ||
216 | - | let | |
227 | + | let bk = (bj - assetBalance(this, bi)) | |
217 | 228 | ||
218 | - | let | |
229 | + | let bl = ((assetBalance(this, az) + be()) + bk) | |
219 | 230 | ||
220 | - | let | |
231 | + | let bm = aM(as[ac]) | |
221 | 232 | ||
222 | - | let | |
233 | + | let bn = (value(assetInfo(av)).quantity - assetBalance(this, av)) | |
223 | 234 | ||
224 | - | let bi = (value(assetInfo(at)).quantity - assetBalance(this, at)) | |
235 | + | func bo (bp) = if (aL) | |
236 | + | then bm | |
237 | + | else fraction((aA - bp), bm, aA) | |
225 | 238 | ||
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)) | |
239 | + | ||
240 | + | func bq (bp) = if (aL) | |
241 | + | then bm | |
242 | + | else fraction((aA + bp), bm, aA) | |
243 | + | ||
244 | + | ||
245 | + | func br (bs,bp) = if (aL) | |
246 | + | then bm | |
247 | + | else fraction((aA + bp), bs, aA) | |
248 | + | ||
249 | + | ||
250 | + | func bt (bu,bv,bw,bx,by,bz) = { | |
251 | + | let bA = fraction(bv, by, aA) | |
252 | + | let bB = fraction((aA - bz), bA, aA) | |
253 | + | let A = (bA - bB) | |
254 | + | let bC = fraction(bA, aA, by) | |
255 | + | let bD = (bv - bC) | |
256 | + | if (if ((bx > bv)) | |
257 | + | then (toString(bu) != toString(bb)) | |
234 | 258 | else false) | |
235 | - | then throw(((((("impossible to issue new " + | |
236 | - | else $Tuple2([IntegerEntry(b(), ( | |
259 | + | then throw(((((("impossible to issue new " + at) + ": payment=") + toString(bv)) + "is less then min amount=") + toString(bx))) | |
260 | + | else $Tuple2([IntegerEntry(b(), (bf + bC)), StringEntry(f(height, toString(bu), "FINISHED"), t(bv, toBase58String(bw), bm, bB, toBase58String(av), bA, A)), Reissue(av, (bB + A), true), ScriptTransfer(bu, bB, av), ScriptTransfer(bu, bD, bw), ScriptTransfer(aa(toString(this)), A, av), IntegerEntry(a(), (bg + A))], bD) | |
237 | 261 | } | |
238 | 262 | ||
239 | 263 | ||
240 | - | @Callable( | |
264 | + | @Callable(bE) | |
241 | 265 | func buyAsset () = { | |
242 | - | let | |
243 | - | let | |
244 | - | if ( | |
266 | + | let bF = value(bE.payments[0]) | |
267 | + | let bG = value(bF.assetId) | |
268 | + | if (aK) | |
245 | 269 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
246 | - | else if ( | |
247 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
248 | - | else if (( | |
249 | - | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String( | |
250 | - | else | |
270 | + | else if (aW) | |
271 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height))) | |
272 | + | else if ((bG != az)) | |
273 | + | then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(az)) + " actual=") + toBase58String(bG))) | |
274 | + | else bt(bE.caller, bF.amount, bG, aB, bo(aH), aF)._1 | |
251 | 275 | } | |
252 | 276 | ||
253 | 277 | ||
254 | 278 | ||
255 | - | @Callable( | |
279 | + | @Callable(bE) | |
256 | 280 | func sellAsset () = { | |
257 | - | let bv = value(bu.payments[0]) | |
258 | - | let bx = value(bv.assetId) | |
259 | - | let by = toString(bu.caller) | |
260 | - | if (aG) | |
281 | + | let bF = value(bE.payments[0]) | |
282 | + | let bH = value(bF.assetId) | |
283 | + | let bI = toString(bE.caller) | |
284 | + | let bJ = bq(aH) | |
285 | + | if (aK) | |
261 | 286 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
262 | - | else if ( | |
263 | - | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
264 | - | else if (( | |
265 | - | then throw(((("Invalid payment asset id: expected=" + toBase58String( | |
266 | - | else if (( | |
267 | - | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString( | |
287 | + | else if (aW) | |
288 | + | then throw(((("last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height))) | |
289 | + | else if ((bH != av)) | |
290 | + | then throw(((("Invalid payment asset id: expected=" + toBase58String(av)) + " actual=") + toBase58String(bH))) | |
291 | + | else if ((aC > bF.amount)) | |
292 | + | then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(bF.amount)) + " minAmount=") + toString(aC))) | |
268 | 293 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | then | |
272 | - | else | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | [IntegerEntry(b(), ( | |
294 | + | let bK = fraction(bF.amount, aA, bJ) | |
295 | + | let bL = if ((bK > bl)) | |
296 | + | then bl | |
297 | + | else bK | |
298 | + | let bM = fraction(bL, bJ, aA) | |
299 | + | let bD = (bF.amount - bM) | |
300 | + | let bN = fraction(aG, bM, aA) | |
301 | + | let bO = (bM - bN) | |
302 | + | let bP = fraction(bO, aA, bJ) | |
303 | + | [IntegerEntry(b(), (bf - bP)), StringEntry(f(height, bI, "FINISHED"), t(bF.amount, toBase58String(bH), bJ, bP, ay, bM, bN)), Burn(av, bO), ScriptTransfer(bE.caller, bP, az), ScriptTransfer(bE.caller, bD, av), ScriptTransfer(aa(toString(this)), bN, av), IntegerEntry(a(), (bg + bN))] | |
279 | 304 | } | |
280 | 305 | } | |
281 | 306 | ||
282 | 307 | ||
283 | 308 | ||
284 | - | @Callable( | |
285 | - | func crossExchange ( | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | if ( | |
309 | + | @Callable(bE) | |
310 | + | func crossExchange (bQ,bR) = { | |
311 | + | let bF = value(bE.payments[0]) | |
312 | + | let bH = value(bF.assetId) | |
313 | + | let bS = toBase58String(bH) | |
314 | + | let bT = bF.amount | |
315 | + | let bI = toString(bE.caller) | |
316 | + | let bU = as | |
317 | + | let bV = Z(bR) | |
318 | + | let bW = bV._2 | |
319 | + | let bX = valueOrErrorMessage(addressFromString(bV._1), ("couldn't parse address from string for assetCode=" + bR)) | |
320 | + | let bY = valueOrErrorMessage(parseInt(bW[al]), ("minSellPmt parsing error: rawVal=" + bW[al])) | |
321 | + | let bZ = aN(bR) | |
322 | + | let ca = ((bZ - bZ) > 5) | |
323 | + | if (aK) | |
299 | 324 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
300 | - | else if (( | |
325 | + | else if ((bW[ac] == "NGN")) | |
301 | 326 | then throw("crossExchange for NGN is temporary disabled") | |
302 | - | else if (( | |
303 | - | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + | |
304 | - | else if (( | |
305 | - | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + | |
306 | - | else if (( | |
307 | - | then throw(((("toAsset has not been issued yet: buyAssetId=" + | |
308 | - | else if (( | |
309 | - | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + | |
310 | - | else if ( | |
311 | - | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
312 | - | else if ( | |
313 | - | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString( | |
327 | + | else if ((as[ac] != bQ)) | |
328 | + | then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + as[ac]) + " BUT buyAssetId=") + bQ)) | |
329 | + | else if ((bW[ad] != bS)) | |
330 | + | then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + bW[ad]) + "BUT pmtAsset=") + bS)) | |
331 | + | else if ((as[ae] != "ISSUED")) | |
332 | + | then throw(((("toAsset has not been issued yet: buyAssetId=" + bQ) + " BUT status=") + as[ae])) | |
333 | + | else if ((bW[ae] != "ISSUED")) | |
334 | + | then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + bS) + " BUT status=") + bW[ae])) | |
335 | + | else if (aW) | |
336 | + | then throw(((((("buy last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height)) + " buyCode=") + bQ)) | |
337 | + | else if (ca) | |
338 | + | then throw(((((("sell last price finalization has been more then 5 blocks ago: priceLastHeight=" + toString(aV)) + " currHeight=") + toString(height)) + " sellCode=") + bR)) | |
314 | 339 | else { | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | (((( | |
340 | + | let cb = bo((aH / 2)) | |
341 | + | let cc = br(aM(bR), (aH / 2)) | |
342 | + | let by = fraction(cb, aA, cc) | |
343 | + | let cd = fraction(bT, aA, cc) | |
344 | + | let ce = valueOrElse(getInteger(this, c()), 0) | |
345 | + | let cf = k(bR) | |
346 | + | let cg = valueOrElse(getInteger(this, cf), 0) | |
347 | + | let ch = parseIntValue(bW[ap]) | |
348 | + | let ci = bt(bE.caller, bT, bH, bY, by, fraction((aF + ch), 50, 100)) | |
349 | + | ((((ci._1 :+ ScriptTransfer(bX, cd, bi)) :+ ScriptTransfer(bX, (bT - ci._2), bH)) :+ IntegerEntry(cf, (cg + cd))) :+ IntegerEntry(c(), (ce + cd))) | |
325 | 350 | } | |
326 | 351 | } | |
327 | 352 | ||
328 | 353 | ||
329 | 354 | ||
330 | - | @Callable( | |
355 | + | @Callable(bE) | |
331 | 356 | func rebalanceDebts () = { | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let C = | |
339 | - | let | |
340 | - | let | |
341 | - | if ( | |
357 | + | let cj = value(bE.payments[0]) | |
358 | + | let ck = value(cj.assetId) | |
359 | + | let cl = value(bE.payments[1]) | |
360 | + | let cm = value(cl.assetId) | |
361 | + | let cn = toString(bE.caller) | |
362 | + | let co = Y(cn) | |
363 | + | let C = co[ac] | |
364 | + | let cf = k(C) | |
365 | + | let cp = valueOrErrorMessage(getInteger(this, cf), ("No debts for " + C)) | |
366 | + | if (aK) | |
342 | 367 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
343 | - | else if (( | |
344 | - | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String( | |
345 | - | else if (( | |
346 | - | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String( | |
347 | - | else if (( | |
368 | + | else if ((bi != ck)) | |
369 | + | then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(bi)) + " actual=") + toBase58String(ck))) | |
370 | + | else if ((az != cm)) | |
371 | + | then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(az)) + " actual=") + toBase58String(cm))) | |
372 | + | else if ((cj.amount != cl.amount)) | |
348 | 373 | then throw("first payment amount doesn't match to the second payment amount") | |
349 | - | else if ((0 >= | |
350 | - | then throw(("lendedAmt is less then zero: lendedAmt=" + toString( | |
351 | - | else if (((100 * | |
352 | - | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString( | |
353 | - | else if (( | |
354 | - | then throw(((("attached payment is grater than required: pmtAmount=" + toString( | |
374 | + | else if ((0 >= cp)) | |
375 | + | then throw(("lendedAmt is less then zero: lendedAmt=" + toString(cp))) | |
376 | + | else if (((100 * aA) >= cj.amount)) | |
377 | + | then throw(("attached payment must be greater then 100: pmt0.amount=" + toString(cj.amount))) | |
378 | + | else if ((cj.amount > cp)) | |
379 | + | then throw(((("attached payment is grater than required: pmtAmount=" + toString(cj.amount)) + " lendedAmt=") + toString(cp))) | |
355 | 380 | else { | |
356 | - | let | |
357 | - | let G = ( | |
358 | - | [IntegerEntry( | |
381 | + | let ce = valueOrElse(getInteger(this, c()), 0) | |
382 | + | let G = (cp - cj.amount) | |
383 | + | [IntegerEntry(cf, G), IntegerEntry(c(), (ce - cj.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(bE.transactionId)), B(C, cj, cl, cp, G))] | |
359 | 384 | } | |
360 | 385 | } | |
361 | 386 | ||
362 | 387 | ||
363 | - | @Verifier( | |
364 | - | func | |
365 | - | let | |
366 | - | if ($isInstanceOf( | |
388 | + | @Verifier(cq) | |
389 | + | func cr () = { | |
390 | + | let cs = cq | |
391 | + | if ($isInstanceOf(cs, "InvokeScriptTransaction")) | |
367 | 392 | then { | |
368 | - | let | |
369 | - | if (( | |
370 | - | then throw(("fee amount is greater than max allowed: " + toString( | |
371 | - | else if (isDefined( | |
393 | + | let ct = cs | |
394 | + | if ((ct.fee > (900 * 1000))) | |
395 | + | then throw(("fee amount is greater than max allowed: " + toString(ct.fee))) | |
396 | + | else if (isDefined(ct.feeAssetId)) | |
372 | 397 | then throw("only Waves is allowed as feeAssetId") | |
373 | - | else if (( | |
398 | + | else if ((ct.function == "rebalanceDebts")) | |
374 | 399 | then { | |
375 | - | let | |
376 | - | if ((Y( | |
400 | + | let cu = toString(addressFromRecipient(ct.dApp)) | |
401 | + | if ((Y(cu)[ae] != "ISSUED")) | |
377 | 402 | then throw("only defo dapp is allowed") | |
378 | - | else if (( | |
403 | + | else if ((cu == toString(this))) | |
379 | 404 | then throw("impossible to call self rebealnceDebt") | |
380 | 405 | else true | |
381 | 406 | } | |
382 | - | else if (if (if (( | |
407 | + | else if (if (if ((ct.function == "lockNeutrino")) | |
383 | 408 | then true | |
384 | - | else ( | |
409 | + | else (ct.function == "lockNeutrinoSP")) | |
385 | 410 | then true | |
386 | - | else ( | |
387 | - | then if ((toString( | |
411 | + | else (ct.function == "unlockNeutrino")) | |
412 | + | then if ((toString(bc) != toString(addressFromRecipient(ct.dApp)))) | |
388 | 413 | then throw("invalid neutrino staking dapp address") | |
389 | - | else sigVerify( | |
414 | + | else sigVerify(cq.bodyBytes, cq.proofs[0], ab()) | |
390 | 415 | else throw("Not allowed invocation method calls") | |
391 | 416 | } | |
392 | - | else sigVerify( | |
417 | + | else sigVerify(cq.bodyBytes, cq.proofs[0], cq.senderPublicKey) | |
393 | 418 | } | |
394 | 419 |
github/deemru/w8io/169f3d6 160.78 ms ◑