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