tx · ECyExyzc8KGgEMA6xkaJb7QDxddPHizitBrLkN8knYUi 3N8VprziouggRRQaP2aFdem2ycS6GudUaft: -0.01000000 Waves 2021.04.26 19:19 [1499657] smart account 3N8VprziouggRRQaP2aFdem2ycS6GudUaft > SELF 0.00000000 Waves
{ "type": 13, "id": "ECyExyzc8KGgEMA6xkaJb7QDxddPHizitBrLkN8knYUi", "fee": 1000000, "feeAssetId": null, "timestamp": 1619453982952, "version": 2, "chainId": 84, "sender": "3N8VprziouggRRQaP2aFdem2ycS6GudUaft", "senderPublicKey": "2RHKgKhtb7zn9BWj8GWz6YUyfTFMaoicZKLhjge5B6z2", "proofs": [ "dT6y4x1JKo5y9TwiSwtp1Z43z9GUdoAuu47es6HXwtryyG8nW4sUHEKyhxEjoymEgNKJtxzbuZiRm2a5bGaLybE" ], "script": "base64:AAIEAAAAAAAAACEIAhIAEgYKBAEBCAgSAwoBARIAEgMKAQESABIAEgMKAQEAAABHAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAC2tleUFzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAtrZXlBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAALa2V5QmFsYW5jZUECAAAAD0FfYXNzZXRfYmFsYW5jZQAAAAALa2V5QmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAAPa2V5QmFsYW5jZUluaXRBAgAAAAxBX2Fzc2V0X2luaXQAAAAAD2tleUJhbGFuY2VJbml0QgIAAAAMQl9hc3NldF9pbml0AAAAAA9rZXlTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2lkAAAAABNrZXlTaGFyZUFzc2V0U3VwcGx5AgAAABJzaGFyZV9hc3NldF9zdXBwbHkAAAAADWtleUNvbW1pc3Npb24CAAAACmNvbW1pc3Npb24AAAAAG2tleUNvbW1pc3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Nryxc=", "height": 1499657, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 8ZDxUfV6wzUP17Dj4hhoatCXJmR678Gbt1wbE2VvApUA 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 firstHarvest = "first_harvest" | |
33 | + | ||
34 | + | let kBasePeriod = "base_period" | |
35 | + | ||
36 | + | let kPeriodLength = "period_length" | |
37 | + | ||
38 | + | let kStartHeight = "start_height" | |
39 | + | ||
40 | + | let kFirstHarvestHeight = "first_harvest_height" | |
41 | + | ||
42 | + | let kDurationFullVotePower = "duration_full_vote_power" | |
43 | + | ||
44 | + | let kMinVotePower = "min_vote_power" | |
45 | + | ||
46 | + | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
47 | + | ||
48 | + | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
49 | + | ||
50 | + | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
51 | + | ||
52 | + | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
53 | + | ||
54 | + | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
55 | + | ||
56 | + | let governanceAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
57 | + | ||
58 | + | let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
59 | + | ||
60 | + | let stakingAddress = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
61 | + | ||
62 | + | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
63 | + | ||
64 | + | let stakingFeeInUSDN = (9 * value(value(assetInfo(USDN)).minSponsoredFee)) | |
65 | + | ||
66 | + | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
67 | + | ||
68 | + | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
69 | + | ||
70 | + | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
71 | + | ||
72 | + | let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower") | |
73 | + | ||
74 | + | let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower") | |
75 | + | ||
76 | + | let govAddr = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
77 | + | ||
78 | + | let currPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 2) | |
79 | + | ||
80 | + | let isActive = getBooleanValue(this, keyActive) | |
81 | + | ||
82 | + | let strAssetIdA = getStringValue(this, keyAssetIdA) | |
83 | + | ||
84 | + | let strAssetIdB = getStringValue(this, keyAssetIdB) | |
85 | + | ||
86 | + | let assetIdA = if ((strAssetIdA == "WAVES")) | |
87 | + | then unit | |
88 | + | else fromBase58String(strAssetIdA) | |
89 | + | ||
90 | + | let assetIdB = if ((strAssetIdB == "WAVES")) | |
91 | + | then unit | |
92 | + | else fromBase58String(strAssetIdB) | |
93 | + | ||
94 | + | let assetNameA = match assetIdA { | |
95 | + | case id: ByteVector => | |
96 | + | value(assetInfo(id)).name | |
97 | + | case waves: Unit => | |
98 | + | "WAVES" | |
99 | + | case _ => | |
100 | + | throw("Match error") | |
101 | + | } | |
102 | + | ||
103 | + | let assetNameB = match assetIdB { | |
104 | + | case id: ByteVector => | |
105 | + | value(assetInfo(id)).name | |
106 | + | case waves: Unit => | |
107 | + | "WAVES" | |
108 | + | case _ => | |
109 | + | throw("Match error") | |
110 | + | } | |
111 | + | ||
112 | + | let balanceA = getIntegerValue(this, keyBalanceA) | |
113 | + | ||
114 | + | let balanceB = getIntegerValue(this, keyBalanceB) | |
115 | + | ||
116 | + | let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId)) | |
117 | + | ||
118 | + | let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply) | |
119 | + | ||
120 | + | let commission = 3000 | |
121 | + | ||
122 | + | let commissionGovernance = 1200 | |
123 | + | ||
124 | + | let commissionScaleDelimiter = 1000000 | |
125 | + | ||
126 | + | let scaleValue3 = 1000 | |
127 | + | ||
128 | + | let scaleValue8 = 100000000 | |
129 | + | ||
130 | + | let slippageToleranceDelimiter = 1000 | |
131 | + | ||
132 | + | let scaleValue8Digits = 8 | |
133 | + | ||
134 | + | func accountBalance (assetId) = match assetId { | |
135 | + | case id: ByteVector => | |
136 | + | assetBalance(this, id) | |
137 | + | case waves: Unit => | |
138 | + | wavesBalance(this).available | |
139 | + | case _ => | |
140 | + | throw("Match error") | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | let stakedAmountUSDN = match getInteger(stakingAddress, ((("rpd_balance_" + toBase58String(USDN)) + "_") + toString(this))) { | |
145 | + | case staked: Int => | |
146 | + | staked | |
147 | + | case nothing: Unit => | |
148 | + | 0 | |
149 | + | case _ => | |
150 | + | throw("Match error") | |
151 | + | } | |
152 | + | ||
153 | + | let assetInitA = getIntegerValue(this, keyBalanceInitA) | |
154 | + | ||
155 | + | let assetInitB = getIntegerValue(this, keyBalanceInitB) | |
156 | + | ||
157 | + | let availableBalanceA = (balanceA - (if ((assetIdA == USDN)) | |
158 | + | then stakedAmountUSDN | |
159 | + | else 0)) | |
160 | + | ||
161 | + | let availableBalanceB = (balanceB - (if ((assetIdB == USDN)) | |
162 | + | then stakedAmountUSDN | |
163 | + | else 0)) | |
164 | + | ||
165 | + | let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == USDN)) | |
166 | + | then stakedAmountUSDN | |
167 | + | else 0)) | |
168 | + | ||
169 | + | let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == USDN)) | |
170 | + | then stakedAmountUSDN | |
171 | + | else 0)) | |
172 | + | ||
173 | + | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
174 | + | then (accountBalanceWithStakedB >= balanceB) | |
175 | + | else false | |
176 | + | ||
177 | + | func getAssetInfo (assetId) = match assetId { | |
178 | + | case id: ByteVector => | |
179 | + | let stringId = toBase58String(id) | |
180 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
181 | + | $Tuple3(stringId, info.name, info.decimals) | |
182 | + | case waves: Unit => | |
183 | + | $Tuple3("WAVES", "WAVES", 8) | |
184 | + | case _ => | |
185 | + | throw("Match error") | |
186 | + | } | |
187 | + | ||
188 | + | ||
189 | + | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
190 | + | then $Tuple3("WAVES", "WAVES", 8) | |
191 | + | else { | |
192 | + | let stringId = assetStr | |
193 | + | let id = fromBase58String(assetStr) | |
194 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
195 | + | $Tuple3(stringId, info.name, info.decimals) | |
196 | + | } | |
197 | + | ||
198 | + | ||
199 | + | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
200 | + | ||
201 | + | ||
202 | + | func deductStakingFee (amount,assetId) = if ((assetId == USDN)) | |
203 | + | then { | |
204 | + | let result = (amount - stakingFeeInUSDN) | |
205 | + | if ((0 >= result)) | |
206 | + | then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInUSDN)) + " USD-N")) | |
207 | + | else result | |
208 | + | } | |
209 | + | else amount | |
210 | + | ||
211 | + | ||
212 | + | 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")) | |
213 | + | ||
214 | + | ||
215 | + | 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")) | |
216 | + | ||
217 | + | ||
218 | + | @Callable(i) | |
219 | + | func init () = { | |
220 | + | let $t073057382 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
221 | + | let pmtAmountA = $t073057382._1 | |
222 | + | let pmtAssetIdA = $t073057382._2 | |
223 | + | let $t073877464 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
224 | + | let pmtAmountB = $t073877464._1 | |
225 | + | let pmtAssetIdB = $t073877464._2 | |
226 | + | let $t074697546 = getAssetInfo(pmtAssetIdA) | |
227 | + | let pmtStrAssetIdA = $t074697546._1 | |
228 | + | let pmtAssetNameA = $t074697546._2 | |
229 | + | let pmtDecimalsA = $t074697546._3 | |
230 | + | let $t075517628 = getAssetInfo(pmtAssetIdB) | |
231 | + | let pmtStrAssetIdB = $t075517628._1 | |
232 | + | let pmtAssetNameB = $t075517628._2 | |
233 | + | let pmtDecimalsB = $t075517628._3 | |
234 | + | if (isDefined(getBoolean(this, keyActive))) | |
235 | + | then throw("DApp is already active") | |
236 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
237 | + | then throw("Assets must be different") | |
238 | + | else { | |
239 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
240 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
241 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
242 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN)) | |
243 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
244 | + | let shareIssueId = calculateAssetId(shareIssue) | |
245 | + | [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)] | |
246 | + | } | |
247 | + | } | |
248 | + | ||
249 | + | ||
250 | + | ||
251 | + | @Callable(i) | |
252 | + | func initWithInitRatio (amtAssetA,amtAssetB,strAssetIdA,strAssetIdB) = { | |
253 | + | let $t094269513 = getAssetInfoFromString(strAssetIdA) | |
254 | + | let pmtStrAssetIdA = $t094269513._1 | |
255 | + | let pmtAssetNameA = $t094269513._2 | |
256 | + | let pmtDecimalsA = $t094269513._3 | |
257 | + | let $t095189605 = getAssetInfoFromString(strAssetIdB) | |
258 | + | let pmtStrAssetIdB = $t095189605._1 | |
259 | + | let pmtAssetNameB = $t095189605._2 | |
260 | + | let pmtDecimalsB = $t095189605._3 | |
261 | + | if (isDefined(getBoolean(this, keyActive))) | |
262 | + | then throw("DApp is already active") | |
263 | + | else if ((strAssetIdA == strAssetIdB)) | |
264 | + | then throw("Assets must be different") | |
265 | + | else { | |
266 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
267 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
268 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
269 | + | let shareInitialSupply = 0 | |
270 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
271 | + | let shareIssueId = calculateAssetId(shareIssue) | |
272 | + | [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), BooleanEntry(firstHarvest, 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(kFirstHarvestHeight, currPeriod), IntegerEntry(keyShareAssetSupply, shareInitialSupply), IntegerEntry(keyBalanceA, 0), IntegerEntry(keyBalanceB, 0)] | |
273 | + | } | |
274 | + | } | |
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | @Callable(i) | |
279 | + | func replenishWithTwoTokens (slippageTolerance) = { | |
280 | + | let pmtAssetIdA = i.payments[0].assetId | |
281 | + | let pmtAssetIdB = i.payments[1].assetId | |
282 | + | let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA) | |
283 | + | let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB) | |
284 | + | if (if ((balanceA == 0)) | |
285 | + | then (balanceB == 0) | |
286 | + | else false) | |
287 | + | then { | |
288 | + | let $t01153111608 = getAssetInfo(pmtAssetIdA) | |
289 | + | let pmtStrAssetIdA = $t01153111608._1 | |
290 | + | let pmtAssetNameA = $t01153111608._2 | |
291 | + | let pmtDecimalsA = $t01153111608._3 | |
292 | + | let $t01161711694 = getAssetInfo(pmtAssetIdB) | |
293 | + | let pmtStrAssetIdB = $t01161711694._1 | |
294 | + | let pmtAssetNameB = $t01161711694._2 | |
295 | + | let pmtDecimalsB = $t01161711694._3 | |
296 | + | if (isDefined(getBoolean(this, keyActive))) | |
297 | + | then throw("DApp is already active") | |
298 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
299 | + | then throw("Assets must be different") | |
300 | + | else { | |
301 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
302 | + | let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN)) | |
303 | + | let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB)) | |
304 | + | if (!(isActive)) | |
305 | + | then throw("DApp is inactive at this moment") | |
306 | + | else if (if ((0 > slippageTolerance)) | |
307 | + | then true | |
308 | + | else (slippageTolerance > slippageToleranceDelimiter)) | |
309 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
310 | + | else if ((size(i.payments) != 2)) | |
311 | + | then throw("Two attached assets expected") | |
312 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
313 | + | then true | |
314 | + | else (pmtAssetIdB != assetIdB)) | |
315 | + | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
316 | + | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
317 | + | then true | |
318 | + | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
319 | + | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
320 | + | else if ((shareInitialSupply == 0)) | |
321 | + | then throw("Too small amount to replenish") | |
322 | + | else if (!(hasEnoughBalance)) | |
323 | + | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
324 | + | else [Reissue(shareAssetId, shareInitialSupply, true), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareAssetId)] | |
325 | + | } | |
326 | + | } | |
327 | + | else { | |
328 | + | let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB)) | |
329 | + | let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA) | |
330 | + | let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB) | |
331 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8) | |
332 | + | if (!(isActive)) | |
333 | + | then throw("DApp is inactive at this moment") | |
334 | + | else if (if ((0 > slippageTolerance)) | |
335 | + | then true | |
336 | + | else (slippageTolerance > slippageToleranceDelimiter)) | |
337 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
338 | + | else if ((size(i.payments) != 2)) | |
339 | + | then throw("Two attached assets expected") | |
340 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
341 | + | then true | |
342 | + | else (pmtAssetIdB != assetIdB)) | |
343 | + | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
344 | + | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
345 | + | then true | |
346 | + | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
347 | + | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
348 | + | else if ((shareTokenToPayAmount == 0)) | |
349 | + | then throw("Too small amount to replenish") | |
350 | + | else if (!(hasEnoughBalance)) | |
351 | + | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
352 | + | else [IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
353 | + | } | |
354 | + | } | |
355 | + | ||
356 | + | ||
357 | + | ||
358 | + | @Callable(i) | |
359 | + | func withdraw () = { | |
360 | + | let $t01650116651 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
361 | + | let pmtAmount = $t01650116651._1 | |
362 | + | let pmtAssetId = $t01650116651._2 | |
363 | + | let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA) | |
364 | + | let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB) | |
365 | + | if (!(isActive)) | |
366 | + | then throw("DApp is inactive at this moment") | |
367 | + | else if ((size(i.payments) != 1)) | |
368 | + | then throw("One attached payment expected") | |
369 | + | else if ((pmtAssetId != shareAssetId)) | |
370 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
371 | + | else if (!(hasEnoughBalance)) | |
372 | + | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
373 | + | else if (if ((amountToPayA > availableBalanceA)) | |
374 | + | then true | |
375 | + | else (amountToPayB > availableBalanceB)) | |
376 | + | then throwInsufficientAvailableBalances(amountToPayA, amountToPayB) | |
377 | + | 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)] | |
378 | + | } | |
379 | + | ||
380 | + | ||
381 | + | ||
382 | + | @Callable(i) | |
383 | + | func exchange (minAmountToReceive) = { | |
384 | + | let $t01804118116 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
385 | + | let pmtAmount = $t01804118116._1 | |
386 | + | let pmtAssetId = $t01804118116._2 | |
387 | + | func calculateFees (tokenFrom,tokenTo) = { | |
388 | + | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
389 | + | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
390 | + | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
391 | + | if ((minAmountToReceive > amountWithFee)) | |
392 | + | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
393 | + | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
394 | + | } | |
395 | + | ||
396 | + | if (!(isActive)) | |
397 | + | then throw("DApp is inactive at this moment") | |
398 | + | else if (if ((balanceA == 0)) | |
399 | + | then (balanceB == 0) | |
400 | + | else false) | |
401 | + | then throw("Can't exchange with zero balance") | |
402 | + | else if ((0 >= minAmountToReceive)) | |
403 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
404 | + | else if ((size(i.payments) != 1)) | |
405 | + | then throw("One attached payment expected") | |
406 | + | else if (!(hasEnoughBalance)) | |
407 | + | then suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB)) | |
408 | + | else if ((pmtAssetId == assetIdA)) | |
409 | + | then { | |
410 | + | let assetIdSend = assetIdB | |
411 | + | let $t01957519666 = calculateFees(balanceA, balanceB) | |
412 | + | let amountWithoutFee = $t01957519666._1 | |
413 | + | let amountWithFee = $t01957519666._2 | |
414 | + | let governanceReward = $t01957519666._3 | |
415 | + | let newBalanceA = (balanceA + pmtAmount) | |
416 | + | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
417 | + | if (if (if ((assetIdA == USDN)) | |
418 | + | then (stakedAmountUSDN >= newBalanceA) | |
419 | + | else false) | |
420 | + | then true | |
421 | + | else if ((assetIdB == USDN)) | |
422 | + | then (stakedAmountUSDN >= newBalanceB) | |
423 | + | else false) | |
424 | + | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB) | |
425 | + | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)] | |
426 | + | } | |
427 | + | else if ((pmtAssetId == assetIdB)) | |
428 | + | then { | |
429 | + | let assetIdSend = assetIdA | |
430 | + | let $t02053920630 = calculateFees(balanceB, balanceA) | |
431 | + | let amountWithoutFee = $t02053920630._1 | |
432 | + | let amountWithFee = $t02053920630._2 | |
433 | + | let governanceReward = $t02053920630._3 | |
434 | + | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
435 | + | let newBalanceB = (balanceB + pmtAmount) | |
436 | + | if (if (if ((assetIdA == USDN)) | |
437 | + | then (stakedAmountUSDN >= newBalanceA) | |
438 | + | else false) | |
439 | + | then true | |
440 | + | else if ((assetIdB == USDN)) | |
441 | + | then (stakedAmountUSDN >= newBalanceB) | |
442 | + | else false) | |
443 | + | then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA) | |
444 | + | else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(governanceAddress, governanceReward, assetIdSend)] | |
445 | + | } | |
446 | + | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
447 | + | } | |
448 | + | ||
449 | + | ||
450 | + | ||
451 | + | @Callable(i) | |
452 | + | func shutdown () = if (!(isActive)) | |
453 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
454 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
455 | + | then throw("Only admin can call this function") | |
456 | + | else suspend("Paused by admin") | |
457 | + | ||
458 | + | ||
459 | + | ||
460 | + | @Callable(i) | |
461 | + | func activate () = if (isActive) | |
462 | + | then throw("DApp is already active") | |
463 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
464 | + | then throw("Only admin can call this function") | |
465 | + | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
466 | + | ||
467 | + | ||
468 | + | ||
469 | + | @Callable(i) | |
470 | + | func takeIntoAccountExtraFunds (amountLeave) = { | |
471 | + | let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA) | |
472 | + | let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB) | |
473 | + | let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == USDN)) | |
474 | + | then amountLeave | |
475 | + | else 0)) | |
476 | + | let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == USDN)) | |
477 | + | then amountLeave | |
478 | + | else 0)) | |
479 | + | if (!(isActive)) | |
480 | + | then throw("DApp is inactive at this moment") | |
481 | + | else if ((i.caller != this)) | |
482 | + | then throw("Only the DApp itself can call this function") | |
483 | + | else if ((0 > amountLeave)) | |
484 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave))) | |
485 | + | else if (if ((0 > uncountableAmountEnrollAssetA)) | |
486 | + | then true | |
487 | + | else (0 > uncountableAmountEnrollAssetB)) | |
488 | + | then suspend("Enroll amount negative") | |
489 | + | else if (if ((0 > amountEnrollA)) | |
490 | + | then true | |
491 | + | else (0 > amountEnrollB)) | |
492 | + | then throw("Too large amountLeave") | |
493 | + | else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
494 | + | } | |
495 | + | ||
496 | + | ||
497 | + | @Verifier(tx) | |
498 | + | func verify () = match tx { | |
499 | + | case invoke: InvokeScriptTransaction => | |
500 | + | let callTakeIntoAccount = if ((invoke.dApp == this)) | |
501 | + | then (invoke.function == "takeIntoAccountExtraFunds") | |
502 | + | else false | |
503 | + | let callStaking = if ((invoke.dApp == stakingAddress)) | |
504 | + | then if (if (if ((invoke.function == "lockNeutrino")) | |
505 | + | then (size(invoke.payments) == 1) | |
506 | + | else false) | |
507 | + | then (invoke.payments[0].assetId == USDN) | |
508 | + | else false) | |
509 | + | then true | |
510 | + | else if ((invoke.function == "unlockNeutrino")) | |
511 | + | then (size(invoke.payments) == 0) | |
512 | + | else false | |
513 | + | else false | |
514 | + | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
515 | + | then true | |
516 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
517 | + | then true | |
518 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
519 | + | then true | |
520 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
521 | + | if (callTakeIntoAccount) | |
522 | + | then true | |
523 | + | else callStaking | |
524 | + | case _ => | |
525 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
526 | + | } | |
527 | + |
github/deemru/w8io/026f985 52.13 ms ◑