tx · 4hrvrxKRT79CUDMtD8LkoqA65T6jMTArTST29av9d19N 3MqygfPczv7qrsvCrvJ5MES7fS6dpafk68M: -0.01400000 Waves 2021.04.05 15:32 [1469154] smart account 3MqygfPczv7qrsvCrvJ5MES7fS6dpafk68M > SELF 0.00000000 Waves
{ "type": 13, "id": "4hrvrxKRT79CUDMtD8LkoqA65T6jMTArTST29av9d19N", "fee": 1400000, "feeAssetId": null, "timestamp": 1617625959306, "version": 2, "chainId": 84, "sender": "3MqygfPczv7qrsvCrvJ5MES7fS6dpafk68M", "senderPublicKey": "EPdhTKyYxdNVgjL4XsnDftcDDAAqWYX4j6FwMpsX7Pd5", "proofs": [ "5qo9kSr7yg3y6qShxU6F67ueauWvT74EwHdjmR5x7XGFiLJNLo3oPdS9gXwHay4hRC9gSteS1J6gYSDLXoCgjTBw" ], "script": "base64:AAIEAAAAAAAAABkIAhIAEgMKAQESABIDCgEBEgASABIDCgEBAAAAMwAAAAAHdmVyc2lvbgIAAAAFMS4wLjAAAAAACmtleVZlcnNpb24CAAAAB3ZlcnNpb24AAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAC2tleUJhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAAC2tleUJhbGFuY2VCAgAAAA9CX2Fzc2V0X2JhbGFuY2UAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2tleVNoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2Nh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2VyRW50cnkAAAACBQAAAAtrZXlCYWxhbmNlQQkAAGQAAAACBQAAAAhiYWxhbmNlQQUAAAANYW1vdW50RW5yb2xsQQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAALa2V5QmFsYW5jZUIJAABkAAAAAgUAAAAIYmFsYW5jZUIFAAAADWFtb3VudEVucm9sbEIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAMbGFzdF9pbmNvbWVfBQAAAAtzdHJBc3NldElkQQUAAAANYW1vdW50RW5yb2xsQQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxsYXN0X2luY29tZV8FAAAAC3N0ckFzc2V0SWRCBQAAAA1hbW91bnRFbnJvbGxCBQAAAANuaWwAAAAAEpZU0A==", "height": 1469154, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FSoSjCUbMKszCigaMocdM7yWozD7xtSdXw8E8FckKDiA Next: HLmjAonYca6eKTkwgV984JzRBezanPfSFgpK2BJxpAgi Diff:
Old | New | Differences | |
---|---|---|---|
255 | 255 | let newPmtAmountA = pmtAmountA | |
256 | 256 | let newPmtAmountB = (pmtAmountB + buyToken) | |
257 | 257 | if (true) | |
258 | - | then throw((toString(newPmtAmountA) + " - newPmtAmountA")) | |
258 | + | then throw((toString(newPmtAmountA) + " - newPmtAmountA 216")) | |
259 | 259 | else if (true) | |
260 | - | then throw((toString(newPmtAmountB) + " - newPmtAmountB")) | |
260 | + | then throw((toString(newPmtAmountB) + " - newPmtAmountB 217")) | |
261 | 261 | else { | |
262 | 262 | let newBalanceA = (balanceA + newPmtAmountA) | |
263 | 263 | let newBalanceB = (balanceB + newPmtAmountB) | |
264 | 264 | if (true) | |
265 | - | then throw((toString(newBalanceA) + " - newBalanceA")) | |
265 | + | then throw((toString(newBalanceA) + " - newBalanceA 222")) | |
266 | 266 | else if (true) | |
267 | - | then throw((toString(newBalanceB) + " - newBalanceB")) | |
267 | + | then throw((toString(newBalanceB) + " - newBalanceB 223")) | |
268 | 268 | else { | |
269 | 269 | let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB)) | |
270 | 270 | let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA) | |
291 | 291 | else if ((ratioShareTokensInB > ratioShareTokensInA)) | |
292 | 292 | then { | |
293 | 293 | let assetIdSend = pmtAssetIdA | |
294 | - | let $ | |
295 | - | let amountWithoutFee = $ | |
296 | - | let amountWithFee = $ | |
297 | - | let governanceReward = $ | |
294 | + | let $t01305813159 = calculateFees(balanceB, balanceA, buyToken) | |
295 | + | let amountWithoutFee = $t01305813159._1 | |
296 | + | let amountWithFee = $t01305813159._2 | |
297 | + | let governanceReward = $t01305813159._3 | |
298 | 298 | let newPmtAmountA = (pmtAmountA + buyToken) | |
299 | 299 | let newPmtAmountB = pmtAmountB | |
300 | 300 | if (true) | |
301 | - | then throw((toString(newPmtAmountA) + " - newPmtAmountA")) | |
301 | + | then throw((toString(newPmtAmountA) + " - newPmtAmountA 258")) | |
302 | 302 | else if (true) | |
303 | - | then throw((toString(newPmtAmountB) + " - newPmtAmountB")) | |
303 | + | then throw((toString(newPmtAmountB) + " - newPmtAmountB 259")) | |
304 | 304 | else { | |
305 | 305 | let newBalanceA = (balanceA + newPmtAmountA) | |
306 | 306 | let newBalanceB = (balanceB + newPmtAmountB) | |
307 | 307 | if (true) | |
308 | - | then throw((toString(newBalanceA) + " - newBalanceA")) | |
308 | + | then throw((toString(newBalanceA) + " - newBalanceA 264")) | |
309 | 309 | else if (true) | |
310 | - | then throw((toString(newBalanceB) + " - newBalanceB")) | |
310 | + | then throw((toString(newBalanceB) + " - newBalanceB 265")) | |
311 | 311 | else { | |
312 | 312 | let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB)) | |
313 | 313 | let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA) | |
338 | 338 | ||
339 | 339 | @Callable(i) | |
340 | 340 | func withdraw () = { | |
341 | - | let $ | |
342 | - | let pmtAmount = $ | |
343 | - | let pmtAssetId = $ | |
341 | + | let $t01568415834 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
342 | + | let pmtAmount = $t01568415834._1 | |
343 | + | let pmtAssetId = $t01568415834._2 | |
344 | 344 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
345 | 345 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
346 | 346 | if (!(isActive)) | |
362 | 362 | ||
363 | 363 | @Callable(i) | |
364 | 364 | func exchange (minAmountToReceive) = { | |
365 | - | let $ | |
366 | - | let pmtAmount = $ | |
367 | - | let pmtAssetId = $ | |
365 | + | let $t01722417299 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
366 | + | let pmtAmount = $t01722417299._1 | |
367 | + | let pmtAssetId = $t01722417299._2 | |
368 | 368 | func calculateFees (tokenFrom,tokenTo) = { | |
369 | 369 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
370 | 370 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
385 | 385 | else if ((pmtAssetId == assetIdA)) | |
386 | 386 | then { | |
387 | 387 | let assetIdSend = assetIdB | |
388 | - | let $ | |
389 | - | let amountWithoutFee = $ | |
390 | - | let amountWithFee = $ | |
391 | - | let governanceReward = $ | |
388 | + | let $t01865818749 = calculateFees(balanceA, balanceB) | |
389 | + | let amountWithoutFee = $t01865818749._1 | |
390 | + | let amountWithFee = $t01865818749._2 | |
391 | + | let governanceReward = $t01865818749._3 | |
392 | 392 | let newBalanceA = (balanceA + pmtAmount) | |
393 | 393 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
394 | 394 | if (if (if ((assetIdA == USDN)) | |
404 | 404 | else if ((pmtAssetId == assetIdB)) | |
405 | 405 | then { | |
406 | 406 | let assetIdSend = assetIdA | |
407 | - | let $ | |
408 | - | let amountWithoutFee = $ | |
409 | - | let amountWithFee = $ | |
410 | - | let governanceReward = $ | |
407 | + | let $t01962219713 = calculateFees(balanceB, balanceA) | |
408 | + | let amountWithoutFee = $t01962219713._1 | |
409 | + | let amountWithFee = $t01962219713._2 | |
410 | + | let governanceReward = $t01962219713._3 | |
411 | 411 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
412 | 412 | let newBalanceB = (balanceB + pmtAmount) | |
413 | 413 | if (if (if ((assetIdA == USDN)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let keyVersion = "version" | |
7 | 7 | ||
8 | 8 | let keyActive = "active" | |
9 | 9 | ||
10 | 10 | let keyAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let keyAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let keyBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let keyBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let keyShareAssetId = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let keyShareAssetSupply = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let keyCommission = "commission" | |
23 | 23 | ||
24 | 24 | let keyCommissionScaleDelimiter = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let keyCause = "shutdown_cause" | |
27 | 27 | ||
28 | 28 | let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
29 | 29 | ||
30 | 30 | let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
31 | 31 | ||
32 | 32 | let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
33 | 33 | ||
34 | 34 | let adminPubKeyStartStop = base58'EtVkT6ed8GtbUiVVEqdmEqsp2J4qbb3rre2HFgxeVYdg' | |
35 | 35 | ||
36 | 36 | let adminPubKeyStaking = base58'Czn4yoAuUZCVCLJDRfskn8URfkwpknwBTZDbs1wFrY7h' | |
37 | 37 | ||
38 | 38 | let governanceAddress = Address(base58'3P6J84oH51DzY6xk2mT5TheXRbrCwBMxonp') | |
39 | 39 | ||
40 | 40 | let stakingAddress = Address(base58'3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ') | |
41 | 41 | ||
42 | 42 | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
43 | 43 | ||
44 | 44 | let stakingFeeInUSDN = (9 * value(value(assetInfo(USDN)).minSponsoredFee)) | |
45 | 45 | ||
46 | 46 | let isActive = getBooleanValue(this, keyActive) | |
47 | 47 | ||
48 | 48 | let strAssetIdA = getStringValue(this, keyAssetIdA) | |
49 | 49 | ||
50 | 50 | let strAssetIdB = getStringValue(this, keyAssetIdB) | |
51 | 51 | ||
52 | 52 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
53 | 53 | then unit | |
54 | 54 | else fromBase58String(strAssetIdA) | |
55 | 55 | ||
56 | 56 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
57 | 57 | then unit | |
58 | 58 | else fromBase58String(strAssetIdB) | |
59 | 59 | ||
60 | 60 | let assetNameA = match assetIdA { | |
61 | 61 | case id: ByteVector => | |
62 | 62 | value(assetInfo(id)).name | |
63 | 63 | case waves: Unit => | |
64 | 64 | "WAVES" | |
65 | 65 | case _ => | |
66 | 66 | throw("Match error") | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | let assetNameB = match assetIdB { | |
70 | 70 | case id: ByteVector => | |
71 | 71 | value(assetInfo(id)).name | |
72 | 72 | case waves: Unit => | |
73 | 73 | "WAVES" | |
74 | 74 | case _ => | |
75 | 75 | throw("Match error") | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | let balanceA = getIntegerValue(this, keyBalanceA) | |
79 | 79 | ||
80 | 80 | let balanceB = getIntegerValue(this, keyBalanceB) | |
81 | 81 | ||
82 | 82 | let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId)) | |
83 | 83 | ||
84 | 84 | let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply) | |
85 | 85 | ||
86 | 86 | let commission = 3000 | |
87 | 87 | ||
88 | 88 | let commissionGovernance = 1200 | |
89 | 89 | ||
90 | 90 | let commissionScaleDelimiter = 1000000 | |
91 | 91 | ||
92 | 92 | let scaleValue3 = 1000 | |
93 | 93 | ||
94 | 94 | let scaleValue8 = 100000000 | |
95 | 95 | ||
96 | 96 | let slippageToleranceDelimiter = 1000 | |
97 | 97 | ||
98 | 98 | let scaleValue8Digits = 8 | |
99 | 99 | ||
100 | 100 | func accountBalance (assetId) = match assetId { | |
101 | 101 | case id: ByteVector => | |
102 | 102 | assetBalance(this, id) | |
103 | 103 | case waves: Unit => | |
104 | 104 | wavesBalance(this).available | |
105 | 105 | case _ => | |
106 | 106 | throw("Match error") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) { | |
111 | 111 | case staked: Int => | |
112 | 112 | staked | |
113 | 113 | case nothing: Unit => | |
114 | 114 | 0 | |
115 | 115 | case _ => | |
116 | 116 | throw("Match error") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | let availableBalanceA = (balanceA - (if ((assetIdA == USDN)) | |
120 | 120 | then stakedAmountUSDN | |
121 | 121 | else 0)) | |
122 | 122 | ||
123 | 123 | let availableBalanceB = (balanceB - (if ((assetIdB == USDN)) | |
124 | 124 | then stakedAmountUSDN | |
125 | 125 | else 0)) | |
126 | 126 | ||
127 | 127 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN)) | |
128 | 128 | then stakedAmountUSDN | |
129 | 129 | else 0)) | |
130 | 130 | ||
131 | 131 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN)) | |
132 | 132 | then stakedAmountUSDN | |
133 | 133 | else 0)) | |
134 | 134 | ||
135 | 135 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
136 | 136 | then (accountBalanceWithStakedB >= balanceB) | |
137 | 137 | else false | |
138 | 138 | ||
139 | 139 | func getAssetInfo (assetId) = match assetId { | |
140 | 140 | case id: ByteVector => | |
141 | 141 | let stringId = toBase58String(id) | |
142 | 142 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
143 | 143 | $Tuple3(stringId, info.name, info.decimals) | |
144 | 144 | case waves: Unit => | |
145 | 145 | $Tuple3("WAVES", "WAVES", 8) | |
146 | 146 | case _ => | |
147 | 147 | throw("Match error") | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func deductStakingFee (amount,assetId) = if ((assetId == USDN)) | |
155 | 155 | then { | |
156 | 156 | let result = (amount - stakingFeeInUSDN) | |
157 | 157 | if ((0 >= result)) | |
158 | 158 | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N")) | |
159 | 159 | else result | |
160 | 160 | } | |
161 | 161 | else amount | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | 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")) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | 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")) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(i) | |
171 | 171 | func init () = { | |
172 | 172 | let $t047554832 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
173 | 173 | let pmtAmountA = $t047554832._1 | |
174 | 174 | let pmtAssetIdA = $t047554832._2 | |
175 | 175 | let $t048374914 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
176 | 176 | let pmtAmountB = $t048374914._1 | |
177 | 177 | let pmtAssetIdB = $t048374914._2 | |
178 | 178 | let $t049194996 = getAssetInfo(pmtAssetIdA) | |
179 | 179 | let pmtStrAssetIdA = $t049194996._1 | |
180 | 180 | let pmtAssetNameA = $t049194996._2 | |
181 | 181 | let pmtDecimalsA = $t049194996._3 | |
182 | 182 | let $t050015078 = getAssetInfo(pmtAssetIdB) | |
183 | 183 | let pmtStrAssetIdB = $t050015078._1 | |
184 | 184 | let pmtAssetNameB = $t050015078._2 | |
185 | 185 | let pmtDecimalsB = $t050015078._3 | |
186 | 186 | if (isDefined(getBoolean(this, keyActive))) | |
187 | 187 | then throw("DApp is already active") | |
188 | 188 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
189 | 189 | then throw("Assets must be different") | |
190 | 190 | else { | |
191 | 191 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
192 | 192 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
193 | 193 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
194 | 194 | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN)) | |
195 | 195 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
196 | 196 | let shareIssueId = calculateAssetId(shareIssue) | |
197 | 197 | [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
198 | 198 | } | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | ||
203 | 203 | @Callable(i) | |
204 | 204 | func replenishWithTwoTokens (slippageTolerance) = { | |
205 | 205 | let pmtAssetIdA = i.payments[0].assetId | |
206 | 206 | let pmtAssetIdB = i.payments[1].assetId | |
207 | 207 | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA) | |
208 | 208 | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB) | |
209 | 209 | let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA) | |
210 | 210 | let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB) | |
211 | 211 | func calculateFees (tokenFrom,tokenTo,pmtAmount) = { | |
212 | 212 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
213 | 213 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
214 | 214 | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
215 | 215 | $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | func exchangeTokenWithoutFee (balanceA,balanceB,paymentAmountA,paymentAmountB) = { | |
219 | 219 | let bEquation = ((fraction(balanceA, scaleValue8, 1) + fraction(paymentAmountA, scaleValue8, 2)) - fraction(fraction(scaleValue8, balanceA, 2), paymentAmountB, balanceB)) | |
220 | 220 | let DEquation = ((((pow(paymentAmountA, 0, 2, 0, scaleValue8Digits, UP) / 4) + ((balanceA * balanceA) * scaleValue8)) - fraction(fraction(paymentAmountA, (scaleValue8 * paymentAmountB), 2), balanceA, balanceB)) + (pow(fraction(paymentAmountB, (balanceA * scaleValue8), (2 * balanceB)), 0, 2, 0, 0, DOWN) / scaleValue8)) | |
221 | 221 | let a = (-(bEquation) + pow(DEquation, 0, 5, 1, (scaleValue8Digits / 2), DOWN)) | |
222 | 222 | let denominatorb = (a + (balanceA * scaleValue8)) | |
223 | 223 | let b = fraction(a, (balanceB * scaleValue8), denominatorb) | |
224 | 224 | if ((ratioShareTokensInB > ratioShareTokensInA)) | |
225 | 225 | then $Tuple2(a, b) | |
226 | 226 | else if ((ratioShareTokensInB > ratioShareTokensInA)) | |
227 | 227 | then $Tuple2(-(b), -(a)) | |
228 | 228 | else $Tuple2(0, 0) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | let $t088259097 = exchangeTokenWithoutFee(balanceA, balanceB, pmtAmountA, pmtAmountB) | |
232 | 232 | let buyToken = $t088259097._1 | |
233 | 233 | let sellToken = $t088259097._2 | |
234 | 234 | if (!(isActive)) | |
235 | 235 | then throw("DApp is inactive at this moment") | |
236 | 236 | else if (if ((0 > slippageTolerance)) | |
237 | 237 | then true | |
238 | 238 | else (slippageTolerance > slippageToleranceDelimiter)) | |
239 | 239 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
240 | 240 | else if ((size(i.payments) != 2)) | |
241 | 241 | then throw("Two attached assets expected") | |
242 | 242 | else if (if ((pmtAssetIdA != assetIdA)) | |
243 | 243 | then true | |
244 | 244 | else (pmtAssetIdB != assetIdB)) | |
245 | 245 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
246 | 246 | else if (!(hasEnoughBalance)) | |
247 | 247 | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
248 | 248 | else if ((ratioShareTokensInA > ratioShareTokensInB)) | |
249 | 249 | then { | |
250 | 250 | let assetIdSend = pmtAssetIdB | |
251 | 251 | let $t01045610557 = calculateFees(balanceA, balanceB, buyToken) | |
252 | 252 | let amountWithoutFee = $t01045610557._1 | |
253 | 253 | let amountWithFee = $t01045610557._2 | |
254 | 254 | let governanceReward = $t01045610557._3 | |
255 | 255 | let newPmtAmountA = pmtAmountA | |
256 | 256 | let newPmtAmountB = (pmtAmountB + buyToken) | |
257 | 257 | if (true) | |
258 | - | then throw((toString(newPmtAmountA) + " - newPmtAmountA")) | |
258 | + | then throw((toString(newPmtAmountA) + " - newPmtAmountA 216")) | |
259 | 259 | else if (true) | |
260 | - | then throw((toString(newPmtAmountB) + " - newPmtAmountB")) | |
260 | + | then throw((toString(newPmtAmountB) + " - newPmtAmountB 217")) | |
261 | 261 | else { | |
262 | 262 | let newBalanceA = (balanceA + newPmtAmountA) | |
263 | 263 | let newBalanceB = (balanceB + newPmtAmountB) | |
264 | 264 | if (true) | |
265 | - | then throw((toString(newBalanceA) + " - newBalanceA")) | |
265 | + | then throw((toString(newBalanceA) + " - newBalanceA 222")) | |
266 | 266 | else if (true) | |
267 | - | then throw((toString(newBalanceB) + " - newBalanceB")) | |
267 | + | then throw((toString(newBalanceB) + " - newBalanceB 223")) | |
268 | 268 | else { | |
269 | 269 | let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB)) | |
270 | 270 | let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA) | |
271 | 271 | let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB) | |
272 | 272 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8) | |
273 | 273 | if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
274 | 274 | then true | |
275 | 275 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
276 | 276 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
277 | 277 | else if ((shareTokenToPayAmount == 0)) | |
278 | 278 | then throw("Too small amount to replenish") | |
279 | 279 | else if (if (if ((assetIdA == USDN)) | |
280 | 280 | then (stakedAmountUSDN >= newBalanceA) | |
281 | 281 | else false) | |
282 | 282 | then true | |
283 | 283 | else if ((assetIdB == USDN)) | |
284 | 284 | then (stakedAmountUSDN >= newBalanceB) | |
285 | 285 | else false) | |
286 | 286 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
287 | 287 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
288 | 288 | } | |
289 | 289 | } | |
290 | 290 | } | |
291 | 291 | else if ((ratioShareTokensInB > ratioShareTokensInA)) | |
292 | 292 | then { | |
293 | 293 | let assetIdSend = pmtAssetIdA | |
294 | - | let $ | |
295 | - | let amountWithoutFee = $ | |
296 | - | let amountWithFee = $ | |
297 | - | let governanceReward = $ | |
294 | + | let $t01305813159 = calculateFees(balanceB, balanceA, buyToken) | |
295 | + | let amountWithoutFee = $t01305813159._1 | |
296 | + | let amountWithFee = $t01305813159._2 | |
297 | + | let governanceReward = $t01305813159._3 | |
298 | 298 | let newPmtAmountA = (pmtAmountA + buyToken) | |
299 | 299 | let newPmtAmountB = pmtAmountB | |
300 | 300 | if (true) | |
301 | - | then throw((toString(newPmtAmountA) + " - newPmtAmountA")) | |
301 | + | then throw((toString(newPmtAmountA) + " - newPmtAmountA 258")) | |
302 | 302 | else if (true) | |
303 | - | then throw((toString(newPmtAmountB) + " - newPmtAmountB")) | |
303 | + | then throw((toString(newPmtAmountB) + " - newPmtAmountB 259")) | |
304 | 304 | else { | |
305 | 305 | let newBalanceA = (balanceA + newPmtAmountA) | |
306 | 306 | let newBalanceB = (balanceB + newPmtAmountB) | |
307 | 307 | if (true) | |
308 | - | then throw((toString(newBalanceA) + " - newBalanceA")) | |
308 | + | then throw((toString(newBalanceA) + " - newBalanceA 264")) | |
309 | 309 | else if (true) | |
310 | - | then throw((toString(newBalanceB) + " - newBalanceB")) | |
310 | + | then throw((toString(newBalanceB) + " - newBalanceB 265")) | |
311 | 311 | else { | |
312 | 312 | let tokenRatio = fraction(fraction(newBalanceA, scaleValue8, newPmtAmountA), scaleValue3, fraction(newBalanceB, scaleValue8, newPmtAmountB)) | |
313 | 313 | let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA) | |
314 | 314 | let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB) | |
315 | 315 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8) | |
316 | 316 | if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
317 | 317 | then true | |
318 | 318 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
319 | 319 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
320 | 320 | else if ((shareTokenToPayAmount == 0)) | |
321 | 321 | then throw("Too small amount to replenish") | |
322 | 322 | else if (if (if ((assetIdA == USDN)) | |
323 | 323 | then (stakedAmountUSDN >= newBalanceA) | |
324 | 324 | else false) | |
325 | 325 | then true | |
326 | 326 | else if ((assetIdB == USDN)) | |
327 | 327 | then (stakedAmountUSDN >= newBalanceB) | |
328 | 328 | else false) | |
329 | 329 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
330 | 330 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
331 | 331 | } | |
332 | 332 | } | |
333 | 333 | } | |
334 | 334 | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(i) | |
340 | 340 | func withdraw () = { | |
341 | - | let $ | |
342 | - | let pmtAmount = $ | |
343 | - | let pmtAssetId = $ | |
341 | + | let $t01568415834 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
342 | + | let pmtAmount = $t01568415834._1 | |
343 | + | let pmtAssetId = $t01568415834._2 | |
344 | 344 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
345 | 345 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
346 | 346 | if (!(isActive)) | |
347 | 347 | then throw("DApp is inactive at this moment") | |
348 | 348 | else if ((size(i.payments) != 1)) | |
349 | 349 | then throw("One attached payment expected") | |
350 | 350 | else if ((pmtAssetId != shareAssetId)) | |
351 | 351 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
352 | 352 | else if (!(hasEnoughBalance)) | |
353 | 353 | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
354 | 354 | else if (if ((amountToPayA > availableBalanceA)) | |
355 | 355 | then true | |
356 | 356 | else (amountToPayB > availableBalanceB)) | |
357 | 357 | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
358 | 358 | else [IntegerEntry(keyBalanceA, (balanceA - amountToPayA)), IntegerEntry(keyBalanceB, (balanceB - amountToPayB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply - pmtAmount)), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
359 | 359 | } | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | ||
363 | 363 | @Callable(i) | |
364 | 364 | func exchange (minAmountToReceive) = { | |
365 | - | let $ | |
366 | - | let pmtAmount = $ | |
367 | - | let pmtAssetId = $ | |
365 | + | let $t01722417299 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
366 | + | let pmtAmount = $t01722417299._1 | |
367 | + | let pmtAssetId = $t01722417299._2 | |
368 | 368 | func calculateFees (tokenFrom,tokenTo) = { | |
369 | 369 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
370 | 370 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
371 | 371 | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
372 | 372 | if ((minAmountToReceive > amountWithFee)) | |
373 | 373 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
374 | 374 | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | if (!(isActive)) | |
378 | 378 | then throw("DApp is inactive at this moment") | |
379 | 379 | else if ((0 >= minAmountToReceive)) | |
380 | 380 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
381 | 381 | else if ((size(i.payments) != 1)) | |
382 | 382 | then throw("One attached payment expected") | |
383 | 383 | else if (!(hasEnoughBalance)) | |
384 | 384 | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
385 | 385 | else if ((pmtAssetId == assetIdA)) | |
386 | 386 | then { | |
387 | 387 | let assetIdSend = assetIdB | |
388 | - | let $ | |
389 | - | let amountWithoutFee = $ | |
390 | - | let amountWithFee = $ | |
391 | - | let governanceReward = $ | |
388 | + | let $t01865818749 = calculateFees(balanceA, balanceB) | |
389 | + | let amountWithoutFee = $t01865818749._1 | |
390 | + | let amountWithFee = $t01865818749._2 | |
391 | + | let governanceReward = $t01865818749._3 | |
392 | 392 | let newBalanceA = (balanceA + pmtAmount) | |
393 | 393 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
394 | 394 | if (if (if ((assetIdA == USDN)) | |
395 | 395 | then (stakedAmountUSDN >= newBalanceA) | |
396 | 396 | else false) | |
397 | 397 | then true | |
398 | 398 | else if ((assetIdB == USDN)) | |
399 | 399 | then (stakedAmountUSDN >= newBalanceB) | |
400 | 400 | else false) | |
401 | 401 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
402 | 402 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)] | |
403 | 403 | } | |
404 | 404 | else if ((pmtAssetId == assetIdB)) | |
405 | 405 | then { | |
406 | 406 | let assetIdSend = assetIdA | |
407 | - | let $ | |
408 | - | let amountWithoutFee = $ | |
409 | - | let amountWithFee = $ | |
410 | - | let governanceReward = $ | |
407 | + | let $t01962219713 = calculateFees(balanceB, balanceA) | |
408 | + | let amountWithoutFee = $t01962219713._1 | |
409 | + | let amountWithFee = $t01962219713._2 | |
410 | + | let governanceReward = $t01962219713._3 | |
411 | 411 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
412 | 412 | let newBalanceB = (balanceB + pmtAmount) | |
413 | 413 | if (if (if ((assetIdA == USDN)) | |
414 | 414 | then (stakedAmountUSDN >= newBalanceA) | |
415 | 415 | else false) | |
416 | 416 | then true | |
417 | 417 | else if ((assetIdB == USDN)) | |
418 | 418 | then (stakedAmountUSDN >= newBalanceB) | |
419 | 419 | else false) | |
420 | 420 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
421 | 421 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)] | |
422 | 422 | } | |
423 | 423 | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | ||
428 | 428 | @Callable(i) | |
429 | 429 | func shutdown () = if (!(isActive)) | |
430 | 430 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
431 | 431 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
432 | 432 | then throw("Only admin can call this function") | |
433 | 433 | else suspend("Paused by admin") | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | ||
437 | 437 | @Callable(i) | |
438 | 438 | func activate () = if (isActive) | |
439 | 439 | then throw("DApp is already active") | |
440 | 440 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
441 | 441 | then throw("Only admin can call this function") | |
442 | 442 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | ||
446 | 446 | @Callable(i) | |
447 | 447 | func takeIntoAccountExtraFunds (amountLeave) = { | |
448 | 448 | let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA) | |
449 | 449 | let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB) | |
450 | 450 | let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == USDN)) | |
451 | 451 | then amountLeave | |
452 | 452 | else 0)) | |
453 | 453 | let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == USDN)) | |
454 | 454 | then amountLeave | |
455 | 455 | else 0)) | |
456 | 456 | if (!(isActive)) | |
457 | 457 | then throw("DApp is inactive at this moment") | |
458 | 458 | else if ((i.caller != this)) | |
459 | 459 | then throw("Only the DApp itself can call this function") | |
460 | 460 | else if ((0 > amountLeave)) | |
461 | 461 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
462 | 462 | else if (if ((0 > uncountableAmountEnrollAssetA)) | |
463 | 463 | then true | |
464 | 464 | else (0 > uncountableAmountEnrollAssetB)) | |
465 | 465 | then suspend("Enroll amount negative") | |
466 | 466 | else if (if ((0 > amountEnrollA)) | |
467 | 467 | then true | |
468 | 468 | else (0 > amountEnrollB)) | |
469 | 469 | then throw("Too large amountLeave") | |
470 | 470 | else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
471 | 471 | } | |
472 | 472 | ||
473 | 473 |
github/deemru/w8io/169f3d6 84.72 ms ◑