tx · 6zyWSXV9ZtsyJfHv9BFaQ5tmp2Vqs6qjJiL7Hqdnk4e8 3Mr4AtgcKHK4v4VnNDdFcyJGR1kSFkKU7RU: -0.01000000 Waves 2022.03.09 17:16 [1956520] smart account 3Mr4AtgcKHK4v4VnNDdFcyJGR1kSFkKU7RU > SELF 0.00000000 Waves
{ "type": 13, "id": "6zyWSXV9ZtsyJfHv9BFaQ5tmp2Vqs6qjJiL7Hqdnk4e8", "fee": 1000000, "feeAssetId": null, "timestamp": 1646835404133, "version": 2, "chainId": 84, "sender": "3Mr4AtgcKHK4v4VnNDdFcyJGR1kSFkKU7RU", "senderPublicKey": "CBrP6pyJ9ht8Dei2HsD8DvNtxNYEw47NcFxatXjR6k8i", "proofs": [ "2maQQ3BaSZMaYoCCbxUs4ksu7FYgYxcmBmSh9rfRyBKegwGPnpcqN31snt9fxMzbUYofu2mLGheqVWx8YthFGtgL" ], "script": "base64:AAIFAAAAAAAAACEIAhIAEgASBAoCAQESABIECgIBARIAEgASABIFCgMEAQgAAABRAAAAAAd2ZXJzaW9uAgAAAAUyLjAuMAAAAAAIa1ZlcnNpb24CAAAAB3ZlcnNpb24AAAAAB2tBY3RpdmUCAAAABmFjdGl2ZQAAAAAJa0Fzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAlrQXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAACWtCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAlrQmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAANa1NoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAEWtTaGFyZUFzc2V0U3VwcGx5AgAAABJzaGFyZV9hc3NldF9zdXBwbHkAAAAABGtGZWUCAAAACmNvbW1pc3Npb24AAAAAEmtGZWVTY2FsZURlbGltaXRlcgIAAAAaY29tbWlzc2lvbl9zY2FsZV9kZWxpbWl0ZXIAAAAACmtJbnZhcmlhbnQCAAAACWludmFya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ib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTMGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAKYWRtU3Rha2luZwMDBQAAABNjYWxsVGFrZUludG9BY2NvdW50BQAAAA1zaWduZWRCeUFkbWluBwYFAAAAE211bHRpU2lnbmVkQnlBZG1pbnMFAAAAE211bHRpU2lnbmVkQnlBZG1pbnM+1e8B", "height": 1956520, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 94YcD23cVGNXNU8YRow3MjaLTdKRVFf1cQJSwZrfEi4u Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let version = "2.0.0" | |
5 | + | ||
6 | + | let kVersion = "version" | |
7 | + | ||
8 | + | let kActive = "active" | |
9 | + | ||
10 | + | let kAssetIdA = "A_asset_id" | |
11 | + | ||
12 | + | let kAssetIdB = "B_asset_id" | |
13 | + | ||
14 | + | let kBalanceA = "A_asset_balance" | |
15 | + | ||
16 | + | let kBalanceB = "B_asset_balance" | |
17 | + | ||
18 | + | let kShareAssetId = "share_asset_id" | |
19 | + | ||
20 | + | let kShareAssetSupply = "share_asset_supply" | |
21 | + | ||
22 | + | let kFee = "commission" | |
23 | + | ||
24 | + | let kFeeScaleDelimiter = "commission_scale_delimiter" | |
25 | + | ||
26 | + | let kInvariant = "invariant" | |
27 | + | ||
28 | + | let kCause = "shutdown_cause" | |
29 | + | ||
30 | + | let keyUSDNNSBTAddress = "staking_usdnnsbt_address" | |
31 | + | ||
32 | + | let keyEURNAddress = "staking_eurn_address" | |
33 | + | ||
34 | + | let keyAdminPubKey1 = "admin_pub_1" | |
35 | + | ||
36 | + | let keyAdminPubKey2 = "admin_pub_2" | |
37 | + | ||
38 | + | let keyAdminPubKey3 = "admin_pub_3" | |
39 | + | ||
40 | + | let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
41 | + | ||
42 | + | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
43 | + | ||
44 | + | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
45 | + | case string: String => | |
46 | + | fromBase58String(string) | |
47 | + | case nothing => | |
48 | + | throw("Admin public key is empty") | |
49 | + | } | |
50 | + | ||
51 | + | ||
52 | + | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
53 | + | ||
54 | + | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
55 | + | ||
56 | + | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
57 | + | ||
58 | + | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
59 | + | ||
60 | + | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | + | ||
62 | + | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
63 | + | ||
64 | + | let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
65 | + | ||
66 | + | let stakingAssets = [toBase58String(USDN), toBase58String(EURN)] | |
67 | + | ||
68 | + | let stakingUSDNNSBTAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyUSDNNSBTAddress), "no usdn staking address"))) | |
69 | + | ||
70 | + | let stakingEURNAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyEURNAddress), "no usdn staking address"))) | |
71 | + | ||
72 | + | let active = getBooleanValue(this, kActive) | |
73 | + | ||
74 | + | let strAssetIdA = getStringValue(this, kAssetIdA) | |
75 | + | ||
76 | + | let strAssetIdB = getStringValue(this, kAssetIdB) | |
77 | + | ||
78 | + | let assetIdA = if ((strAssetIdA == "WAVES")) | |
79 | + | then unit | |
80 | + | else fromBase58String(strAssetIdA) | |
81 | + | ||
82 | + | let assetIdB = if ((strAssetIdB == "WAVES")) | |
83 | + | then unit | |
84 | + | else fromBase58String(strAssetIdB) | |
85 | + | ||
86 | + | let assetNameA = match assetIdA { | |
87 | + | case id: ByteVector => | |
88 | + | value(assetInfo(id)).name | |
89 | + | case waves: Unit => | |
90 | + | "WAVES" | |
91 | + | case _ => | |
92 | + | throw("Match error") | |
93 | + | } | |
94 | + | ||
95 | + | let assetNameB = match assetIdB { | |
96 | + | case id: ByteVector => | |
97 | + | value(assetInfo(id)).name | |
98 | + | case waves: Unit => | |
99 | + | "WAVES" | |
100 | + | case _ => | |
101 | + | throw("Match error") | |
102 | + | } | |
103 | + | ||
104 | + | let balanceA = getIntegerValue(this, kBalanceA) | |
105 | + | ||
106 | + | let balanceB = getIntegerValue(this, kBalanceB) | |
107 | + | ||
108 | + | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
109 | + | ||
110 | + | let shareAssetSupply = getIntegerValue(this, kShareAssetSupply) | |
111 | + | ||
112 | + | let invariant = getIntegerValue(this, kInvariant) | |
113 | + | ||
114 | + | let fee = 500 | |
115 | + | ||
116 | + | let feeGovernance = 200 | |
117 | + | ||
118 | + | let feeScale6 = 1000000 | |
119 | + | ||
120 | + | let scale3 = 1000 | |
121 | + | ||
122 | + | let scale8 = 100000000 | |
123 | + | ||
124 | + | let scale16 = 10000000000000000 | |
125 | + | ||
126 | + | let slippageScale3 = 1000 | |
127 | + | ||
128 | + | let digits8 = 8 | |
129 | + | ||
130 | + | let dAppThreshold = 50 | |
131 | + | ||
132 | + | let dAppThresholdScale2 = 100 | |
133 | + | ||
134 | + | let exchangeRatioLimitMin = 90000000 | |
135 | + | ||
136 | + | let exchangeRatioLimitMax = 110000000 | |
137 | + | ||
138 | + | let alpha = 50 | |
139 | + | ||
140 | + | let alphaDigits = 2 | |
141 | + | ||
142 | + | let beta = 4600000000000000 | |
143 | + | ||
144 | + | func accountBalance (assetId) = match assetId { | |
145 | + | case id: ByteVector => | |
146 | + | assetBalance(this, id) | |
147 | + | case waves: Unit => | |
148 | + | wavesBalance(this).available | |
149 | + | case _ => | |
150 | + | throw("Match error") | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func stakedAmount (assetId) = { | |
155 | + | let stakedAmountCalculated = match assetId { | |
156 | + | case aId: ByteVector => | |
157 | + | if ((aId == USDN)) | |
158 | + | then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
159 | + | else if ((aId == EURN)) | |
160 | + | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this))) | |
161 | + | else 0 | |
162 | + | case _: Unit => | |
163 | + | 0 | |
164 | + | case _ => | |
165 | + | throw("Match error") | |
166 | + | } | |
167 | + | match stakedAmountCalculated { | |
168 | + | case i: Int => | |
169 | + | i | |
170 | + | case _ => | |
171 | + | 0 | |
172 | + | } | |
173 | + | } | |
174 | + | ||
175 | + | ||
176 | + | let stakedAmountA = stakedAmount(assetIdA) | |
177 | + | ||
178 | + | let stakedAmountB = stakedAmount(assetIdB) | |
179 | + | ||
180 | + | let availableBalanceA = (balanceA - stakedAmountA) | |
181 | + | ||
182 | + | let availableBalanceB = (balanceB - stakedAmountB) | |
183 | + | ||
184 | + | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
185 | + | ||
186 | + | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
187 | + | ||
188 | + | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
189 | + | then (accountBalanceWithStakedB >= balanceB) | |
190 | + | else false | |
191 | + | ||
192 | + | func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2) | |
193 | + | ||
194 | + | ||
195 | + | func invariantCalc (x,y) = { | |
196 | + | let sk = skewness(x, y) | |
197 | + | (fraction((x + y), scale16, pow(sk, digits8, alpha, alphaDigits, digits8, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(x), toBigInt(y), toBigInt(scale8)), 0, toBigInt(5), 1, (digits8 / 2), DOWN)), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8))) | |
198 | + | } | |
199 | + | ||
200 | + | ||
201 | + | func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = { | |
202 | + | let worstAllowedNewInvariantRatio = (scale8 - ((scale8 * 1) / 10000000)) | |
203 | + | let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
204 | + | let x = (balanceA + tokenReceiveAmount) | |
205 | + | let y = (balanceB + tokenReceiveAmount) | |
206 | + | func getStepAmount (acc,step) = if ((acc._1 == -1)) | |
207 | + | then { | |
208 | + | let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3)) | |
209 | + | let stepInvariant = if ((tokenId == assetIdA)) | |
210 | + | then invariantCalc(x, (balanceB - amountToSend)) | |
211 | + | else invariantCalc((balanceA - amountToSend), y) | |
212 | + | if ((stepInvariant > invariant)) | |
213 | + | then $Tuple2(amountToSend, stepInvariant) | |
214 | + | else $Tuple2(-1, 0) | |
215 | + | } | |
216 | + | else acc | |
217 | + | ||
218 | + | let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000) | |
219 | + | if ((0 > amountToSendMin._1)) | |
220 | + | then throw("Price is worse than minReceived") | |
221 | + | else { | |
222 | + | let invEstimated = if ((tokenId == assetIdA)) | |
223 | + | then invariantCalc(x, (balanceB - amountToSendEstimated)) | |
224 | + | else if ((tokenId == assetIdB)) | |
225 | + | then invariantCalc((balanceA - amountToSendEstimated), y) | |
226 | + | else throw("Wrong asset in payment") | |
227 | + | let amountToSendBest = if ((invariant > invEstimated)) | |
228 | + | then if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, invEstimated))) | |
229 | + | then throw("Bad estimation provided 1") | |
230 | + | else { | |
231 | + | let a = { | |
232 | + | let $l = [25, 200, 500] | |
233 | + | let $s = size($l) | |
234 | + | let $acc0 = $Tuple2(-1, 0) | |
235 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
236 | + | then $a | |
237 | + | else getStepAmount($a, $l[$i]) | |
238 | + | ||
239 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
240 | + | then $a | |
241 | + | else throw("List size exceeds 3") | |
242 | + | ||
243 | + | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
244 | + | } | |
245 | + | if ((0 > a._1)) | |
246 | + | then amountToSendMin | |
247 | + | else a | |
248 | + | } | |
249 | + | else { | |
250 | + | let a = { | |
251 | + | let $l = [-500, -200, -25] | |
252 | + | let $s = size($l) | |
253 | + | let $acc0 = $Tuple2(-1, 0) | |
254 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
255 | + | then $a | |
256 | + | else getStepAmount($a, $l[$i]) | |
257 | + | ||
258 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
259 | + | then $a | |
260 | + | else throw("List size exceeds 3") | |
261 | + | ||
262 | + | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
263 | + | } | |
264 | + | let tupleSendBetter = if ((0 > a._1)) | |
265 | + | then $Tuple2(amountToSendEstimated, invEstimated) | |
266 | + | else a | |
267 | + | if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, tupleSendBetter._2))) | |
268 | + | then throw("Bad estimation provided 2") | |
269 | + | else tupleSendBetter | |
270 | + | } | |
271 | + | amountToSendBest | |
272 | + | } | |
273 | + | } | |
274 | + | ||
275 | + | ||
276 | + | func getAssetInfo (assetId) = match assetId { | |
277 | + | case id: ByteVector => | |
278 | + | let stringId = toBase58String(id) | |
279 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
280 | + | $Tuple3(stringId, info.name, info.decimals) | |
281 | + | case waves: Unit => | |
282 | + | $Tuple3("WAVES", "WAVES", 8) | |
283 | + | case _ => | |
284 | + | throw("Match error") | |
285 | + | } | |
286 | + | ||
287 | + | ||
288 | + | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
289 | + | ||
290 | + | ||
291 | + | func throwIsActive () = throw("DApp is already active") | |
292 | + | ||
293 | + | ||
294 | + | func isActive () = if (active) | |
295 | + | then unit | |
296 | + | else throw("DApp is inactive at this moment") | |
297 | + | ||
298 | + | ||
299 | + | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
300 | + | then unit | |
301 | + | else throw("Only admin can call this function") | |
302 | + | ||
303 | + | ||
304 | + | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
305 | + | ||
306 | + | ||
307 | + | func throwOnePayment () = throw("One attached payment expected") | |
308 | + | ||
309 | + | ||
310 | + | func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB)) | |
311 | + | ||
312 | + | ||
313 | + | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
314 | + | ||
315 | + | ||
316 | + | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
317 | + | then if ((assetId == USDN)) | |
318 | + | then $Tuple2("lockNeutrino", stakingUSDNNSBTAddress) | |
319 | + | else $Tuple2("startStaking", stakingEURNAddress) | |
320 | + | else if ((assetId == USDN)) | |
321 | + | then $Tuple2("unlockNeutrino", stakingUSDNNSBTAddress) | |
322 | + | else $Tuple2("stopStaking", stakingEURNAddress) | |
323 | + | ||
324 | + | ||
325 | + | func calcStakingParams (stake,amount,assetId) = if (stake) | |
326 | + | then { | |
327 | + | let $t096399705 = calcStakingFuncAndAddres(stake, assetId) | |
328 | + | let call = $t096399705._1 | |
329 | + | let stakingAddr = $t096399705._2 | |
330 | + | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
331 | + | } | |
332 | + | else { | |
333 | + | let $t097919857 = calcStakingFuncAndAddres(stake, assetId) | |
334 | + | let call = $t097919857._1 | |
335 | + | let stakingAddr = $t097919857._2 | |
336 | + | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
337 | + | } | |
338 | + | ||
339 | + | ||
340 | + | @Callable(i) | |
341 | + | func init () = { | |
342 | + | let $t0996210039 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
343 | + | let pmtAmountA = $t0996210039._1 | |
344 | + | let pmtAssetIdA = $t0996210039._2 | |
345 | + | let $t01004410121 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
346 | + | let pmtAmountB = $t01004410121._1 | |
347 | + | let pmtAssetIdB = $t01004410121._2 | |
348 | + | let $t01012610203 = getAssetInfo(pmtAssetIdA) | |
349 | + | let pmtStrAssetIdA = $t01012610203._1 | |
350 | + | let pmtAssetNameA = $t01012610203._2 | |
351 | + | let pmtDecimalsA = $t01012610203._3 | |
352 | + | let $t01020810285 = getAssetInfo(pmtAssetIdB) | |
353 | + | let pmtStrAssetIdB = $t01020810285._1 | |
354 | + | let pmtAssetNameB = $t01020810285._2 | |
355 | + | let pmtDecimalsB = $t01020810285._3 | |
356 | + | if (isDefined(getBoolean(this, kActive))) | |
357 | + | then throwIsActive() | |
358 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
359 | + | then throw("Assets must be different") | |
360 | + | else { | |
361 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
362 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
363 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
364 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
365 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
366 | + | let shareIssueId = calculateAssetId(shareIssue) | |
367 | + | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
368 | + | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
369 | + | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
370 | + | else 0 | |
371 | + | if ((stake1 == stake1)) | |
372 | + | then { | |
373 | + | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
374 | + | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
375 | + | else 0 | |
376 | + | if ((stake2 == stake2)) | |
377 | + | then [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, fee), IntegerEntry(kFeeScaleDelimiter, feeScale6), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
378 | + | else throw("Strict value is not equal to itself.") | |
379 | + | } | |
380 | + | else throw("Strict value is not equal to itself.") | |
381 | + | } | |
382 | + | } | |
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | @Callable(i) | |
387 | + | func replenishWithTwoTokens () = valueOrElse(isActive(), { | |
388 | + | let pmtAssetIdA = i.payments[0].assetId | |
389 | + | let pmtAssetIdB = i.payments[1].assetId | |
390 | + | let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA) | |
391 | + | let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB) | |
392 | + | let $t01286612943 = getAssetInfo(pmtAssetIdA) | |
393 | + | let pmtStrAssetIdA = $t01286612943._1 | |
394 | + | let pmtAssetNameA = $t01286612943._2 | |
395 | + | let pmtDecimalsA = $t01286612943._3 | |
396 | + | let $t01294813065 = getAssetInfo(pmtAssetIdB) | |
397 | + | let pmtStrAssetIdB = $t01294813065._1 | |
398 | + | let pmtAssetNameB = $t01294813065._2 | |
399 | + | let pmtDecimalsB = $t01294813065._3 | |
400 | + | let $t01307013574 = if ((ratioShareTokensInB > ratioShareTokensInA)) | |
401 | + | then { | |
402 | + | let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING) | |
403 | + | $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA) | |
404 | + | } | |
405 | + | else { | |
406 | + | let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING) | |
407 | + | $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB) | |
408 | + | } | |
409 | + | let pmtAmountA = $t01307013574._1 | |
410 | + | let pmtAmountB = $t01307013574._2 | |
411 | + | let change = $t01307013574._3 | |
412 | + | let changeAssetId = $t01307013574._4 | |
413 | + | let shareTokenRatio = $t01307013574._5 | |
414 | + | let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8) | |
415 | + | if ((size(i.payments) != 2)) | |
416 | + | then throw("Two attached assets expected") | |
417 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
418 | + | then true | |
419 | + | else (pmtAssetIdB != assetIdB)) | |
420 | + | then throwAssets() | |
421 | + | else if ((shareTokenToPayAmount == 0)) | |
422 | + | then throw("Too small amount to replenish") | |
423 | + | else if ((0 > change)) | |
424 | + | then throw("Change < 0") | |
425 | + | else if (!(hasEnoughBalance)) | |
426 | + | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
427 | + | else { | |
428 | + | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
429 | + | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
430 | + | else 0 | |
431 | + | if ((stake1 == stake1)) | |
432 | + | then { | |
433 | + | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
434 | + | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
435 | + | else 0 | |
436 | + | if ((stake2 == stake2)) | |
437 | + | then [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), ScriptTransfer(i.caller, change, changeAssetId)] | |
438 | + | else throw("Strict value is not equal to itself.") | |
439 | + | } | |
440 | + | else throw("Strict value is not equal to itself.") | |
441 | + | } | |
442 | + | }) | |
443 | + | ||
444 | + | ||
445 | + | ||
446 | + | @Callable(i) | |
447 | + | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), { | |
448 | + | let $t01522315298 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
449 | + | let pmtAmount = $t01522315298._1 | |
450 | + | let pmtAssetId = $t01522315298._2 | |
451 | + | let $t01530315376 = getAssetInfo(pmtAssetId) | |
452 | + | let pmtStrAssetId = $t01530315376._1 | |
453 | + | let pmtAssetName = $t01530315376._2 | |
454 | + | let pmtDecimals = $t01530315376._3 | |
455 | + | let pmtMinThreshold = 5000000 | |
456 | + | let thresholdValueForMinTolerance = 50000000 | |
457 | + | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
458 | + | then 100000 | |
459 | + | else 1 | |
460 | + | let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000)) | |
461 | + | let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000)) | |
462 | + | let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000)) | |
463 | + | if ((pmtMinThreshold > pmtAmount)) | |
464 | + | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
465 | + | else if ((size(i.payments) != 1)) | |
466 | + | then throwOnePayment() | |
467 | + | else if (!(hasEnoughBalance)) | |
468 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
469 | + | else if (if ((pmtAssetId != assetIdA)) | |
470 | + | then (pmtAssetId != assetIdB) | |
471 | + | else false) | |
472 | + | then throwAssets() | |
473 | + | else { | |
474 | + | let $t01631417079 = if ((pmtAssetId == assetIdA)) | |
475 | + | then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB) | |
476 | + | else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount)) | |
477 | + | let virtualReplenishA = $t01631417079._1 | |
478 | + | let virtualReplenishB = $t01631417079._2 | |
479 | + | let balanceAfterSwapA = $t01631417079._3 | |
480 | + | let balanceAfterSwapB = $t01631417079._4 | |
481 | + | let invariantCalculated = $t01631417079._5 | |
482 | + | let newBalanceA = $t01631417079._6 | |
483 | + | let newBalanceB = $t01631417079._7 | |
484 | + | let newBalanceEntry = if ((pmtAssetId == assetIdA)) | |
485 | + | then IntegerEntry(kBalanceA, newBalanceA) | |
486 | + | else IntegerEntry(kBalanceB, newBalanceB) | |
487 | + | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
488 | + | let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew) | |
489 | + | let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB)) | |
490 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
491 | + | if (if ((slippageValueMinForSwap >= invariantEstimatedRatio)) | |
492 | + | then true | |
493 | + | else (invariant > invariantNew)) | |
494 | + | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
495 | + | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
496 | + | then true | |
497 | + | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
498 | + | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
499 | + | else if (if ((dAppThresholdAmount > newBalanceA)) | |
500 | + | then true | |
501 | + | else (dAppThresholdAmount > newBalanceB)) | |
502 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
503 | + | else { | |
504 | + | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
505 | + | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
506 | + | else 0 | |
507 | + | if ((stake1 == stake1)) | |
508 | + | then { | |
509 | + | let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA) | |
510 | + | let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB) | |
511 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
512 | + | [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)] | |
513 | + | } | |
514 | + | else throw("Strict value is not equal to itself.") | |
515 | + | } | |
516 | + | } | |
517 | + | }) | |
518 | + | ||
519 | + | ||
520 | + | ||
521 | + | @Callable(i) | |
522 | + | func withdraw () = valueOrElse(isActive(), { | |
523 | + | let $t01932919472 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
524 | + | let pmtAmount = $t01932919472._1 | |
525 | + | let pmtAssetId = $t01932919472._2 | |
526 | + | let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply) | |
527 | + | let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply) | |
528 | + | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
529 | + | if ((size(i.payments) != 1)) | |
530 | + | then throwOnePayment() | |
531 | + | else if ((pmtAssetId != shareAssetId)) | |
532 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
533 | + | else if (!(hasEnoughBalance)) | |
534 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
535 | + | else { | |
536 | + | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
537 | + | then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
538 | + | else 0 | |
539 | + | if ((stake1 == stake1)) | |
540 | + | then { | |
541 | + | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
542 | + | then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
543 | + | else 0 | |
544 | + | if ((stake2 == stake2)) | |
545 | + | then [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - pmtAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
546 | + | else throw("Strict value is not equal to itself.") | |
547 | + | } | |
548 | + | else throw("Strict value is not equal to itself.") | |
549 | + | } | |
550 | + | }) | |
551 | + | ||
552 | + | ||
553 | + | ||
554 | + | @Callable(i) | |
555 | + | func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), { | |
556 | + | let $t02093521010 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
557 | + | let pmtAmount = $t02093521010._1 | |
558 | + | let pmtAssetId = $t02093521010._2 | |
559 | + | if ((0 >= estimatedAmountToReceive)) | |
560 | + | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
561 | + | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
562 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
563 | + | else if ((size(i.payments) != 1)) | |
564 | + | then throwOnePayment() | |
565 | + | else if (!(hasEnoughBalance)) | |
566 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
567 | + | else if (if ((pmtAssetId != assetIdA)) | |
568 | + | then (pmtAssetId != assetIdB) | |
569 | + | else false) | |
570 | + | then throwAssets() | |
571 | + | else if ((10000000 > pmtAmount)) | |
572 | + | then throw("Only swap of 10.000000 or more tokens is allowed") | |
573 | + | else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount))) | |
574 | + | then true | |
575 | + | else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax)) | |
576 | + | then throw("Incorrect args and pmt ratio") | |
577 | + | else { | |
578 | + | let sendAssetId = if ((pmtAssetId == assetIdA)) | |
579 | + | then assetIdB | |
580 | + | else assetIdA | |
581 | + | let $t02210122220 = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId) | |
582 | + | let amount = $t02210122220._1 | |
583 | + | let amountInvarian = $t02210122220._2 | |
584 | + | let governanceReward = fraction(amount, feeGovernance, feeScale6) | |
585 | + | let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6) | |
586 | + | let $t02237622638 = if ((pmtAssetId == assetIdA)) | |
587 | + | then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward)) | |
588 | + | else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount)) | |
589 | + | let newBalanceA = $t02237622638._1 | |
590 | + | let newBalanceB = $t02237622638._2 | |
591 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2)) | |
592 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
593 | + | then true | |
594 | + | else (dAppThresholdAmount > newBalanceB)) | |
595 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
596 | + | else { | |
597 | + | let $t02293623009 = getAssetInfo(pmtAssetId) | |
598 | + | let pmtStrAssetId = $t02293623009._1 | |
599 | + | let pmtAssetName = $t02293623009._2 | |
600 | + | let pmtDecimals = $t02293623009._3 | |
601 | + | let $t02302223099 = getAssetInfo(sendAssetId) | |
602 | + | let sendStrAssetId = $t02302223099._1 | |
603 | + | let sendAssetName = $t02302223099._2 | |
604 | + | let sendDecimals = $t02302223099._3 | |
605 | + | let stake1 = if (containsElement(stakingAssets, pmtStrAssetId)) | |
606 | + | then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil) | |
607 | + | else 0 | |
608 | + | if ((stake1 == stake1)) | |
609 | + | then { | |
610 | + | let stake2 = if (containsElement(stakingAssets, sendStrAssetId)) | |
611 | + | then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil) | |
612 | + | else 0 | |
613 | + | if ((stake2 == stake2)) | |
614 | + | then [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, amountInvarian), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(walletAddress, governanceReward, sendAssetId)] | |
615 | + | else throw("Strict value is not equal to itself.") | |
616 | + | } | |
617 | + | else throw("Strict value is not equal to itself.") | |
618 | + | } | |
619 | + | } | |
620 | + | }) | |
621 | + | ||
622 | + | ||
623 | + | ||
624 | + | @Callable(i) | |
625 | + | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
626 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
627 | + | else suspend("Paused by admin")) | |
628 | + | ||
629 | + | ||
630 | + | ||
631 | + | @Callable(i) | |
632 | + | func activate () = valueOrElse(isAdminCall(i), if (active) | |
633 | + | then throwIsActive() | |
634 | + | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
635 | + | ||
636 | + | ||
637 | + | ||
638 | + | @Callable(i) | |
639 | + | func takeIntoAccountExtraFunds () = valueOrElse(isActive(), { | |
640 | + | let amountEnrollA = (accountBalanceWithStakedA - balanceA) | |
641 | + | let amountEnrollB = (accountBalanceWithStakedB - balanceB) | |
642 | + | let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB)) | |
643 | + | if ((i.caller != walletAddress)) | |
644 | + | then throw("Only the wallet can call this function") | |
645 | + | else if (if ((0 > amountEnrollA)) | |
646 | + | then true | |
647 | + | else (0 > amountEnrollB)) | |
648 | + | then suspend("Enroll amount negative") | |
649 | + | else if (if ((amountEnrollA == 0)) | |
650 | + | then (amountEnrollB == 0) | |
651 | + | else false) | |
652 | + | then throw("No money to take") | |
653 | + | else { | |
654 | + | let stake1 = if (if (containsElement(stakingAssets, strAssetIdA)) | |
655 | + | then (amountEnrollA > 0) | |
656 | + | else false) | |
657 | + | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
658 | + | else 0 | |
659 | + | if ((stake1 == stake1)) | |
660 | + | then { | |
661 | + | let stake2 = if (if (containsElement(stakingAssets, strAssetIdB)) | |
662 | + | then (amountEnrollB > 0) | |
663 | + | else false) | |
664 | + | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
665 | + | else 0 | |
666 | + | if ((stake2 == stake2)) | |
667 | + | then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
668 | + | else throw("Strict value is not equal to itself.") | |
669 | + | } | |
670 | + | else throw("Strict value is not equal to itself.") | |
671 | + | } | |
672 | + | }) | |
673 | + | ||
674 | + | ||
675 | + | ||
676 | + | @Callable(i) | |
677 | + | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
678 | + | then throw("Only contract itself can invoke this function") | |
679 | + | else { | |
680 | + | let $t02588625989 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
681 | + | let call = $t02588625989._1 | |
682 | + | let addr = $t02588625989._2 | |
683 | + | let params = $t02588625989._3 | |
684 | + | let payments = $t02588625989._4 | |
685 | + | let inv = invoke(addr, call, params, payments) | |
686 | + | if ((inv == inv)) | |
687 | + | then nil | |
688 | + | else throw("Strict value is not equal to itself.") | |
689 | + | } | |
690 | + | ||
691 | + | ||
692 | + | @Verifier(tx) | |
693 | + | func verify () = { | |
694 | + | let multiSignedByAdmins = { | |
695 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
696 | + | then 1 | |
697 | + | else 0 | |
698 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
699 | + | then 1 | |
700 | + | else 0 | |
701 | + | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
702 | + | then 1 | |
703 | + | else 0 | |
704 | + | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
705 | + | } | |
706 | + | match tx { | |
707 | + | case inv: InvokeScriptTransaction => | |
708 | + | let callTakeIntoAccount = if ((inv.dApp == this)) | |
709 | + | then (inv.function == "takeIntoAccountExtraFunds") | |
710 | + | else false | |
711 | + | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
712 | + | then true | |
713 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
714 | + | then true | |
715 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
716 | + | then true | |
717 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking) | |
718 | + | if (if (callTakeIntoAccount) | |
719 | + | then signedByAdmin | |
720 | + | else false) | |
721 | + | then true | |
722 | + | else multiSignedByAdmins | |
723 | + | case _ => | |
724 | + | multiSignedByAdmins | |
725 | + | } | |
726 | + | } | |
727 | + |
github/deemru/w8io/169f3d6 46.83 ms ◑