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