tx · DgQ77ph7sX3A9bPhWvC1LKfzuXAsw5qz1Pfoy6hZHPYw 3MvsAVxfF3wLcjtDRXQrsMWELRgJTiAJmvx: -0.01400000 Waves 2021.04.05 21:51 [1469531] smart account 3MvsAVxfF3wLcjtDRXQrsMWELRgJTiAJmvx > SELF 0.00000000 Waves
{ "type": 13, "id": "DgQ77ph7sX3A9bPhWvC1LKfzuXAsw5qz1Pfoy6hZHPYw", "fee": 1400000, "feeAssetId": null, "timestamp": 1617648721586, "version": 2, "chainId": 84, "sender": "3MvsAVxfF3wLcjtDRXQrsMWELRgJTiAJmvx", "senderPublicKey": "GojowxKKipFS8jJmSgG6a5dG2xprvyJwPUgrkfjcHHKa", "proofs": [ "2j8JRbsuD1gn58CrW2HZGKxdtN2y7W1RKD4i7xNkty7tEfzjU9zTKZwo7rcwBjQj6kadRCv2c4qrvfFUAzj7DphU" ], "script": "base64:AAIEAAAAAAAAABkIAhIAEgMKAQESABIDCgEBEgASABIDCgEBAAAAMwAAAAAHdmVyc2lvbgIAAAAFMS4wLjAAAAAACmtleVZlcnNpb24CAAAAB3ZlcnNpb24AAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAtrZXlBc3NldElkQQIAAAAKQV9hc3NldF9pZAAAAAALa2V5QXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAAC2tleUJhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAAC2tleUJhbGFuY2VCAgAAAA9CX2Fzc2V0X2JhbGFuY2UAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2tleVNoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAIa2V5Q2F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AAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAMbGFzdF9pbmNvbWVfBQAAAAtzdHJBc3NldElkQgUAAAANYW1vdW50RW5yb2xsQgUAAAADbmlsAAAAAD7MtMw=", "height": 1469531, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5dfYA1MHfAMvtSx8Z2QmsLzyLMHk7DJPh6ytJR5K2CEr Next: none Full:
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'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
39 | 39 | ||
40 | 40 | let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
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 (if (if ((scaleValue8 > a)) | |
225 | 225 | then (a > -(scaleValue8)) | |
226 | 226 | else false) | |
227 | 227 | then true | |
228 | 228 | else if ((b > -(scaleValue8))) | |
229 | 229 | then (scaleValue8 > b) | |
230 | 230 | else false) | |
231 | 231 | then $Tuple2(0, 0) | |
232 | 232 | else if ((ratioShareTokensInB > ratioShareTokensInA)) | |
233 | 233 | then $Tuple2(a, b) | |
234 | 234 | else if ((ratioShareTokensInA > ratioShareTokensInB)) | |
235 | 235 | then $Tuple2(-(b), -(a)) | |
236 | 236 | else $Tuple2(0, 0) | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | let $t089579228 = exchangeTokenWithoutFee(balanceA, balanceB, pmtAmountA, pmtAmountB) | |
240 | 240 | let buyToken = $t089579228._1 | |
241 | 241 | let sellToken = $t089579228._2 | |
242 | 242 | if (!(isActive)) | |
243 | 243 | then throw("DApp is inactive at this moment") | |
244 | 244 | else if (if ((0 > slippageTolerance)) | |
245 | 245 | then true | |
246 | 246 | else (slippageTolerance > slippageToleranceDelimiter)) | |
247 | 247 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
248 | 248 | else if ((size(i.payments) != 2)) | |
249 | 249 | then throw("Two attached assets expected") | |
250 | 250 | else if (if ((pmtAssetIdA != assetIdA)) | |
251 | 251 | then true | |
252 | 252 | else (pmtAssetIdB != assetIdB)) | |
253 | 253 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
254 | 254 | else if (!(hasEnoughBalance)) | |
255 | 255 | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
256 | 256 | else if (if ((buyToken == 0)) | |
257 | 257 | then (sellToken == 0) | |
258 | 258 | else false) | |
259 | 259 | then { | |
260 | 260 | let ratioShareTokensInANew = fraction(pmtAmountA, scaleValue8, balanceA) | |
261 | 261 | let ratioShareTokensInBNew = fraction(pmtAmountB, scaleValue8, balanceB) | |
262 | 262 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8) | |
263 | 263 | if ((shareTokenToPayAmount == 0)) | |
264 | 264 | then throw("Too small amount to replenish") | |
265 | 265 | else [IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
266 | 266 | } | |
267 | 267 | else if ((ratioShareTokensInA > ratioShareTokensInB)) | |
268 | 268 | then { | |
269 | 269 | let assetIdSend = pmtAssetIdB | |
270 | 270 | let $t01221212325 = calculateFees(balanceA, balanceB, (buyToken / scaleValue8)) | |
271 | 271 | let amountWithoutFee = $t01221212325._1 | |
272 | 272 | let amountWithFee = $t01221212325._2 | |
273 | 273 | let governanceReward = $t01221212325._3 | |
274 | 274 | let newPmtAmountA = (pmtAmountA - amountWithoutFee) | |
275 | 275 | let newPmtAmountB = (pmtAmountB + (buyToken / scaleValue8)) | |
276 | 276 | let newBalanceA = ((balanceA + newPmtAmountA) + amountWithoutFee) | |
277 | 277 | let newBalanceB = ((balanceB + newPmtAmountB) - (buyToken / scaleValue8)) | |
278 | 278 | let tokenRatio = 1 | |
279 | 279 | let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA) | |
280 | 280 | let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB) | |
281 | 281 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8) | |
282 | 282 | if ((shareTokenToPayAmount == 0)) | |
283 | 283 | then throw("Too small amount to replenish") | |
284 | 284 | else if (if (if ((assetIdA == USDN)) | |
285 | 285 | then (stakedAmountUSDN >= newBalanceA) | |
286 | 286 | else false) | |
287 | 287 | then true | |
288 | 288 | else if ((assetIdB == USDN)) | |
289 | 289 | then (stakedAmountUSDN >= newBalanceB) | |
290 | 290 | else false) | |
291 | 291 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
292 | 292 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, newPmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, newPmtAmountB, assetIdSend), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
293 | 293 | } | |
294 | 294 | else if ((ratioShareTokensInB > ratioShareTokensInA)) | |
295 | 295 | then { | |
296 | 296 | let assetIdSend = pmtAssetIdA | |
297 | 297 | let $t01512515238 = calculateFees(balanceB, balanceA, (buyToken / scaleValue8)) | |
298 | 298 | let amountWithoutFee = $t01512515238._1 | |
299 | 299 | let amountWithFee = $t01512515238._2 | |
300 | 300 | let governanceReward = $t01512515238._3 | |
301 | 301 | let newPmtAmountA = (pmtAmountA + (buyToken / scaleValue8)) | |
302 | 302 | let newPmtAmountB = (pmtAmountB - amountWithoutFee) | |
303 | 303 | let newBalanceA = ((balanceA + newPmtAmountA) - (buyToken / scaleValue8)) | |
304 | 304 | let newBalanceB = ((balanceB + newPmtAmountB) + amountWithoutFee) | |
305 | 305 | let tokenRatio = 1 | |
306 | 306 | let ratioShareTokensInANew = fraction(newPmtAmountA, scaleValue8, newBalanceA) | |
307 | 307 | let ratioShareTokensInBNew = fraction(newPmtAmountB, scaleValue8, newBalanceB) | |
308 | 308 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInANew, ratioShareTokensInBNew]), shareAssetSupply, scaleValue8) | |
309 | 309 | if ((shareTokenToPayAmount == 0)) | |
310 | 310 | then throw("Too small amount to replenish") | |
311 | 311 | else if (if (if ((assetIdA == USDN)) | |
312 | 312 | then (stakedAmountUSDN >= newBalanceA) | |
313 | 313 | else false) | |
314 | 314 | then true | |
315 | 315 | else if ((assetIdB == USDN)) | |
316 | 316 | then (stakedAmountUSDN >= newBalanceB) | |
317 | 317 | else false) | |
318 | 318 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
319 | 319 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, newPmtAmountA, assetIdSend), ScriptTransfer(i.caller, newPmtAmountB, pmtAssetIdB), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
320 | 320 | } | |
321 | 321 | else throw("mistake") | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(i) | |
327 | 327 | func withdraw () = { | |
328 | 328 | let $t01790118051 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
329 | 329 | let pmtAmount = $t01790118051._1 | |
330 | 330 | let pmtAssetId = $t01790118051._2 | |
331 | 331 | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
332 | 332 | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
333 | 333 | if (!(isActive)) | |
334 | 334 | then throw("DApp is inactive at this moment") | |
335 | 335 | else if ((size(i.payments) != 1)) | |
336 | 336 | then throw("One attached payment expected") | |
337 | 337 | else if ((pmtAssetId != shareAssetId)) | |
338 | 338 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
339 | 339 | else if (!(hasEnoughBalance)) | |
340 | 340 | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
341 | 341 | else if (if ((amountToPayA > availableBalanceA)) | |
342 | 342 | then true | |
343 | 343 | else (amountToPayB > availableBalanceB)) | |
344 | 344 | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
345 | 345 | 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)] | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(i) | |
351 | 351 | func exchange (minAmountToReceive) = { | |
352 | 352 | let $t01944119516 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
353 | 353 | let pmtAmount = $t01944119516._1 | |
354 | 354 | let pmtAssetId = $t01944119516._2 | |
355 | 355 | func calculateFees (tokenFrom,tokenTo) = { | |
356 | 356 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
357 | 357 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
358 | 358 | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
359 | 359 | if ((minAmountToReceive > amountWithFee)) | |
360 | 360 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
361 | 361 | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | if (!(isActive)) | |
365 | 365 | then throw("DApp is inactive at this moment") | |
366 | 366 | else if ((0 >= minAmountToReceive)) | |
367 | 367 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
368 | 368 | else if ((size(i.payments) != 1)) | |
369 | 369 | then throw("One attached payment expected") | |
370 | 370 | else if (!(hasEnoughBalance)) | |
371 | 371 | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
372 | 372 | else if ((pmtAssetId == assetIdA)) | |
373 | 373 | then { | |
374 | 374 | let assetIdSend = assetIdB | |
375 | 375 | let $t02087520966 = calculateFees(balanceA, balanceB) | |
376 | 376 | let amountWithoutFee = $t02087520966._1 | |
377 | 377 | let amountWithFee = $t02087520966._2 | |
378 | 378 | let governanceReward = $t02087520966._3 | |
379 | 379 | let newBalanceA = (balanceA + pmtAmount) | |
380 | 380 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
381 | 381 | if (if (if ((assetIdA == USDN)) | |
382 | 382 | then (stakedAmountUSDN >= newBalanceA) | |
383 | 383 | else false) | |
384 | 384 | then true | |
385 | 385 | else if ((assetIdB == USDN)) | |
386 | 386 | then (stakedAmountUSDN >= newBalanceB) | |
387 | 387 | else false) | |
388 | 388 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
389 | 389 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)] | |
390 | 390 | } | |
391 | 391 | else if ((pmtAssetId == assetIdB)) | |
392 | 392 | then { | |
393 | 393 | let assetIdSend = assetIdA | |
394 | 394 | let $t02183921930 = calculateFees(balanceB, balanceA) | |
395 | 395 | let amountWithoutFee = $t02183921930._1 | |
396 | 396 | let amountWithFee = $t02183921930._2 | |
397 | 397 | let governanceReward = $t02183921930._3 | |
398 | 398 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
399 | 399 | let newBalanceB = (balanceB + pmtAmount) | |
400 | 400 | if (if (if ((assetIdA == USDN)) | |
401 | 401 | then (stakedAmountUSDN >= newBalanceA) | |
402 | 402 | else false) | |
403 | 403 | then true | |
404 | 404 | else if ((assetIdB == USDN)) | |
405 | 405 | then (stakedAmountUSDN >= newBalanceB) | |
406 | 406 | else false) | |
407 | 407 | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
408 | 408 | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)] | |
409 | 409 | } | |
410 | 410 | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
411 | 411 | } | |
412 | 412 | ||
413 | 413 | ||
414 | 414 | ||
415 | 415 | @Callable(i) | |
416 | 416 | func shutdown () = if (!(isActive)) | |
417 | 417 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
418 | 418 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
419 | 419 | then throw("Only admin can call this function") | |
420 | 420 | else suspend("Paused by admin") | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | ||
424 | 424 | @Callable(i) | |
425 | 425 | func activate () = if (isActive) | |
426 | 426 | then throw("DApp is already active") | |
427 | 427 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
428 | 428 | then throw("Only admin can call this function") | |
429 | 429 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
430 | 430 | ||
431 | 431 | ||
432 | 432 | ||
433 | 433 | @Callable(i) | |
434 | 434 | func takeIntoAccountExtraFunds (amountLeave) = { | |
435 | 435 | let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA) | |
436 | 436 | let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB) | |
437 | 437 | let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == USDN)) | |
438 | 438 | then amountLeave | |
439 | 439 | else 0)) | |
440 | 440 | let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == USDN)) | |
441 | 441 | then amountLeave | |
442 | 442 | else 0)) | |
443 | 443 | if (!(isActive)) | |
444 | 444 | then throw("DApp is inactive at this moment") | |
445 | 445 | else if ((i.caller != this)) | |
446 | 446 | then throw("Only the DApp itself can call this function") | |
447 | 447 | else if ((0 > amountLeave)) | |
448 | 448 | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
449 | 449 | else if (if ((0 > uncountableAmountEnrollAssetA)) | |
450 | 450 | then true | |
451 | 451 | else (0 > uncountableAmountEnrollAssetB)) | |
452 | 452 | then suspend("Enroll amount negative") | |
453 | 453 | else if (if ((0 > amountEnrollA)) | |
454 | 454 | then true | |
455 | 455 | else (0 > amountEnrollB)) | |
456 | 456 | then throw("Too large amountLeave") | |
457 | 457 | else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 |
github/deemru/w8io/169f3d6 63.11 ms ◑