tx · CRgXTYVzaYMVixPqvu84xVeu8J2WxdXAGaboEvpRTqQs 3N6niAdk9Crd8a9vmPpP3NPSaFhFnifJDHH: -0.01000000 Waves 2022.03.29 17:07 [1985313] smart account 3N6niAdk9Crd8a9vmPpP3NPSaFhFnifJDHH > SELF 0.00000000 Waves
{ "type": 13, "id": "CRgXTYVzaYMVixPqvu84xVeu8J2WxdXAGaboEvpRTqQs", "fee": 1000000, "feeAssetId": null, "timestamp": 1648562837821, "version": 2, "chainId": 84, "sender": "3N6niAdk9Crd8a9vmPpP3NPSaFhFnifJDHH", "senderPublicKey": "4Y2j7j36bbSpVNivRG9YnbmgvEju8M3JrFsUhk2vMWdi", "proofs": [ "66tEwLDTVvyKAJzYahRq3aKAPDE7PdCars3rWLfFcRSoEAWUrFykKDVbSAPtDNMK524Dxso1M5ews1uV2cfueg3F" ], "script": "base64:AAIFAAAAAAAAADAIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgASBQoDBAEIEgAAAABWAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAC2tleUFzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAtrZXlBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAALa2V5QmFsYW5jZUECAAAAD0FfYXNzZXRfYmFsYW5jZQAAAAALa2V5QmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAAPa2V5QmFsYW5jZUluaXRBAgAAAAxBX2Fzc2V0X2luaXQAAAAAD2tleUJhbGFuY2VJbml0QgIAAAAMQl9hc3NldF9pbml0AAAAAA9rZXlTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2lkAAAAABNrZXlTaGFyZUFzc2V0U3VwcGx5AgAAABJzaGFyZV9hc3NldF9zdXBwbHkAAAAADWtleUNvbW1pc3Npb24CAA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zAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTMGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAASYWRtaW5QdWJLZXlTdGFraW5nAwMDBQAAABNjYWxsVGFrZUludG9BY2NvdW50BgUAAAAPZXhjaGFuZ2VUb1dhdmVzBQAAAA1zaWduZWRCeUFkbWluBwYFAAAAE211bHRpU2lnbmVkQnlBZG1pbnMFAAAAE211bHRpU2lnbmVkQnlBZG1pbnMQGb+w", "height": 1985313, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 7xoHNgrj1RJf62vf6kYsDGcHc8dwP9iJftRnL4kWpaeb Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
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 keyFirstHarvestHeight = "first_harvest_height" | |
35 | + | ||
36 | + | let kShareLimit = "share_limit_on_first_harvest" | |
37 | + | ||
38 | + | let kBasePeriod = "base_period" | |
39 | + | ||
40 | + | let kPeriodLength = "period_length" | |
41 | + | ||
42 | + | let kStartHeight = "start_height" | |
43 | + | ||
44 | + | let kFirstHarvestHeight = "first_harvest_height" | |
45 | + | ||
46 | + | let keyUSDNNSBTAddress = "staking_usdnnsbt_address" | |
47 | + | ||
48 | + | let keyEURNAddress = "staking_eurn_address" | |
49 | + | ||
50 | + | let keyLeasingPool = "leasing_address" | |
51 | + | ||
52 | + | let keyLeasingAmount = "leasing_amount" | |
53 | + | ||
54 | + | let keyLeasingId = "leasing_id" | |
55 | + | ||
56 | + | let keyAdminPubKey1 = "admin_pub_1" | |
57 | + | ||
58 | + | let keyAdminPubKey2 = "admin_pub_2" | |
59 | + | ||
60 | + | let keyAdminPubKey3 = "admin_pub_3" | |
61 | + | ||
62 | + | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
63 | + | ||
64 | + | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
65 | + | case string: String => | |
66 | + | fromBase58String(string) | |
67 | + | case nothing => | |
68 | + | throw("Admin public key is empty") | |
69 | + | } | |
70 | + | ||
71 | + | ||
72 | + | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
73 | + | ||
74 | + | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
75 | + | ||
76 | + | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
77 | + | ||
78 | + | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
79 | + | ||
80 | + | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
81 | + | ||
82 | + | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
83 | + | ||
84 | + | let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
85 | + | ||
86 | + | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
87 | + | ||
88 | + | let SWOP = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
89 | + | ||
90 | + | let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
91 | + | ||
92 | + | let stakingAssets = ["WAVES", toBase58String(USDN), toBase58String(EURN)] | |
93 | + | ||
94 | + | let stakingUSDNAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyUSDNNSBTAddress), "no usdn staking address"))) | |
95 | + | ||
96 | + | let stakingEURNAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyEURNAddress), "no eurn staking address"))) | |
97 | + | ||
98 | + | let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
99 | + | ||
100 | + | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
101 | + | ||
102 | + | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
103 | + | ||
104 | + | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
105 | + | ||
106 | + | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
107 | + | ||
108 | + | let active = getBooleanValue(this, keyActive) | |
109 | + | ||
110 | + | let strAssetIdA = getStringValue(this, keyAssetIdA) | |
111 | + | ||
112 | + | let strAssetIdB = getStringValue(this, keyAssetIdB) | |
113 | + | ||
114 | + | let assetIdA = if ((strAssetIdA == "WAVES")) | |
115 | + | then unit | |
116 | + | else fromBase58String(strAssetIdA) | |
117 | + | ||
118 | + | let assetIdB = if ((strAssetIdB == "WAVES")) | |
119 | + | then unit | |
120 | + | else fromBase58String(strAssetIdB) | |
121 | + | ||
122 | + | let assetNameA = match assetIdA { | |
123 | + | case id: ByteVector => | |
124 | + | value(assetInfo(id)).name | |
125 | + | case waves: Unit => | |
126 | + | "WAVES" | |
127 | + | case _ => | |
128 | + | throw("Match error") | |
129 | + | } | |
130 | + | ||
131 | + | let assetNameB = match assetIdB { | |
132 | + | case id: ByteVector => | |
133 | + | value(assetInfo(id)).name | |
134 | + | case waves: Unit => | |
135 | + | "WAVES" | |
136 | + | case _ => | |
137 | + | throw("Match error") | |
138 | + | } | |
139 | + | ||
140 | + | let balanceA = getIntegerValue(this, keyBalanceA) | |
141 | + | ||
142 | + | let balanceB = getIntegerValue(this, keyBalanceB) | |
143 | + | ||
144 | + | let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId)) | |
145 | + | ||
146 | + | let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply) | |
147 | + | ||
148 | + | let commission = 3000 | |
149 | + | ||
150 | + | let commissionGovernance = 1200 | |
151 | + | ||
152 | + | let commissionScaleDelimiter = 1000000 | |
153 | + | ||
154 | + | let scaleValue3 = 1000 | |
155 | + | ||
156 | + | let scaleValue8 = 100000000 | |
157 | + | ||
158 | + | let slippageToleranceDelimiter = 1000 | |
159 | + | ||
160 | + | let scaleValue8Digits = 8 | |
161 | + | ||
162 | + | func accountBalance (assetId) = match assetId { | |
163 | + | case id: ByteVector => | |
164 | + | assetBalance(this, id) | |
165 | + | case waves: Unit => | |
166 | + | wavesBalance(this).available | |
167 | + | case _ => | |
168 | + | throw("Match error") | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | func stakedAmount (assetId) = { | |
173 | + | let stakedAmountCalculated = match assetId { | |
174 | + | case aId: ByteVector => | |
175 | + | if ((aId == USDN)) | |
176 | + | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
177 | + | else if ((aId == EURN)) | |
178 | + | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this))) | |
179 | + | else 0 | |
180 | + | case _: Unit => | |
181 | + | valueOrElse(getInteger(this, keyLeasingAmount), 0) | |
182 | + | case _ => | |
183 | + | throw("Match error") | |
184 | + | } | |
185 | + | match stakedAmountCalculated { | |
186 | + | case i: Int => | |
187 | + | i | |
188 | + | case _ => | |
189 | + | 0 | |
190 | + | } | |
191 | + | } | |
192 | + | ||
193 | + | ||
194 | + | let stakedAmountA = stakedAmount(assetIdA) | |
195 | + | ||
196 | + | let stakedAmountB = stakedAmount(assetIdB) | |
197 | + | ||
198 | + | let assetInitA = getIntegerValue(this, keyBalanceInitA) | |
199 | + | ||
200 | + | let assetInitB = getIntegerValue(this, keyBalanceInitB) | |
201 | + | ||
202 | + | let availableBalanceA = (balanceA - stakedAmountA) | |
203 | + | ||
204 | + | let availableBalanceB = (balanceB - stakedAmountB) | |
205 | + | ||
206 | + | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
207 | + | ||
208 | + | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
209 | + | ||
210 | + | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
211 | + | then (accountBalanceWithStakedB >= balanceB) | |
212 | + | else false | |
213 | + | ||
214 | + | func getAssetInfo (assetId) = match assetId { | |
215 | + | case id: ByteVector => | |
216 | + | let stringId = toBase58String(id) | |
217 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
218 | + | $Tuple3(stringId, info.name, info.decimals) | |
219 | + | case waves: Unit => | |
220 | + | $Tuple3("WAVES", "WAVES", 8) | |
221 | + | case _ => | |
222 | + | throw("Match error") | |
223 | + | } | |
224 | + | ||
225 | + | ||
226 | + | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
227 | + | then $Tuple3("WAVES", "WAVES", 8) | |
228 | + | else { | |
229 | + | let stringId = assetStr | |
230 | + | let id = fromBase58String(assetStr) | |
231 | + | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
232 | + | $Tuple3(stringId, info.name, info.decimals) | |
233 | + | } | |
234 | + | ||
235 | + | ||
236 | + | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
237 | + | ||
238 | + | ||
239 | + | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
240 | + | then if ((assetId == USDN)) | |
241 | + | then $Tuple2("lockNeutrino", stakingUSDNAddress) | |
242 | + | else $Tuple2("startStaking", stakingEURNAddress) | |
243 | + | else if ((assetId == USDN)) | |
244 | + | then $Tuple2("unlockNeutrino", stakingUSDNAddress) | |
245 | + | else $Tuple2("stopStaking", stakingEURNAddress) | |
246 | + | ||
247 | + | ||
248 | + | func calcStakingParams (stake,amount,assetId) = if (stake) | |
249 | + | then { | |
250 | + | let $t065746640 = calcStakingFuncAndAddres(stake, assetId) | |
251 | + | let call = $t065746640._1 | |
252 | + | let stakingAddr = $t065746640._2 | |
253 | + | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
254 | + | } | |
255 | + | else { | |
256 | + | let $t067266792 = calcStakingFuncAndAddres(stake, assetId) | |
257 | + | let call = $t067266792._1 | |
258 | + | let stakingAddr = $t067266792._2 | |
259 | + | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
260 | + | } | |
261 | + | ||
262 | + | ||
263 | + | func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo) = { | |
264 | + | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
265 | + | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
266 | + | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
267 | + | if ((minAmountToReceive > amountWithFee)) | |
268 | + | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
269 | + | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
270 | + | } | |
271 | + | ||
272 | + | ||
273 | + | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB)) | |
274 | + | ||
275 | + | ||
276 | + | func isActive () = if (active) | |
277 | + | then unit | |
278 | + | else throw("DApp is inactive at this moment") | |
279 | + | ||
280 | + | ||
281 | + | @Callable(i) | |
282 | + | func init (firstHarvest) = { | |
283 | + | let $t079628039 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
284 | + | let pmtAmountA = $t079628039._1 | |
285 | + | let pmtAssetIdA = $t079628039._2 | |
286 | + | let $t080448121 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
287 | + | let pmtAmountB = $t080448121._1 | |
288 | + | let pmtAssetIdB = $t080448121._2 | |
289 | + | let $t081268203 = getAssetInfo(pmtAssetIdA) | |
290 | + | let pmtStrAssetIdA = $t081268203._1 | |
291 | + | let pmtAssetNameA = $t081268203._2 | |
292 | + | let pmtDecimalsA = $t081268203._3 | |
293 | + | let $t082088285 = getAssetInfo(pmtAssetIdB) | |
294 | + | let pmtStrAssetIdB = $t082088285._1 | |
295 | + | let pmtAssetNameB = $t082088285._2 | |
296 | + | let pmtDecimalsB = $t082088285._3 | |
297 | + | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
298 | + | then throw("Only admin can call this function") | |
299 | + | else if (isDefined(getBoolean(this, keyActive))) | |
300 | + | then throw("DApp is already active") | |
301 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
302 | + | then throw("Assets must be different") | |
303 | + | else { | |
304 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
305 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
306 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
307 | + | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
308 | + | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
309 | + | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
310 | + | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
311 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
312 | + | let shareIssueId = calculateAssetId(shareIssue) | |
313 | + | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
314 | + | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
315 | + | else 0 | |
316 | + | if ((stake1 == stake1)) | |
317 | + | then { | |
318 | + | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
319 | + | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
320 | + | else 0 | |
321 | + | if ((stake2 == stake2)) | |
322 | + | then { | |
323 | + | 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)] | |
324 | + | if (firstHarvest) | |
325 | + | then (baseEntry ++ [BooleanEntry(keyFirstHarvest, firstHarvest), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]) | |
326 | + | else baseEntry | |
327 | + | } | |
328 | + | else throw("Strict value is not equal to itself.") | |
329 | + | } | |
330 | + | else throw("Strict value is not equal to itself.") | |
331 | + | } | |
332 | + | } | |
333 | + | ||
334 | + | ||
335 | + | ||
336 | + | @Callable(i) | |
337 | + | func initWithInitRatio (amtAssetA,amtAssetB,strAssetIdA,strAssetIdB,firstHarvest) = { | |
338 | + | let $t01087410961 = getAssetInfoFromString(strAssetIdA) | |
339 | + | let pmtStrAssetIdA = $t01087410961._1 | |
340 | + | let pmtAssetNameA = $t01087410961._2 | |
341 | + | let pmtDecimalsA = $t01087410961._3 | |
342 | + | let $t01096611053 = getAssetInfoFromString(strAssetIdB) | |
343 | + | let pmtStrAssetIdB = $t01096611053._1 | |
344 | + | let pmtAssetNameB = $t01096611053._2 | |
345 | + | let pmtDecimalsB = $t01096611053._3 | |
346 | + | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
347 | + | then throw("Only admin can call this function") | |
348 | + | else if (isDefined(getBoolean(this, keyActive))) | |
349 | + | then throw("DApp is already active") | |
350 | + | else if ((strAssetIdA == strAssetIdB)) | |
351 | + | then throw("Assets must be different") | |
352 | + | else { | |
353 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
354 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
355 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
356 | + | let shareInitialSupply = 0 | |
357 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
358 | + | let shareIssueId = calculateAssetId(shareIssue) | |
359 | + | 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(keyShareAssetSupply, shareInitialSupply)] | |
360 | + | if (firstHarvest) | |
361 | + | then (baseEntry ++ [BooleanEntry(keyFirstHarvest, firstHarvest), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]) | |
362 | + | else baseEntry | |
363 | + | } | |
364 | + | } | |
365 | + | ||
366 | + | ||
367 | + | ||
368 | + | @Callable(i) | |
369 | + | func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
370 | + | then throw("Only admin can call this function") | |
371 | + | else [IntegerEntry(kShareLimit, shareLimit)]) | |
372 | + | ||
373 | + | ||
374 | + | ||
375 | + | @Callable(i) | |
376 | + | func replenishWithTwoTokens (slippageTolerance) = valueOrElse(isActive(), { | |
377 | + | let pmtAssetIdA = i.payments[0].assetId | |
378 | + | let pmtAssetIdB = i.payments[1].assetId | |
379 | + | let pmtAmountA = i.payments[0].amount | |
380 | + | let pmtAmountB = i.payments[1].amount | |
381 | + | let $t01352113598 = getAssetInfo(pmtAssetIdA) | |
382 | + | let pmtStrAssetIdA = $t01352113598._1 | |
383 | + | let pmtAssetNameA = $t01352113598._2 | |
384 | + | let pmtDecimalsA = $t01352113598._3 | |
385 | + | let $t01360313680 = getAssetInfo(pmtAssetIdB) | |
386 | + | let pmtStrAssetIdB = $t01360313680._1 | |
387 | + | let pmtAssetNameB = $t01360313680._2 | |
388 | + | let pmtDecimalsB = $t01360313680._3 | |
389 | + | let inital = if (if ((balanceA == 0)) | |
390 | + | then (balanceB == 0) | |
391 | + | else false) | |
392 | + | then true | |
393 | + | else false | |
394 | + | let tokenRatio = if (inital) | |
395 | + | then fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB)) | |
396 | + | else fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB)) | |
397 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
398 | + | let shareTokenToPayAmount = if (inital) | |
399 | + | then fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
400 | + | else fraction(min([fraction(pmtAmountA, scaleValue8, balanceA), fraction(pmtAmountB, scaleValue8, balanceB)]), shareAssetSupply, scaleValue8) | |
401 | + | if (if ((0 > slippageTolerance)) | |
402 | + | then true | |
403 | + | else (slippageTolerance > slippageToleranceDelimiter)) | |
404 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
405 | + | else if ((size(i.payments) != 2)) | |
406 | + | then throw("Two attached assets expected") | |
407 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
408 | + | then true | |
409 | + | else (pmtAssetIdB != assetIdB)) | |
410 | + | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
411 | + | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
412 | + | then true | |
413 | + | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
414 | + | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
415 | + | else if ((shareTokenToPayAmount == 0)) | |
416 | + | then throw("Too small amount to replenish") | |
417 | + | else if (!(hasEnoughBalance)) | |
418 | + | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
419 | + | else { | |
420 | + | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
421 | + | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
422 | + | else 0 | |
423 | + | if ((stake1 == stake1)) | |
424 | + | then { | |
425 | + | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
426 | + | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
427 | + | else 0 | |
428 | + | if ((stake2 == stake2)) | |
429 | + | then [Reissue(shareAssetId, shareTokenToPayAmount, true), IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
430 | + | else throw("Strict value is not equal to itself.") | |
431 | + | } | |
432 | + | else throw("Strict value is not equal to itself.") | |
433 | + | } | |
434 | + | }) | |
435 | + | ||
436 | + | ||
437 | + | ||
438 | + | @Callable(i) | |
439 | + | func withdraw () = valueOrElse(isActive(), { | |
440 | + | let $t01648616561 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
441 | + | let pmtAmount = $t01648616561._1 | |
442 | + | let pmtAssetId = $t01648616561._2 | |
443 | + | let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply) | |
444 | + | let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply) | |
445 | + | if ((size(i.payments) != 1)) | |
446 | + | then throw("One attached payment expected") | |
447 | + | else if ((pmtAssetId != shareAssetId)) | |
448 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
449 | + | else if (!(hasEnoughBalance)) | |
450 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
451 | + | else { | |
452 | + | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
453 | + | then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
454 | + | else 0 | |
455 | + | if ((stake1 == stake1)) | |
456 | + | then { | |
457 | + | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
458 | + | then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
459 | + | else 0 | |
460 | + | if ((stake2 == stake2)) | |
461 | + | then [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)] | |
462 | + | else throw("Strict value is not equal to itself.") | |
463 | + | } | |
464 | + | else throw("Strict value is not equal to itself.") | |
465 | + | } | |
466 | + | }) | |
467 | + | ||
468 | + | ||
469 | + | ||
470 | + | @Callable(i) | |
471 | + | func exchange (minAmountToReceive) = valueOrElse(isActive(), { | |
472 | + | let $t01786617941 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
473 | + | let pmtAmount = $t01786617941._1 | |
474 | + | let pmtAssetId = $t01786617941._2 | |
475 | + | if (if ((balanceA == 0)) | |
476 | + | then true | |
477 | + | else (balanceB == 0)) | |
478 | + | then throw("Can't exchange with zero balance") | |
479 | + | else if ((0 >= minAmountToReceive)) | |
480 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
481 | + | else if ((size(i.payments) != 1)) | |
482 | + | then throw("One attached payment expected") | |
483 | + | else if (!(hasEnoughBalance)) | |
484 | + | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
485 | + | else if ((pmtAssetId == assetIdA)) | |
486 | + | then { | |
487 | + | let assetIdSend = assetIdB | |
488 | + | let $t01849218614 = calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB) | |
489 | + | let amountWithoutFee = $t01849218614._1 | |
490 | + | let amountWithFee = $t01849218614._2 | |
491 | + | let governanceReward = $t01849218614._3 | |
492 | + | let newBalanceA = (balanceA + pmtAmount) | |
493 | + | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
494 | + | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
495 | + | then invoke(this, "stakeUnstake", [true, pmtAmount, strAssetIdA], nil) | |
496 | + | else 0 | |
497 | + | if ((stake1 == stake1)) | |
498 | + | then { | |
499 | + | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
500 | + | then invoke(this, "stakeUnstake", [false, (amountWithFee + governanceReward), strAssetIdB], nil) | |
501 | + | else 0 | |
502 | + | if ((stake2 == stake2)) | |
503 | + | then [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
504 | + | else throw("Strict value is not equal to itself.") | |
505 | + | } | |
506 | + | else throw("Strict value is not equal to itself.") | |
507 | + | } | |
508 | + | else if ((pmtAssetId == assetIdB)) | |
509 | + | then { | |
510 | + | let assetIdSend = assetIdA | |
511 | + | let $t01956919691 = calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA) | |
512 | + | let amountWithoutFee = $t01956919691._1 | |
513 | + | let amountWithFee = $t01956919691._2 | |
514 | + | let governanceReward = $t01956919691._3 | |
515 | + | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
516 | + | let newBalanceB = (balanceB + pmtAmount) | |
517 | + | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
518 | + | then invoke(this, "stakeUnstake", [false, (amountWithFee + governanceReward), strAssetIdA], nil) | |
519 | + | else 0 | |
520 | + | if ((stake1 == stake1)) | |
521 | + | then { | |
522 | + | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
523 | + | then invoke(this, "stakeUnstake", [true, pmtAmount, strAssetIdB], nil) | |
524 | + | else 0 | |
525 | + | if ((stake2 == stake2)) | |
526 | + | then [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
527 | + | else throw("Strict value is not equal to itself.") | |
528 | + | } | |
529 | + | else throw("Strict value is not equal to itself.") | |
530 | + | } | |
531 | + | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
532 | + | }) | |
533 | + | ||
534 | + | ||
535 | + | ||
536 | + | @Callable(i) | |
537 | + | func shutdown () = if (!(active)) | |
538 | + | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
539 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
540 | + | then throw("Only admin can call this function") | |
541 | + | else suspend("Paused by admin") | |
542 | + | ||
543 | + | ||
544 | + | ||
545 | + | @Callable(i) | |
546 | + | func activate () = if (active) | |
547 | + | then throw("DApp is already active") | |
548 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
549 | + | then throw("Only admin can call this function") | |
550 | + | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
551 | + | ||
552 | + | ||
553 | + | ||
554 | + | @Callable(i) | |
555 | + | func takeIntoAccountExtraFunds () = valueOrElse(isActive(), { | |
556 | + | let amountEnrollA = (accountBalanceWithStakedA - balanceA) | |
557 | + | let amountEnrollB = (accountBalanceWithStakedB - balanceB) | |
558 | + | if ((i.caller != walletAddress)) | |
559 | + | then throw("Only the wallet can call this function") | |
560 | + | else if (if ((0 > amountEnrollA)) | |
561 | + | then true | |
562 | + | else (0 > amountEnrollB)) | |
563 | + | then suspend("Enroll amount negative") | |
564 | + | else if (if ((amountEnrollA == 0)) | |
565 | + | then (amountEnrollB == 0) | |
566 | + | else false) | |
567 | + | then throw("No money to take") | |
568 | + | else { | |
569 | + | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
570 | + | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
571 | + | else 0 | |
572 | + | if ((stake1 == stake1)) | |
573 | + | then { | |
574 | + | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
575 | + | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
576 | + | else 0 | |
577 | + | if ((stake2 == stake2)) | |
578 | + | then [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
579 | + | else throw("Strict value is not equal to itself.") | |
580 | + | } | |
581 | + | else throw("Strict value is not equal to itself.") | |
582 | + | } | |
583 | + | }) | |
584 | + | ||
585 | + | ||
586 | + | ||
587 | + | @Callable(i) | |
588 | + | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
589 | + | then throw("Only contract itself can invoke this function") | |
590 | + | else if ((assetIdString == "WAVES")) | |
591 | + | then { | |
592 | + | let pool = addressFromStringValue(valueOrErrorMessage(getString(oracle, keyLeasingPool), "No leasing pool in oracle")) | |
593 | + | let leasingId = getBinary(this, keyLeasingId) | |
594 | + | let leasingAmount = valueOrElse(getInteger(this, keyLeasingAmount), 0) | |
595 | + | let newLeaseAmount = if (stake) | |
596 | + | then (leasingAmount + amount) | |
597 | + | else (leasingAmount - amount) | |
598 | + | let newLease = Lease(pool, newLeaseAmount) | |
599 | + | let newLeaseId = calculateLeaseId(newLease) | |
600 | + | let baseEtry = [newLease, BinaryEntry(keyLeasingId, newLeaseId), IntegerEntry(keyLeasingAmount, newLeaseAmount)] | |
601 | + | match leasingId { | |
602 | + | case lId: ByteVector => | |
603 | + | ([LeaseCancel(lId)] ++ baseEtry) | |
604 | + | case _ => | |
605 | + | baseEtry | |
606 | + | } | |
607 | + | } | |
608 | + | else { | |
609 | + | let $t02342423527 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
610 | + | let call = $t02342423527._1 | |
611 | + | let addr = $t02342423527._2 | |
612 | + | let params = $t02342423527._3 | |
613 | + | let payments = $t02342423527._4 | |
614 | + | let inv = invoke(addr, call, params, payments) | |
615 | + | if ((inv == inv)) | |
616 | + | then nil | |
617 | + | else throw("Strict value is not equal to itself.") | |
618 | + | } | |
619 | + | ||
620 | + | ||
621 | + | ||
622 | + | @Callable(i) | |
623 | + | func stakeAll () = valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
624 | + | then throw("Only admin can call this function") | |
625 | + | else { | |
626 | + | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
627 | + | then { | |
628 | + | let amountA = (balanceA - stakedAmountA) | |
629 | + | if ((amountA > 0)) | |
630 | + | then invoke(this, "stakeUnstake", [true, amountA, strAssetIdA], nil) | |
631 | + | else 0 | |
632 | + | } | |
633 | + | else 0 | |
634 | + | if ((stake1 == stake1)) | |
635 | + | then { | |
636 | + | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
637 | + | then { | |
638 | + | let amountB = (balanceB - stakedAmountB) | |
639 | + | if ((amountB > 0)) | |
640 | + | then invoke(this, "stakeUnstake", [true, amountB, strAssetIdB], nil) | |
641 | + | else 0 | |
642 | + | } | |
643 | + | else 0 | |
644 | + | if ((stake2 == stake2)) | |
645 | + | then nil | |
646 | + | else throw("Strict value is not equal to itself.") | |
647 | + | } | |
648 | + | else throw("Strict value is not equal to itself.") | |
649 | + | }) | |
650 | + | ||
651 | + | ||
652 | + | @Verifier(tx) | |
653 | + | func verify () = { | |
654 | + | let multiSignedByAdmins = { | |
655 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
656 | + | then 1 | |
657 | + | else 0 | |
658 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
659 | + | then 1 | |
660 | + | else 0 | |
661 | + | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
662 | + | then 1 | |
663 | + | else 0 | |
664 | + | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
665 | + | } | |
666 | + | match tx { | |
667 | + | case inv: InvokeScriptTransaction => | |
668 | + | let callTakeIntoAccount = if ((inv.dApp == this)) | |
669 | + | then (inv.function == "takeIntoAccountExtraFunds") | |
670 | + | else false | |
671 | + | let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger)) | |
672 | + | then (inv.function == "exchange") | |
673 | + | else false) | |
674 | + | then (size(inv.payments) == 1) | |
675 | + | else false) | |
676 | + | then if ((inv.payments[0].assetId == USDN)) | |
677 | + | then true | |
678 | + | else (inv.payments[0].assetId == unit) | |
679 | + | else false | |
680 | + | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
681 | + | then true | |
682 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
683 | + | then true | |
684 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
685 | + | then true | |
686 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
687 | + | if (if (if (callTakeIntoAccount) | |
688 | + | then true | |
689 | + | else exchangeToWaves) | |
690 | + | then signedByAdmin | |
691 | + | else false) | |
692 | + | then true | |
693 | + | else multiSignedByAdmins | |
694 | + | case _ => | |
695 | + | multiSignedByAdmins | |
696 | + | } | |
697 | + | } | |
698 | + |
github/deemru/w8io/169f3d6 329.51 ms ◑