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