tx · 2P2gQfTo9skETBZyXHJAV6btEUwhhhBrMLDEAREzji6j 3N3UHNYQ8xwe2WWLKgXX628JyUtF6kYK4wS: -0.01400000 Waves 2020.11.09 13:47 [1257698] smart account 3N3UHNYQ8xwe2WWLKgXX628JyUtF6kYK4wS > SELF 0.00000000 Waves
{ "type": 13, "id": "2P2gQfTo9skETBZyXHJAV6btEUwhhhBrMLDEAREzji6j", "fee": 1400000, "feeAssetId": null, "timestamp": 1604918861252, "version": 1, "sender": "3N3UHNYQ8xwe2WWLKgXX628JyUtF6kYK4wS", "senderPublicKey": "Hxyif8HnnHh34SZ7PZewDcNUgrZfHNJsQvLNCcPbCW27", "proofs": [ "4AnD92Wcnn3rBBdpRrdaMW6AkSwTYbapeLC2hcmycJrQHc4N8izcyDR6Lc9aYDtax84C95x9U1DeqmEAT1dv1dxw" ], "script": "base64:AAIEAAAAAAAAAD0IAhIKCggICAEIAQEICBIRCg8ICAEIAQgBAQEBAQEBAQESAwoBCBIDCgEIEgQKAggBEgQKAggIEgQKAggIAAAAaQEAAAAWY29udmVydEpzb25BcnJheVRvTGlzdAAAAAIAAAAJanNvbkFycmF5AAAAC3NwbGl0U3ltYm9sCQAEtQAAAAIFAAAACWpzb25BcnJheQUAAAALc3BsaXRTeW1ib2wBAAAAGGdldFN0cmluZ0J5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQcAAAAAA1NFUAIAAAACX18AAAAADGtleUFzc2V0Q29kZQAAAAAAAAAAAQAAAAAKa2V5QXNzZXRJZAAAAAAAAAAAAgAAAAAOa2V5QXNzZXRTdGF0dXMAAAAAAAAAAAMAAAAAFWtleUFzc2V0UHJpY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AAAIkNhbm5vdCBmaW5kIHBvb2wgbWFrZXIgYnkgYWRkcmVzcyAFAAAAEHBvb2xNYWtlckFkZHJlc3MCAAAAFSBvciBubyBsb2NrZWQgYW1vdW50LgMJAABmAAAAAgUAAAAOd2l0aGRyYXdIZWlnaHQFAAAABmhlaWdodAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAMUGxlYXNlIHdhaXQgCQABpAAAAAEFAAAADndpdGhkcmF3SGVpZ2h0AgAAABEgYmVmb3JlIHdpdGhkcmF3LgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAYcG9vbE1ha2VyTG9ja2VkQW1vdW50S2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABhwb29sVG90YWxMb2NrZWRBbW91bnRLZXkJAABlAAAAAgUAAAAPcG9vbFRvdGFsTG9ja2VkBQAAABlyZWdpc3RlcmVkQW1vdW50NFdpdGhkcmF3CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABhwb29sTWFrZXJVbmxvY2tIZWlnaHRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAQcG9vbE1ha2VyQWRkcmVzcwUAAAAZcmVnaXN0ZXJlZEFtb3VudDRXaXRoZHJhdwUAAAAPbmV1dHJpbm9Bc3NldElkBQAAAANuaWwAAAAAYBR4rQ==", "chainId": 84, "height": 1257698, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7vKjHAJwjLZqV8nCqm1nxqjLTUqeMDfMnFTMViWq9Z8H Next: FzfZGgJjPWhCp836dTNqB94ktnnq1rdPVvfUhY4n9ie3 Diff:
Old | New | Differences | |
---|---|---|---|
313 | 313 | let co = if ((cl >= 0)) | |
314 | 314 | then 0 | |
315 | 315 | else max([cm, cn]) | |
316 | - | let cp = fraction((al - co), cj, al) | |
316 | + | let cp = if ((cl >= 0)) | |
317 | + | then cj | |
318 | + | else (fraction(co, cl, al) + cj) | |
317 | 319 | let cq = (height + aX(bB)) | |
318 | 320 | $Tuple8(bR, cp, bW, bT, cj, cq, ck, makeString([bR, bS, ad, toString(bX), toString(bY), toString(bZ), toString(bT), toString(bU), toString(ca), toString(cd), toString(ce), toString(cf), toString(ch), toString(cj), toString(ck), toString(cl), toString(cm), toString(cn), toString(co), toString(cp)], h)) | |
319 | 321 | } | |
440 | 442 | let cT = ah(bR, cQ, cq) | |
441 | 443 | if ((g(C) == false)) | |
442 | 444 | then throw("Contract is not yet ready.") | |
443 | - | else if (if (if ((0 > cP)) | |
444 | - | then true | |
445 | - | else (0 >= cj)) | |
446 | - | then true | |
447 | - | else (cP > cp)) | |
445 | + | else if ((0 >= cP)) | |
448 | 446 | then throw((("Cannot find pool maker by address " + cQ) + " or amount passed is not correct.")) | |
449 | - | else if (((1 * al) > cP)) | |
450 | - | then throw("Redeem amount is less then min allowed") | |
451 | - | else if ((ck > 0)) | |
452 | - | then throw("Pool maker already has initiated redemption that is not withdrawn yet.") | |
453 | - | else if (isDefined(getInteger(this, cT))) | |
454 | - | then throw((("Pool maker has already initiated redemption for " + toString(height)) + " height")) | |
455 | - | else [IntegerEntry(aj(bR), (bW + cP)), IntegerEntry(V(bR), (bT - cP)), IntegerEntry(ac(bR, cQ), (cj - cP)), IntegerEntry(cT, cP), IntegerEntry(af(bR, cQ), cP), IntegerEntry(ag(bR, cQ), cq), StringEntry("%s%s_trace_redeemFromPool", cS)] | |
447 | + | else if ((0 >= cj)) | |
448 | + | then throw("Pool maker has no funds") | |
449 | + | else if ((0 >= cp)) | |
450 | + | then throw("All pool maker funds are locked") | |
451 | + | else if ((cP > cp)) | |
452 | + | then throw(((("Allowed amount to redeem is less then requested: allowedAmountToRedeem=" + toString(cp)) + " requested=") + toString(cP))) | |
453 | + | else if (((1 * al) > cP)) | |
454 | + | then throw("Redeem amount is less then min allowed") | |
455 | + | else if ((ck > 0)) | |
456 | + | then throw("Pool maker already has initiated redemption that is not withdrawn yet.") | |
457 | + | else if (isDefined(getInteger(this, cT))) | |
458 | + | then throw((("Pool maker has already initiated redemption for " + toString(height)) + " height")) | |
459 | + | else [IntegerEntry(aj(bR), (bW + cP)), IntegerEntry(V(bR), (bT - cP)), IntegerEntry(ac(bR, cQ), (cj - cP)), IntegerEntry(cT, cP), IntegerEntry(af(bR, cQ), cP), IntegerEntry(ag(bR, cQ), cq), StringEntry("%s%s_trace_redeemFromPool", cS)] | |
456 | 460 | } | |
457 | 461 | ||
458 | 462 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = split(b, c) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func d (e,f) = valueOrElse(getString(e, f), "") | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func g (f) = valueOrElse(getBoolean(this, f), false) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | let h = "__" | |
14 | 14 | ||
15 | 15 | let i = 1 | |
16 | 16 | ||
17 | 17 | let j = 2 | |
18 | 18 | ||
19 | 19 | let k = 3 | |
20 | 20 | ||
21 | 21 | let l = 4 | |
22 | 22 | ||
23 | 23 | let m = 5 | |
24 | 24 | ||
25 | 25 | let n = 6 | |
26 | 26 | ||
27 | 27 | let o = 7 | |
28 | 28 | ||
29 | 29 | let p = 8 | |
30 | 30 | ||
31 | 31 | let q = 9 | |
32 | 32 | ||
33 | 33 | let r = 10 | |
34 | 34 | ||
35 | 35 | let s = 11 | |
36 | 36 | ||
37 | 37 | let t = 12 | |
38 | 38 | ||
39 | 39 | let u = 13 | |
40 | 40 | ||
41 | 41 | let v = 14 | |
42 | 42 | ||
43 | 43 | let w = 15 | |
44 | 44 | ||
45 | 45 | let x = 16 | |
46 | 46 | ||
47 | 47 | let y = "G1Ebu5AMHaTJFEbZNkZQcJFUQ9KfiYUwupyLG857DcFr" | |
48 | 48 | ||
49 | 49 | let z = "%s%s__commonConfig__neutrinoContractAddress" | |
50 | 50 | ||
51 | 51 | let A = "%s%s__commonConfig__neutrinoStakingAddress" | |
52 | 52 | ||
53 | 53 | let B = "%s%s__commonConfig__minimumPoolFundingAmount" | |
54 | 54 | ||
55 | 55 | let C = "%s%s__commonConfig__initialized" | |
56 | 56 | ||
57 | 57 | let D = "%s%s__commonConfig__predefinedAssetsActiveIndex" | |
58 | 58 | ||
59 | 59 | let E = "%s%s__commonConfig__predefinedAssetsList" | |
60 | 60 | ||
61 | 61 | let F = "%s%s__commonConfig__debtAssetId" | |
62 | 62 | ||
63 | 63 | let G = "%s%s__commonConfig__debtAssetEtalonBalance" | |
64 | 64 | ||
65 | 65 | let H = "%s%s__commonConfig__defoStakingAddress" | |
66 | 66 | ||
67 | 67 | let I = "%s%s__commonConfig__defoStakingPacemakerPub" | |
68 | 68 | ||
69 | 69 | let J = "%s%s__commonConfig__minPoolInvestAmount" | |
70 | 70 | ||
71 | 71 | let K = "neutrino_asset_id" | |
72 | 72 | ||
73 | 73 | let L = "bond_asset_id" | |
74 | 74 | ||
75 | 75 | let M = "rpd_contract" | |
76 | 76 | ||
77 | 77 | let N = "%s__defoAssetId" | |
78 | 78 | ||
79 | 79 | let O = "%s__assetScriptTxId" | |
80 | 80 | ||
81 | 81 | func P (Q) = (("%s%s%s__defoAsset__" + Q) + "__config") | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func R (S) = ("%s%s__price__" + S) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func T (Q) = (("%s%s%s__defoAsset__" + Q) + "__initHeight") | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func U (Q) = (("%s%s%s__defoAsset__" + Q) + "__activateHeight") | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func V (Q) = (("%s%s%s__defoAsset__" + Q) + "__currentPool") | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func W (Q) = (("%s%s%s__defoAsset__" + Q) + "__maxPool") | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func X (Q) = (("%s%s%s__defoAsset__" + Q) + "__meta") | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func Y (Q) = (("%s%s%s__defoAsset__" + Q) + "__poolMakers") | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func Z (S) = (("%s%s%s__defoAsset__" + S) + "__addressByAssetCode") | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func aa (ab) = (("%s%s%s__defoAsset__" + ab) + "__addressByAssetId") | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ac (Q,ad) = makeString(["%s%s%s%s__pool", Q, ad, "amount"], h) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func ae (Q,ad) = makeString(["%s%s%s%s__pool", Q, ad, "maxAmount"], h) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func af (Q,ad) = makeString(["%s%s%s%s__pool", Q, ad, "lockedAmount"], h) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ag (Q,ad) = makeString(["%s%s%s%s__pool", Q, ad, "unlockHeight"], h) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ah (Q,ad,ai) = makeString(["%s%s%s%d%s__pool", Q, ad, toString(ai), "liquidityRequest"], h) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aj (Q) = makeString(["%s%s%s__pool", Q, "totalLockedAmount"], h) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ak (Q) = a(valueOrErrorMessage(d(this, P(Q)), (("No DEFO Asset " + Q) + "config present")), "__") | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | let al = 1000000 | |
133 | 133 | ||
134 | 134 | let am = addressFromStringValue(valueOrErrorMessage(getString(this, z), "No neutrino contract specified.")) | |
135 | 135 | ||
136 | 136 | let an = valueOrErrorMessage(getString(am, K), "No USDN asset id found.") | |
137 | 137 | ||
138 | 138 | let ao = fromBase58String(an) | |
139 | 139 | ||
140 | 140 | let ap = fromBase58String(valueOrErrorMessage(getString(am, L), "No NSBT asset id found")) | |
141 | 141 | ||
142 | 142 | let aq = valueOrErrorMessage(getInteger(this, B), "Minimum pool funding amount is not specified.") | |
143 | 143 | ||
144 | 144 | let ar = valueOrElse(getInteger(this, J), (10 * al)) | |
145 | 145 | ||
146 | 146 | let as = "PROPOSED" | |
147 | 147 | ||
148 | 148 | let at = "READY" | |
149 | 149 | ||
150 | 150 | let au = "ISSUED" | |
151 | 151 | ||
152 | 152 | let av = $Tuple3(as, at, au) | |
153 | 153 | ||
154 | 154 | let aw = valueOrErrorMessage(getString(this, E), "No pool of predeployed asset contracts found.") | |
155 | 155 | ||
156 | 156 | let ax = a(aw, ",") | |
157 | 157 | ||
158 | 158 | let ay = valueOrElse(getInteger(this, D), 0) | |
159 | 159 | ||
160 | 160 | let az = fromBase58String(valueOrErrorMessage(getString(this, F), "No debt token found")) | |
161 | 161 | ||
162 | 162 | let aA = valueOrElse(getInteger(this, G), 0) | |
163 | 163 | ||
164 | 164 | let aB = addressFromStringValue(getStringValue(am, M)) | |
165 | 165 | ||
166 | 166 | func aC (aD) = { | |
167 | 167 | let aE = makeString(["rpd_balance", an, aD], "_") | |
168 | 168 | valueOrElse(getInteger(aB, aE), 0) | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aF (aG) = valueOrElse(getString(this, Z(aG)), "") | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aH (aG) = valueOrErrorMessage(getString(this, Z(aG)), (("Cannot find asset address by " + aG) + " code")) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func aI (aJ) = aJ[i] | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aK (aJ) = aJ[j] | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func aL (aJ) = aJ[k] | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func aM (aJ) = parseIntValue(aJ[l]) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aN (aJ) = aJ[m] | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func aO (aJ) = parseIntValue(aJ[n]) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func aP (aJ) = parseIntValue(aJ[o]) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func aQ (aJ) = aJ[p] | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aR (aJ) = parseIntValue(aJ[q]) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aS (aJ) = parseIntValue(aJ[r]) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aT (aJ) = parseIntValue(aJ[s]) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aU (aJ) = parseIntValue(aJ[t]) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aV (aJ) = parseIntValue(aJ[u]) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func aW (aJ) = parseIntValue(aJ[v]) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aX (aJ) = parseIntValue(aJ[w]) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func aY (aJ) = parseIntValue(aJ[x]) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aZ (Q) = valueOrElse(getString(this, Y(Q)), "") | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func ba (Q) = valueOrElse(getInteger(this, T(Q)), 0) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func bb (Q) = valueOrElse(getInteger(this, U(Q)), 0) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func bc (Q) = valueOrElse(getInteger(this, V(Q)), 0) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func bd (Q) = valueOrElse(getInteger(this, W(Q)), 0) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func be (Q) = valueOrElse(getString(this, X(Q)), "") | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func bf (Q,ad) = valueOrElse(getInteger(this, ac(Q, ad)), 0) | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func bg (Q,ad) = valueOrElse(getInteger(this, ae(Q, ad)), 0) | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func bh (Q,ad) = valueOrElse(getInteger(this, af(Q, ad)), 0) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func bi (Q,ad) = valueOrElse(getInteger(this, ag(Q, ad)), 0) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func bj (bk,S) = valueOrErrorMessage(getInteger(bk, R(S)), "No Asset price found") | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func bl (Q) = valueOrElse(getInteger(this, aj(Q)), 0) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bm (S,ab,av,bn,bo,bp,bq,bk,br,bs,bt,bu,bv,bw,bx,by) = makeString(["%s%s%s%d%s%d%d%s%d%d%d%d%d%d%d", S, ab, av, toString(bn), bo, toString(bp), toString(bq), bk, toString(br), toString(bs), toString(bt), toString(bu), toString(bv), toString(bw), toString(bx), toString(by)], "__") | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func bz (bA,bB) = { | |
266 | 266 | let bC = aI(bB) | |
267 | 267 | let bD = aK(bB) | |
268 | 268 | let bE = aM(bB) | |
269 | 269 | let bF = aN(bB) | |
270 | 270 | let bG = aO(bB) | |
271 | 271 | let bH = aP(bB) | |
272 | 272 | let bI = aQ(bB) | |
273 | 273 | let bJ = aR(bB) | |
274 | 274 | let bK = aS(bB) | |
275 | 275 | let bL = aT(bB) | |
276 | 276 | let bM = aU(bB) | |
277 | 277 | let bN = aV(bB) | |
278 | 278 | let bO = aW(bB) | |
279 | 279 | let bP = aX(bB) | |
280 | 280 | let by = aY(bB) | |
281 | 281 | bm(bC, bD, bA, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, by) | |
282 | 282 | } | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | func bQ (S,ad) = { | |
286 | 286 | let bR = aH(S) | |
287 | 287 | let Q = addressFromStringValue(bR) | |
288 | 288 | let bB = ak(bR) | |
289 | 289 | let bS = aK(bB) | |
290 | 290 | let ab = fromBase58String(bS) | |
291 | 291 | let bT = valueOrElse(getInteger(this, V(bR)), 0) | |
292 | 292 | let bU = valueOrElse(getInteger(this, W(bR)), 0) | |
293 | 293 | let bV = aj(bR) | |
294 | 294 | let bW = valueOrElse(getInteger(this, bV), 0) | |
295 | 295 | let bX = aC(bR) | |
296 | 296 | let bY = assetBalance(Q, ao) | |
297 | 297 | let bZ = ((bX + bY) - bW) | |
298 | 298 | let ca = (bZ - bT) | |
299 | 299 | let cb = assetBalance(Q, ab) | |
300 | 300 | let cc = valueOrErrorMessage(assetInfo(ab), ("Cannot find asset by id " + bS)).quantity | |
301 | 301 | let cd = (cc - cb) | |
302 | 302 | let bk = addressFromStringValue(aQ(bB)) | |
303 | 303 | let ce = bj(bk, S) | |
304 | 304 | let cf = (((al + aO(bB)) * ce) / al) | |
305 | 305 | let cg = fraction(cf, cd, al) | |
306 | 306 | let ch = bg(bR, ad) | |
307 | 307 | let ci = ac(bR, ad) | |
308 | 308 | let cj = valueOrElse(getInteger(this, ci), 0) | |
309 | 309 | let ck = bh(bR, ad) | |
310 | 310 | let cl = (ca - cg) | |
311 | 311 | let cm = fraction(cj, al, bT) | |
312 | 312 | let cn = fraction(ch, al, bU) | |
313 | 313 | let co = if ((cl >= 0)) | |
314 | 314 | then 0 | |
315 | 315 | else max([cm, cn]) | |
316 | - | let cp = fraction((al - co), cj, al) | |
316 | + | let cp = if ((cl >= 0)) | |
317 | + | then cj | |
318 | + | else (fraction(co, cl, al) + cj) | |
317 | 319 | let cq = (height + aX(bB)) | |
318 | 320 | $Tuple8(bR, cp, bW, bT, cj, cq, ck, makeString([bR, bS, ad, toString(bX), toString(bY), toString(bZ), toString(bT), toString(bU), toString(ca), toString(cd), toString(ce), toString(cf), toString(ch), toString(cj), toString(ck), toString(cl), toString(cm), toString(cn), toString(co), toString(cp)], h)) | |
319 | 321 | } | |
320 | 322 | ||
321 | 323 | ||
322 | 324 | @Callable(cr) | |
323 | 325 | func init (cs,ct,cu,cv,ay,cw,cx,cy) = if ((toBase58String(cr.callerPublicKey) != y)) | |
324 | 326 | then throw("Only Admin can perform contract operation.") | |
325 | 327 | else if ((g(C) == true)) | |
326 | 328 | then throw("Contract was already initialized.") | |
327 | 329 | else { | |
328 | 330 | let cz = Issue("DEFO_DEBT", "DEFO Debt Token.", 1, 6, true) | |
329 | 331 | let cA = calculateAssetId(cz) | |
330 | 332 | [StringEntry(z, cs), StringEntry(A, ct), IntegerEntry(B, cu), StringEntry(E, cv), IntegerEntry(D, ay), IntegerEntry(G, cw), StringEntry(F, toBase58String(cA)), StringEntry(H, cx), StringEntry(I, cy), BooleanEntry(C, true), cz, Burn(cA, 1)] | |
331 | 333 | } | |
332 | 334 | ||
333 | 335 | ||
334 | 336 | ||
335 | 337 | @Callable(cr) | |
336 | 338 | func proposeAsset (S,cB,bq,bk,bp,bo,bn,br,bs,bt,bu,bv,bw,bx,by) = if ((toBase58String(cr.callerPublicKey) != y)) | |
337 | 339 | then throw("Only Admin can perform contract operation.") | |
338 | 340 | else if ((g(C) == false)) | |
339 | 341 | then throw("Contract is not yet ready.") | |
340 | 342 | else if ((fromBase58String(bo) != ao)) | |
341 | 343 | then throw("Baking asset id could be USDN only.") | |
342 | 344 | else if ((aF(S) != "")) | |
343 | 345 | then throw((("Asset with passed code " + S) + " has already been proposed.")) | |
344 | 346 | else if ((aq > bq)) | |
345 | 347 | then throw(("Minimum pool amount should be greater or equals to " + toString(aq))) | |
346 | 348 | else if (if (if (if (if (if (if (if ((0 > bp)) | |
347 | 349 | then true | |
348 | 350 | else (0 > bn)) | |
349 | 351 | then true | |
350 | 352 | else (0 > br)) | |
351 | 353 | then true | |
352 | 354 | else (0 > bs)) | |
353 | 355 | then true | |
354 | 356 | else (0 > bt)) | |
355 | 357 | then true | |
356 | 358 | else (0 > bu)) | |
357 | 359 | then true | |
358 | 360 | else (0 > bv)) | |
359 | 361 | then true | |
360 | 362 | else (0 > bw)) | |
361 | 363 | then throw("One of the passed parameters is invalid.") | |
362 | 364 | else { | |
363 | 365 | let cC = valueOrErrorMessage(addressFromStringValue(bk), "Passed Price Oracle Address is not valid.") | |
364 | 366 | let Q = ax[ay] | |
365 | 367 | let cD = valueOrErrorMessage(getString(valueOrErrorMessage(addressFromString(Q), ""), N), "No defo asset ID found.") | |
366 | 368 | [StringEntry(P(Q), bm(S, cD, av._1, bn, bo, bp, bq, bk, br, bs, bt, bu, bv, bw, bx, by)), StringEntry(Z(S), Q), StringEntry(X(Q), cB), IntegerEntry(T(Q), height), IntegerEntry(D, (ay + 1)), StringEntry(aa(cD), Q)] | |
367 | 369 | } | |
368 | 370 | ||
369 | 371 | ||
370 | 372 | ||
371 | 373 | @Callable(cr) | |
372 | 374 | func fundLiquidityPool (S) = { | |
373 | 375 | let bR = aH(S) | |
374 | 376 | let bB = ak(bR) | |
375 | 377 | let cE = value(cr.payments[0]) | |
376 | 378 | let ad = toString(cr.caller) | |
377 | 379 | if ((g(C) == false)) | |
378 | 380 | then throw("Contract is not yet ready.") | |
379 | 381 | else if ((cE.assetId != ao)) | |
380 | 382 | then throw("Liquidity pool could be funded with USDN only.") | |
381 | 383 | else if ((ar > cE.amount)) | |
382 | 384 | then throw(("Attached payment amount is less tha min allowed: " + toString(ar))) | |
383 | 385 | else { | |
384 | 386 | let cF = (cE.amount + bc(bR)) | |
385 | 387 | let cG = bd(bR) | |
386 | 388 | let cH = bf(bR, ad) | |
387 | 389 | let cI = bg(bR, ad) | |
388 | 390 | let cJ = aL(bB) | |
389 | 391 | let cK = if (if ((cJ == as)) | |
390 | 392 | then (cF >= aP(bB)) | |
391 | 393 | else false) | |
392 | 394 | then at | |
393 | 395 | else cJ | |
394 | 396 | let cL = (cH + cE.amount) | |
395 | 397 | let cM = if ((cJ == au)) | |
396 | 398 | then [ScriptTransfer(addressFromStringValue(bR), cE.amount, ao)] | |
397 | 399 | else nil | |
398 | 400 | ([IntegerEntry(ac(bR, ad), cL), IntegerEntry(ae(bR, ad), max([cL, cI])), IntegerEntry(V(bR), cF), IntegerEntry(W(bR), max([cG, cF])), StringEntry(P(bR), bz(cK, bB))] ++ cM) | |
399 | 401 | } | |
400 | 402 | } | |
401 | 403 | ||
402 | 404 | ||
403 | 405 | ||
404 | 406 | @Callable(cr) | |
405 | 407 | func activateAsset (S) = { | |
406 | 408 | let Q = aF(S) | |
407 | 409 | let bB = ak(Q) | |
408 | 410 | let cN = bc(Q) | |
409 | 411 | let cO = aL(bB) | |
410 | 412 | if ((toBase58String(cr.callerPublicKey) != y)) | |
411 | 413 | then throw("Only Admin can perform contract operation.") | |
412 | 414 | else if ((g(C) == false)) | |
413 | 415 | then throw("Contract is not yet ready.") | |
414 | 416 | else if ((cO != av._2)) | |
415 | 417 | then throw((("Asset is not in READY status. Current status is " + cO) + ".")) | |
416 | 418 | else if ((Q == "")) | |
417 | 419 | then throw((("Cannot find asset " + S) + ".")) | |
418 | 420 | else if ((aq > cN)) | |
419 | 421 | then throw((((("Cannot issue asset as liquidity pool amount (" + toString(cN)) + ") is less than required (") + toString(aq)) + ")")) | |
420 | 422 | else { | |
421 | 423 | let cz = Reissue(az, aA, true) | |
422 | 424 | [IntegerEntry(U(Q), height), StringEntry(P(Q), bz(av._3, bB)), cz, ScriptTransfer(addressFromStringValue(Q), cN, ao), ScriptTransfer(addressFromStringValue(Q), aA, az)] | |
423 | 425 | } | |
424 | 426 | } | |
425 | 427 | ||
426 | 428 | ||
427 | 429 | ||
428 | 430 | @Callable(cr) | |
429 | 431 | func redeemFromPool (S,cP) = { | |
430 | 432 | let cQ = toString(cr.caller) | |
431 | 433 | let cR = bQ(S, cQ) | |
432 | 434 | let bR = cR._1 | |
433 | 435 | let cp = cR._2 | |
434 | 436 | let bW = cR._3 | |
435 | 437 | let bT = cR._4 | |
436 | 438 | let cj = cR._5 | |
437 | 439 | let cq = cR._6 | |
438 | 440 | let ck = cR._7 | |
439 | 441 | let cS = cR._8 | |
440 | 442 | let cT = ah(bR, cQ, cq) | |
441 | 443 | if ((g(C) == false)) | |
442 | 444 | then throw("Contract is not yet ready.") | |
443 | - | else if (if (if ((0 > cP)) | |
444 | - | then true | |
445 | - | else (0 >= cj)) | |
446 | - | then true | |
447 | - | else (cP > cp)) | |
445 | + | else if ((0 >= cP)) | |
448 | 446 | then throw((("Cannot find pool maker by address " + cQ) + " or amount passed is not correct.")) | |
449 | - | else if (((1 * al) > cP)) | |
450 | - | then throw("Redeem amount is less then min allowed") | |
451 | - | else if ((ck > 0)) | |
452 | - | then throw("Pool maker already has initiated redemption that is not withdrawn yet.") | |
453 | - | else if (isDefined(getInteger(this, cT))) | |
454 | - | then throw((("Pool maker has already initiated redemption for " + toString(height)) + " height")) | |
455 | - | else [IntegerEntry(aj(bR), (bW + cP)), IntegerEntry(V(bR), (bT - cP)), IntegerEntry(ac(bR, cQ), (cj - cP)), IntegerEntry(cT, cP), IntegerEntry(af(bR, cQ), cP), IntegerEntry(ag(bR, cQ), cq), StringEntry("%s%s_trace_redeemFromPool", cS)] | |
447 | + | else if ((0 >= cj)) | |
448 | + | then throw("Pool maker has no funds") | |
449 | + | else if ((0 >= cp)) | |
450 | + | then throw("All pool maker funds are locked") | |
451 | + | else if ((cP > cp)) | |
452 | + | then throw(((("Allowed amount to redeem is less then requested: allowedAmountToRedeem=" + toString(cp)) + " requested=") + toString(cP))) | |
453 | + | else if (((1 * al) > cP)) | |
454 | + | then throw("Redeem amount is less then min allowed") | |
455 | + | else if ((ck > 0)) | |
456 | + | then throw("Pool maker already has initiated redemption that is not withdrawn yet.") | |
457 | + | else if (isDefined(getInteger(this, cT))) | |
458 | + | then throw((("Pool maker has already initiated redemption for " + toString(height)) + " height")) | |
459 | + | else [IntegerEntry(aj(bR), (bW + cP)), IntegerEntry(V(bR), (bT - cP)), IntegerEntry(ac(bR, cQ), (cj - cP)), IntegerEntry(cT, cP), IntegerEntry(af(bR, cQ), cP), IntegerEntry(ag(bR, cQ), cq), StringEntry("%s%s_trace_redeemFromPool", cS)] | |
456 | 460 | } | |
457 | 461 | ||
458 | 462 | ||
459 | 463 | ||
460 | 464 | @Callable(cr) | |
461 | 465 | func getMaxAllowedAmountToRedeem (S,ad) = { | |
462 | 466 | let cR = bQ(S, ad) | |
463 | 467 | let bR = cR._1 | |
464 | 468 | let cp = cR._2 | |
465 | 469 | let bW = cR._3 | |
466 | 470 | let bT = cR._4 | |
467 | 471 | let cj = cR._5 | |
468 | 472 | let cq = cR._6 | |
469 | 473 | let ck = cR._7 | |
470 | 474 | let cS = cR._8 | |
471 | 475 | throw(((((((((("{" + "allowedAmountToRedeem: ") + toString(cp)) + ", assetCode: ") + S) + ", poolMaker: ") + ad) + ", trace: ") + cS) + "}")) | |
472 | 476 | } | |
473 | 477 | ||
474 | 478 | ||
475 | 479 | ||
476 | 480 | @Callable(cr) | |
477 | 481 | func withdraw (S,ad) = { | |
478 | 482 | let bR = aH(S) | |
479 | 483 | let Q = addressFromStringValue(bR) | |
480 | 484 | let cU = af(bR, ad) | |
481 | 485 | let cV = valueOrElse(getInteger(this, cU), 0) | |
482 | 486 | let cW = ag(bR, ad) | |
483 | 487 | let cq = valueOrElse(getInteger(this, cW), 0) | |
484 | 488 | let bV = aj(bR) | |
485 | 489 | let bW = valueOrElse(getInteger(this, bV), 0) | |
486 | 490 | let cT = ah(bR, ad, cq) | |
487 | 491 | if ((g(C) == false)) | |
488 | 492 | then throw("Contract is not yet ready.") | |
489 | 493 | else if (!(isDefined(getInteger(Q, cT)))) | |
490 | 494 | then throw("Need to transfer liquidity from asset account first") | |
491 | 495 | else if ((0 >= cV)) | |
492 | 496 | then throw((("Cannot find pool maker by address " + ad) + " or no locked amount.")) | |
493 | 497 | else if ((cq > height)) | |
494 | 498 | then throw((("Please wait " + toString(cq)) + " before withdraw.")) | |
495 | 499 | else [IntegerEntry(cU, 0), IntegerEntry(bV, (bW - cV)), IntegerEntry(cW, 0), ScriptTransfer(addressFromStringValue(ad), cV, ao)] | |
496 | 500 | } | |
497 | 501 | ||
498 | 502 |
github/deemru/w8io/169f3d6 63.30 ms ◑