tx · DJGMwFD61XNfNMgbt6a6TkQvrU1qW4JwA5kkp7BFcQL6 3NAjHoq38gfe8ytgq9PRvjRuTmvJ3eZeVUz: -0.01400000 Waves 2021.03.21 16:07 [1447540] smart account 3NAjHoq38gfe8ytgq9PRvjRuTmvJ3eZeVUz > SELF 0.00000000 Waves
{ "type": 13, "id": "DJGMwFD61XNfNMgbt6a6TkQvrU1qW4JwA5kkp7BFcQL6", "fee": 1400000, "feeAssetId": null, "timestamp": 1616332081217, "version": 1, "sender": "3NAjHoq38gfe8ytgq9PRvjRuTmvJ3eZeVUz", "senderPublicKey": "dfNMTfdDV6jp9TzacEMKaaEXHWB1kXUU6SEg8t2vZR9", "proofs": [ "5LWourEQcSVTyXysKAi69FATc92SQhUgYDtoyJgBSzbHmUFYKrKMdKmE9e1bnFs3NMXGo2FNWFPRdbnZiuKXr69w" ], "script": "base64:AAIEAAAAAAAAACAIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASAwoBAQAAAEwAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAOa0ZlZUdvdmVybmFuY2UCAAAAFWNvbW1pc3Npb25fZ292ZXJuYW5j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2VCCQAAZAAAAAIFAAAACGJhbGFuY2VCBQAAAA1hbW91bnRFbnJvbGxCCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADGxhc3RfaW5jb21lXwUAAAALc3RyQXNzZXRJZEEFAAAADWFtb3VudEVucm9sbEEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAMbGFzdF9pbmNvbWVfBQAAAAtzdHJBc3NldElkQgUAAAANYW1vdW50RW5yb2xsQgUAAAADbmlsAAAAAHdmS2o=", "chainId": 84, "height": 1447540, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 3NTvgnx7bfCcHAKJDiNi9koN8qjyHcqNz5WdpTnJQP9A Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
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 kFeeGovernance = "commission_governance" | |
27 | + | ||
28 | + | let kInvariant = "invariant" | |
29 | + | ||
30 | + | let kCause = "shutdown_cause" | |
31 | + | ||
32 | + | let adm1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
33 | + | ||
34 | + | let adm2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
35 | + | ||
36 | + | let adm3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
37 | + | ||
38 | + | let admStartStop = base58'EtVkT6ed8GtbUiVVEqdmEqsp2J4qbb3rre2HFgxeVYdg' | |
39 | + | ||
40 | + | let admStaking = base58'Czn4yoAuUZCVCLJDRfskn8URfkwpknwBTZDbs1wFrY7h' | |
41 | + | ||
42 | + | let govAddr = Address(base58'3P6J84oH51DzY6xk2mT5TheXRbrCwBMxonp') | |
43 | + | ||
44 | + | let stakingAddress = Address(base58'3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ') | |
45 | + | ||
46 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
47 | + | ||
48 | + | let stakingFeeInUSDN = (9 * value(value(assetInfo(USDN)).minSponsoredFee)) | |
49 | + | ||
50 | + | let isActive = getBooleanValue(this, kActive) | |
51 | + | ||
52 | + | let strAssetIdA = getStringValue(this, kAssetIdA) | |
53 | + | ||
54 | + | let strAssetIdB = getStringValue(this, kAssetIdB) | |
55 | + | ||
56 | + | let assetIdA = if ((strAssetIdA == "WAVES")) | |
57 | + | then unit | |
58 | + | else fromBase58String(strAssetIdA) | |
59 | + | ||
60 | + | let assetIdB = if ((strAssetIdB == "WAVES")) | |
61 | + | then unit | |
62 | + | else fromBase58String(strAssetIdB) | |
63 | + | ||
64 | + | let assetNameA = match assetIdA { | |
65 | + | case id: ByteVector => | |
66 | + | value(assetInfo(id)).name | |
67 | + | case waves: Unit => | |
68 | + | "WAVES" | |
69 | + | case _ => | |
70 | + | throw("Match error") | |
71 | + | } | |
72 | + | ||
73 | + | let assetNameB = match assetIdB { | |
74 | + | case id: ByteVector => | |
75 | + | value(assetInfo(id)).name | |
76 | + | case waves: Unit => | |
77 | + | "WAVES" | |
78 | + | case _ => | |
79 | + | throw("Match error") | |
80 | + | } | |
81 | + | ||
82 | + | let balanceA = getIntegerValue(this, kBalanceA) | |
83 | + | ||
84 | + | let balanceB = getIntegerValue(this, kBalanceB) | |
85 | + | ||
86 | + | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
87 | + | ||
88 | + | let shareAssetSupply = getIntegerValue(this, kShareAssetSupply) | |
89 | + | ||
90 | + | let invariant = getIntegerValue(this, kInvariant) | |
91 | + | ||
92 | + | let fee = 500 | |
93 | + | ||
94 | + | let feeGovernance = 200 | |
95 | + | ||
96 | + | let feeScaleDelimiter = 1000000 | |
97 | + | ||
98 | + | let scaleValue3 = 1000 | |
99 | + | ||
100 | + | let scaleValue8 = 100000000 | |
101 | + | ||
102 | + | let scaleValue12 = 1000000000000 | |
103 | + | ||
104 | + | let slippageToleranceDelimiter = 1000 | |
105 | + | ||
106 | + | let scaleValue8Digits = 8 | |
107 | + | ||
108 | + | let scaleValue12Digits = 12 | |
109 | + | ||
110 | + | let dAppThreshold = 50 | |
111 | + | ||
112 | + | let dAppThresholdDelimiter = 100 | |
113 | + | ||
114 | + | let ratioThresholdMax = 100000000 | |
115 | + | ||
116 | + | let ratioThresholdMin = 99999000 | |
117 | + | ||
118 | + | let exchangeRatioLimitMin = 90000000 | |
119 | + | ||
120 | + | let exchangeRatioLimitMax = 110000000 | |
121 | + | ||
122 | + | let alpha = 50 | |
123 | + | ||
124 | + | let alphaDigits = 2 | |
125 | + | ||
126 | + | let beta = 46000000 | |
127 | + | ||
128 | + | let betaDigits = 8 | |
129 | + | ||
130 | + | func accountBalance (assetId) = match assetId { | |
131 | + | case id: ByteVector => | |
132 | + | assetBalance(this, id) | |
133 | + | case waves: Unit => | |
134 | + | wavesBalance(this).available | |
135 | + | case _ => | |
136 | + | throw("Match error") | |
137 | + | } | |
138 | + | ||
139 | + | ||
140 | + | let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) { | |
141 | + | case staked: Int => | |
142 | + | staked | |
143 | + | case nothing: Unit => | |
144 | + | 0 | |
145 | + | case _ => | |
146 | + | throw("Match error") | |
147 | + | } | |
148 | + | ||
149 | + | let availableBalanceA = (balanceA - (if ((assetIdA == USDN)) | |
150 | + | then stakedAmountUSDN | |
151 | + | else 0)) | |
152 | + | ||
153 | + | let availableBalanceB = (balanceB - (if ((assetIdB == USDN)) | |
154 | + | then stakedAmountUSDN | |
155 | + | else 0)) | |
156 | + | ||
157 | + | let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN)) | |
158 | + | then stakedAmountUSDN | |
159 | + | else 0)) | |
160 | + | ||
161 | + | let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN)) | |
162 | + | then stakedAmountUSDN | |
163 | + | else 0)) | |
164 | + | ||
165 | + | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
166 | + | then (accountBalanceWithStakedB >= balanceB) | |
167 | + | else false | |
168 | + | ||
169 | + | func skewness (x,y) = (((fraction(scaleValue12, x, y) + fraction(scaleValue12, y, x)) / 2) / 10000) | |
170 | + | ||
171 | + | ||
172 | + | func invariantCalc (x,y) = { | |
173 | + | let sk = skewness(x, y) | |
174 | + | (fraction((x + y), scaleValue8, pow(sk, scaleValue8Digits, alpha, alphaDigits, scaleValue8Digits, UP)) + (2 * fraction(pow(fraction(x, y, scaleValue8), 0, 5, 1, (scaleValue8Digits / 2), DOWN), pow((sk - beta), scaleValue8Digits, alpha, alphaDigits, scaleValue8Digits, DOWN), scaleValue8))) | |
175 | + | } | |
176 | + | ||
177 | + | ||
178 | + | func calculateHowManySendA (amountToSendEstimated,minTokenReceiveAmount,amountA,amountB,tokenReceiveAmount) = { | |
179 | + | let slippageValue = (scaleValue8 - ((scaleValue8 * 1) / 10000000)) | |
180 | + | let deltaMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
181 | + | let amountToSendStep1 = (amountToSendEstimated - ((1 * deltaMaxAndMinSendValue) / 5)) | |
182 | + | let amountToSendStep2 = (amountToSendEstimated - ((2 * deltaMaxAndMinSendValue) / 5)) | |
183 | + | let amountToSendStep3 = (amountToSendEstimated - ((3 * deltaMaxAndMinSendValue) / 5)) | |
184 | + | let amountToSendStep4 = (amountToSendEstimated - ((4 * deltaMaxAndMinSendValue) / 5)) | |
185 | + | let amountToSendStep5 = (amountToSendEstimated - ((5 * deltaMaxAndMinSendValue) / 5)) | |
186 | + | let y = (amountB + tokenReceiveAmount) | |
187 | + | let invariantNew = invariantCalc((amountA - amountToSendEstimated), y) | |
188 | + | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
189 | + | if ((0 >= (invariantCalc((amountA - amountToSendStep5), y) - invariant))) | |
190 | + | then throw("err1") | |
191 | + | else if (if ((invariantEstimatedRatio > slippageValue)) | |
192 | + | then ((invariantNew - invariant) > 0) | |
193 | + | else false) | |
194 | + | then amountToSendEstimated | |
195 | + | else if (((invariantCalc((amountA - amountToSendStep1), y) - invariant) > 0)) | |
196 | + | then ((amountToSendStep1 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
197 | + | else if (((invariantCalc((amountA - amountToSendStep2), y) - invariant) > 0)) | |
198 | + | then ((amountToSendStep2 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
199 | + | else if (((invariantCalc((amountA - amountToSendStep3), y) - invariant) > 0)) | |
200 | + | then ((amountToSendStep3 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
201 | + | else if (((invariantCalc((amountA - amountToSendStep4), y) - invariant) > 0)) | |
202 | + | then ((amountToSendStep4 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
203 | + | else if (((invariantCalc((amountA - amountToSendStep5), y) - invariant) > 0)) | |
204 | + | then ((amountToSendStep5 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
205 | + | else throw("err2") | |
206 | + | } | |
207 | + | ||
208 | + | ||
209 | + | func calculateHowManySendB (amountToSendEstimated,minTokenReceiveAmount,amountA,amountB,tokenReceiveAmount) = { | |
210 | + | let slippageValue = (scaleValue8 - ((scaleValue8 * 1) / 10000000)) | |
211 | + | let deltaMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount) | |
212 | + | let amountToSendStep1 = (amountToSendEstimated - ((1 * deltaMaxAndMinSendValue) / 5)) | |
213 | + | let amountToSendStep2 = (amountToSendEstimated - ((2 * deltaMaxAndMinSendValue) / 5)) | |
214 | + | let amountToSendStep3 = (amountToSendEstimated - ((3 * deltaMaxAndMinSendValue) / 5)) | |
215 | + | let amountToSendStep4 = (amountToSendEstimated - ((4 * deltaMaxAndMinSendValue) / 5)) | |
216 | + | let amountToSendStep5 = (amountToSendEstimated - ((5 * deltaMaxAndMinSendValue) / 5)) | |
217 | + | let x = (amountA + tokenReceiveAmount) | |
218 | + | let invariantNew = invariantCalc(x, (amountB - amountToSendEstimated)) | |
219 | + | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
220 | + | if ((0 >= (invariantCalc(x, (amountB - amountToSendStep5)) - invariant))) | |
221 | + | then throw("err1") | |
222 | + | else if (if ((invariantEstimatedRatio > slippageValue)) | |
223 | + | then ((invariantNew - invariant) > 0) | |
224 | + | else false) | |
225 | + | then amountToSendEstimated | |
226 | + | else if (((invariantCalc(x, (amountB - amountToSendStep1)) - invariant) > 0)) | |
227 | + | then ((amountToSendStep1 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
228 | + | else if (((invariantCalc(x, (amountB - amountToSendStep2)) - invariant) > 0)) | |
229 | + | then ((amountToSendStep2 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
230 | + | else if (((invariantCalc(x, (amountB - amountToSendStep3)) - invariant) > 0)) | |
231 | + | then ((amountToSendStep3 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
232 | + | else if (((invariantCalc(x, (amountB - amountToSendStep4)) - invariant) > 0)) | |
233 | + | then ((amountToSendStep4 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
234 | + | else if (((invariantCalc(x, (amountB - amountToSendStep5)) - invariant) > 0)) | |
235 | + | then ((amountToSendStep5 * (feeScaleDelimiter - fee)) / feeScaleDelimiter) | |
236 | + | else throw("err2") | |
237 | + | } | |
238 | + | ||
239 | + | ||
240 | + | func getAssetInfo (assetId) = match assetId { | |
241 | + | case id: ByteVector => | |
242 | + | let stringId = toBase58String(id) | |
243 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
244 | + | $Tuple3(stringId, info.name, info.decimals) | |
245 | + | case waves: Unit => | |
246 | + | $Tuple3("WAVES", "WAVES", 8) | |
247 | + | case _ => | |
248 | + | throw("Match error") | |
249 | + | } | |
250 | + | ||
251 | + | ||
252 | + | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
253 | + | ||
254 | + | ||
255 | + | func deductStakingFee (amount,assetId) = if ((assetId == USDN)) | |
256 | + | then { | |
257 | + | let result = (amount - stakingFeeInUSDN) | |
258 | + | if ((0 >= result)) | |
259 | + | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N")) | |
260 | + | else result | |
261 | + | } | |
262 | + | else amount | |
263 | + | ||
264 | + | ||
265 | + | func throwIsActive () = throw("DApp is already active") | |
266 | + | ||
267 | + | ||
268 | + | func throwIsInactive () = throw("DApp is inactive at this moment") | |
269 | + | ||
270 | + | ||
271 | + | func throwOnlyAdmin () = throw("Only admin can call this function") | |
272 | + | ||
273 | + | ||
274 | + | func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
275 | + | ||
276 | + | ||
277 | + | 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)) | |
278 | + | ||
279 | + | ||
280 | + | func throwInsufficientAvailableBalance (amount,available,assetName) = throw((((((((("Insufficient DApp balance to pay " + toString(amount)) + " ") + assetName) + " due to staking. Available: ") + toString(available)) + " ") + assetName) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
281 | + | ||
282 | + | ||
283 | + | func throwInsufficientAvailableBalances (amountA,amountB) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(amountA)) + " ") + assetNameA) + " and ") + toString(amountB)) + " ") + assetNameB) + " due to staking. Available: ") + toString(availableBalanceA)) + " ") + assetNameA) + " and ") + toString(availableBalanceB)) + " ") + assetNameB) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
284 | + | ||
285 | + | ||
286 | + | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
287 | + | ||
288 | + | ||
289 | + | @Callable(i) | |
290 | + | func init () = { | |
291 | + | let $t01115911236 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
292 | + | let pmtAmountA = $t01115911236._1 | |
293 | + | let pmtAssetIdA = $t01115911236._2 | |
294 | + | let $t01124111318 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
295 | + | let pmtAmountB = $t01124111318._1 | |
296 | + | let pmtAssetIdB = $t01124111318._2 | |
297 | + | let $t01132311400 = getAssetInfo(pmtAssetIdA) | |
298 | + | let pmtStrAssetIdA = $t01132311400._1 | |
299 | + | let pmtAssetNameA = $t01132311400._2 | |
300 | + | let pmtDecimalsA = $t01132311400._3 | |
301 | + | let $t01140511482 = getAssetInfo(pmtAssetIdB) | |
302 | + | let pmtStrAssetIdB = $t01140511482._1 | |
303 | + | let pmtAssetNameB = $t01140511482._2 | |
304 | + | let pmtDecimalsB = $t01140511482._3 | |
305 | + | if (isDefined(getBoolean(this, kActive))) | |
306 | + | then throwIsActive() | |
307 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
308 | + | then throw("Assets must be different") | |
309 | + | else { | |
310 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
311 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
312 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
313 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN)) | |
314 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
315 | + | let shareIssueId = calculateAssetId(shareIssue) | |
316 | + | let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB) | |
317 | + | [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, feeScaleDelimiter), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
318 | + | } | |
319 | + | } | |
320 | + | ||
321 | + | ||
322 | + | ||
323 | + | @Callable(i) | |
324 | + | func replenishWithTwoTokens (slippageTolerance) = if ((slippageTolerance > 10)) | |
325 | + | then throw("slippage tolerance must be <= 1%") | |
326 | + | else { | |
327 | + | let pmtAssetIdA = i.payments[0].assetId | |
328 | + | let pmtAssetIdB = i.payments[1].assetId | |
329 | + | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA) | |
330 | + | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB) | |
331 | + | let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB)) | |
332 | + | let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA) | |
333 | + | let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB) | |
334 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
335 | + | let invariantCalculated = invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB)) | |
336 | + | if (!(isActive)) | |
337 | + | then throwIsInactive() | |
338 | + | else if (if ((0 > slippageTolerance)) | |
339 | + | then true | |
340 | + | else (slippageTolerance > slippageToleranceDelimiter)) | |
341 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
342 | + | else if ((size(i.payments) != 2)) | |
343 | + | then throw("Two attached assets expected") | |
344 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
345 | + | then true | |
346 | + | else (pmtAssetIdB != assetIdB)) | |
347 | + | then throwAssets() | |
348 | + | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
349 | + | then true | |
350 | + | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
351 | + | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
352 | + | else if ((shareTokenToPayAmount == 0)) | |
353 | + | then throw("Too small amount to replenish") | |
354 | + | else if (!(hasEnoughBalance)) | |
355 | + | then suspendSuspicious() | |
356 | + | else [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalculated), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
357 | + | } | |
358 | + | ||
359 | + | ||
360 | + | ||
361 | + | @Callable(i) | |
362 | + | func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = { | |
363 | + | let $t01602416099 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
364 | + | let pmtAmount = $t01602416099._1 | |
365 | + | let pmtAssetId = $t01602416099._2 | |
366 | + | let pmtMinThreshold = 5000000 | |
367 | + | let thresholdValueForMinTolerance = 50000000 | |
368 | + | let tolerance = if ((thresholdValueForMinTolerance > pmtAmount)) | |
369 | + | then 100000 | |
370 | + | else 1 | |
371 | + | let slippageValueMinForReplenish = (scaleValue8 - ((scaleValue8 * tolerance) / 10000000)) | |
372 | + | let slippageValueMaxForReplenish = (scaleValue8 + ((scaleValue8 * tolerance) / 10000000)) | |
373 | + | let slippageValueMinForSwap = (scaleValue8 - ((scaleValue8 * 1) / 10000000)) | |
374 | + | let slippageValueMaxForSwap = (scaleValue8 + ((scaleValue8 * 1) / 10000000)) | |
375 | + | if (!(isActive)) | |
376 | + | then throwIsInactive() | |
377 | + | else if ((pmtMinThreshold > pmtAmount)) | |
378 | + | then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens")) | |
379 | + | else if ((size(i.payments) != 1)) | |
380 | + | then throw("One attached payment expected") | |
381 | + | else if (!(hasEnoughBalance)) | |
382 | + | then suspendSuspicious() | |
383 | + | else if ((pmtAssetId == assetIdA)) | |
384 | + | then { | |
385 | + | let virtReplA = (pmtAmount - virtualSwapTokenPay) | |
386 | + | let virtReplB = virtualSwapTokenGet | |
387 | + | let balanceAfterSwapA = (balanceA + virtualSwapTokenPay) | |
388 | + | let balanceAfterSwapB = (balanceB - virtualSwapTokenGet) | |
389 | + | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
390 | + | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
391 | + | if (if ((invariantEstimatedRatio > slippageValueMinForSwap)) | |
392 | + | then ((invariantNew - invariant) >= 0) | |
393 | + | else false) | |
394 | + | then { | |
395 | + | let ratioVirtualBalanceToVirtualReplenish = (fraction(balanceAfterSwapA, (scaleValue8 * scaleValue8), balanceAfterSwapB) / fraction(virtReplA, scaleValue8, virtReplB)) | |
396 | + | if (true) | |
397 | + | then throw(toString(ratioVirtualBalanceToVirtualReplenish)) | |
398 | + | else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
399 | + | then true | |
400 | + | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
401 | + | then throw("Ratio after virtual swap incorrect") | |
402 | + | else { | |
403 | + | let ratioShareTokensInA = fraction(deductStakingFee(virtReplA, assetIdA), scaleValue8, balanceAfterSwapA) | |
404 | + | let ratioShareTokensInB = fraction(deductStakingFee(virtReplB, assetIdB), scaleValue8, balanceAfterSwapB) | |
405 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
406 | + | let invariantCalculated = invariantCalc((balanceA + pmtAmount), balanceB) | |
407 | + | let newBalanceA = (balanceA + pmtAmount) | |
408 | + | let newBalanceB = balanceB | |
409 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
410 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
411 | + | then true | |
412 | + | else (dAppThresholdAmount > newBalanceB)) | |
413 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
414 | + | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kInvariant, invariantCalculated)] | |
415 | + | } | |
416 | + | } | |
417 | + | else throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
418 | + | } | |
419 | + | else if ((pmtAssetId == assetIdB)) | |
420 | + | then { | |
421 | + | let virtReplB = (pmtAmount - virtualSwapTokenPay) | |
422 | + | let virtReplA = virtualSwapTokenGet | |
423 | + | let balanceAfterSwapA = (balanceA - virtualSwapTokenGet) | |
424 | + | let balanceAfterSwapB = (balanceB + virtualSwapTokenPay) | |
425 | + | let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB) | |
426 | + | let invariantEstimatedRatio = fraction(invariant, scaleValue8, invariantNew) | |
427 | + | if (if ((invariantEstimatedRatio > slippageValueMinForSwap)) | |
428 | + | then ((invariantNew - invariant) >= 0) | |
429 | + | else false) | |
430 | + | then { | |
431 | + | let ratioVirtualBalanceToVirtualReplenish = (fraction(balanceAfterSwapA, (scaleValue8 * scaleValue8), balanceAfterSwapB) / fraction(virtReplA, scaleValue8, virtReplB)) | |
432 | + | if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish)) | |
433 | + | then true | |
434 | + | else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish)) | |
435 | + | then throw("Ratio after virtual swap incorrect") | |
436 | + | else { | |
437 | + | let ratioShareTokensInA = fraction(deductStakingFee(virtReplA, assetIdA), scaleValue8, balanceAfterSwapA) | |
438 | + | let ratioShareTokensInB = fraction(deductStakingFee(virtReplB, assetIdB), scaleValue8, balanceAfterSwapB) | |
439 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
440 | + | let invariantCalculated = invariantCalc(balanceA, (balanceB + pmtAmount)) | |
441 | + | let newBalanceA = balanceA | |
442 | + | let newBalanceB = (balanceB + pmtAmount) | |
443 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
444 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
445 | + | then true | |
446 | + | else (dAppThresholdAmount > newBalanceB)) | |
447 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
448 | + | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalculated)] | |
449 | + | } | |
450 | + | } | |
451 | + | else throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
452 | + | } | |
453 | + | else throwAssets() | |
454 | + | } | |
455 | + | ||
456 | + | ||
457 | + | ||
458 | + | @Callable(i) | |
459 | + | func withdraw () = { | |
460 | + | let $t02205022193 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
461 | + | let pmtAmount = $t02205022193._1 | |
462 | + | let pmtAssetId = $t02205022193._2 | |
463 | + | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
464 | + | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
465 | + | let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB)) | |
466 | + | if (!(isActive)) | |
467 | + | then throwIsInactive() | |
468 | + | else if ((size(i.payments) != 1)) | |
469 | + | then throw("One attached payment expected") | |
470 | + | else if ((pmtAssetId != shareAssetId)) | |
471 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
472 | + | else if (!(hasEnoughBalance)) | |
473 | + | then suspendSuspicious() | |
474 | + | else if (if ((amountToPayA > availableBalanceA)) | |
475 | + | then true | |
476 | + | else (amountToPayB > availableBalanceB)) | |
477 | + | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
478 | + | else [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)] | |
479 | + | } | |
480 | + | ||
481 | + | ||
482 | + | ||
483 | + | @Callable(i) | |
484 | + | func exchange (estimatedAmountToReceive,minAmountToReceive) = { | |
485 | + | let $t02347623551 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
486 | + | let pmtAmount = $t02347623551._1 | |
487 | + | let pmtAssetId = $t02347623551._2 | |
488 | + | if (if ((exchangeRatioLimitMin > fraction(minAmountToReceive, scaleValue8, pmtAmount))) | |
489 | + | then true | |
490 | + | else (fraction(estimatedAmountToReceive, scaleValue8, pmtAmount) > exchangeRatioLimitMax)) | |
491 | + | then throw("Incorrect args and pmt ratio") | |
492 | + | else if (!(isActive)) | |
493 | + | then throwIsInactive() | |
494 | + | else if ((0 >= estimatedAmountToReceive)) | |
495 | + | then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive))) | |
496 | + | else if ((minAmountToReceive > estimatedAmountToReceive)) | |
497 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive))) | |
498 | + | else if ((size(i.payments) != 1)) | |
499 | + | then throw("One attached payment expected") | |
500 | + | else if (!(hasEnoughBalance)) | |
501 | + | then suspendSuspicious() | |
502 | + | else if ((10000000 > pmtAmount)) | |
503 | + | then throw("Only swap of 10.000000 or more tokens is allowed") | |
504 | + | else if ((pmtAssetId == assetIdA)) | |
505 | + | then { | |
506 | + | let assetIdSend = assetIdB | |
507 | + | let amountWithoutFee = calculateHowManySendB(estimatedAmountToReceive, minAmountToReceive, balanceA, balanceB, pmtAmount) | |
508 | + | let amountWithFee = fraction(amountWithoutFee, (feeScaleDelimiter - fee), feeScaleDelimiter) | |
509 | + | let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScaleDelimiter) | |
510 | + | let newBalanceA = (balanceA + pmtAmount) | |
511 | + | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
512 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
513 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
514 | + | then true | |
515 | + | else (dAppThresholdAmount > newBalanceB)) | |
516 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
517 | + | else if (if (if ((assetIdA == USDN)) | |
518 | + | then (stakedAmountUSDN >= newBalanceA) | |
519 | + | else false) | |
520 | + | then true | |
521 | + | else if ((assetIdB == USDN)) | |
522 | + | then (stakedAmountUSDN >= newBalanceB) | |
523 | + | else false) | |
524 | + | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
525 | + | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward))), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(govAddr, governanceReward, assetIdSend)] | |
526 | + | } | |
527 | + | else if ((pmtAssetId == assetIdB)) | |
528 | + | then { | |
529 | + | let assetIdSend = assetIdA | |
530 | + | let amountWithoutFee = calculateHowManySendA(estimatedAmountToReceive, minAmountToReceive, balanceA, balanceB, pmtAmount) | |
531 | + | let amountWithFee = fraction(amountWithoutFee, (feeScaleDelimiter - fee), feeScaleDelimiter) | |
532 | + | let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScaleDelimiter) | |
533 | + | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
534 | + | let newBalanceB = (balanceB + pmtAmount) | |
535 | + | let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdDelimiter)) | |
536 | + | if (if ((dAppThresholdAmount > newBalanceA)) | |
537 | + | then true | |
538 | + | else (dAppThresholdAmount > newBalanceB)) | |
539 | + | then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB) | |
540 | + | else if (if (if ((assetIdA == USDN)) | |
541 | + | then (stakedAmountUSDN >= newBalanceA) | |
542 | + | else false) | |
543 | + | then true | |
544 | + | else if ((assetIdB == USDN)) | |
545 | + | then (stakedAmountUSDN >= newBalanceB) | |
546 | + | else false) | |
547 | + | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
548 | + | else [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount))), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(govAddr, governanceReward, assetIdSend)] | |
549 | + | } | |
550 | + | else throwAssets() | |
551 | + | } | |
552 | + | ||
553 | + | ||
554 | + | ||
555 | + | @Callable(i) | |
556 | + | func shutdown () = if (!(isActive)) | |
557 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
558 | + | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
559 | + | then throwOnlyAdmin() | |
560 | + | else suspend("Paused by admin") | |
561 | + | ||
562 | + | ||
563 | + | ||
564 | + | @Callable(i) | |
565 | + | func activate () = if (isActive) | |
566 | + | then throwIsActive() | |
567 | + | else if (!(containsElement([adm1, adm2, adm3, admStartStop], i.callerPublicKey))) | |
568 | + | then throwOnlyAdmin() | |
569 | + | else [BooleanEntry(kActive, true), DeleteEntry(kCause)] | |
570 | + | ||
571 | + | ||
572 | + | ||
573 | + | @Callable(i) | |
574 | + | func takeIntoAccountExtraFunds (amountLeave) = { | |
575 | + | let uncountableA = (accountBalanceWithStakedA - balanceA) | |
576 | + | let uncountableB = (accountBalanceWithStakedB - balanceB) | |
577 | + | let amountEnrollA = (uncountableA - (if ((assetIdA == USDN)) | |
578 | + | then amountLeave | |
579 | + | else 0)) | |
580 | + | let amountEnrollB = (uncountableB - (if ((assetIdB == USDN)) | |
581 | + | then amountLeave | |
582 | + | else 0)) | |
583 | + | if (!(isActive)) | |
584 | + | then throwIsInactive() | |
585 | + | else if ((i.caller != this)) | |
586 | + | then throwOnlyAdmin() | |
587 | + | else if ((0 > amountLeave)) | |
588 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
589 | + | else if (if ((0 > uncountableA)) | |
590 | + | then true | |
591 | + | else (0 > uncountableB)) | |
592 | + | then suspend("Enroll amount negative") | |
593 | + | else if (if ((0 > amountEnrollA)) | |
594 | + | then true | |
595 | + | else (0 > amountEnrollB)) | |
596 | + | then throw("Too large amountLeave") | |
597 | + | else [IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
598 | + | } | |
599 | + | ||
600 | + |
github/deemru/w8io/169f3d6 54.78 ms ◑