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