tx · 59SJ2hstPaqQt54jsmRC6yRoxQGN4NfmiLfdS27QcCBD 3Mt9TxLouqgJkMVU7KE5byxnFsBZZoj2akt: -0.01000000 Waves 2022.01.12 13:45 [1875634] smart account 3Mt9TxLouqgJkMVU7KE5byxnFsBZZoj2akt > SELF 0.00000000 Waves
{ "type": 13, "id": "59SJ2hstPaqQt54jsmRC6yRoxQGN4NfmiLfdS27QcCBD", "fee": 1000000, "feeAssetId": null, "timestamp": 1641984345290, "version": 2, "chainId": 84, "sender": "3Mt9TxLouqgJkMVU7KE5byxnFsBZZoj2akt", "senderPublicKey": "EPELGbCtQpVU3DY9Nf1iEJtyF5R22KTaymRjPqjBsxRf", "proofs": [ "39BBsJxJd4mUUTMDVnK5eMjB1DRDgXiYusNEZ8pqQ2aPjCEu1Q53MRDKP6B6CGFhvcCKBsuV3b669TGWHPruMyUJ" ], "script": "base64:AAIFAAAAAAAAAFAIAhIDCgEBEhAKDggICAgICAgIAQEBAQEBEggKBggICAEBARIHCgUIAQgCBBIAEgASBQoDCAEIEgYKBAgBCAQSBgoECAEIAhIAEgASAwoBAQAAAH4BAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQIAAAAAAQAAAAxnZXRCb29sQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkHAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAB2FkZH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pdDoJAAGkAAAAAQUAAAAPYXVjdGlvbk5CQW1vdW50AgAAAAF8CQABpAAAAAEAAAAAAAAAAAACAAAACi4gU3VycGx1czoJAAGkAAAAAQUAAAAWc3VycGx1c1dpdGhMaXF1aWRhdGlvbgIAAAABfAkAAaQAAAABBQAAAAdzdXJwbHVzAAAAAWkBAAAAC2FjY2VwdFdhdmVzAAAAAAMJAQAAAAIhPQAAAAIIBQAAAAFpAAAABmNhbGxlcgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAPYXVjdGlvbkNvbnRyYWN0CQAAAgAAAAECAAAAMkN1cnJlbnRseSBvbmx5IGF1Y3Rpb24gY29udHJhY3QgaXMgYWxsb3dlZCB0byBjYWxsCQAFFAAAAAIJAQAAABZwcmVwYXJlVW5sZWFzZUFuZExlYXNlAAAAAQAAAAAAAAAAAAIAAAAHc3VjY2VzcwAAAAFpAQAAABZxdWlja1N3YXBMaW1pdFJFQURPTkxZAAAAAQAAAAtnTnNidEFtb3VudAkABRQAAAACBQAAAANuaWwJAABoAAAAAgUAAAALZ05zYnRBbW91bnQJAQAAAAxnZXROU0JUUHJpY2UAAAAAAAAAAB944dk=", "height": 1875634, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0) | |
5 | + | ||
6 | + | ||
7 | + | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
8 | + | ||
9 | + | ||
10 | + | func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false) | |
11 | + | ||
12 | + | ||
13 | + | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0) | |
14 | + | ||
15 | + | ||
16 | + | func getStringByAddressAndKey (address,key) = valueOrElse(getString(addressFromStringValue(address), key), "") | |
17 | + | ||
18 | + | ||
19 | + | func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(addressFromStringValue(address), key), false) | |
20 | + | ||
21 | + | ||
22 | + | let pubKeyAdminsList = ["GJdLSaLiv5K7xuejac8mcRcHoyo3dPrESrvktG3a6MAR", "FWVffYr2ALmHMejZm3WqeLz6Sdym3gLFGtJn4KTwyU5x", "3Wh2LaWcb5gg7K2pPcW3Ep6EAuRBzYkAgrdpt43jTDFa", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
23 | + | ||
24 | + | func asInt (val) = match val { | |
25 | + | case valInt: Int => | |
26 | + | valInt | |
27 | + | case _ => | |
28 | + | throw("Failed to cast into Int") | |
29 | + | } | |
30 | + | ||
31 | + | ||
32 | + | let SEP = "__" | |
33 | + | ||
34 | + | let WAVELET = 100000000 | |
35 | + | ||
36 | + | let PAULI = 1000000 | |
37 | + | ||
38 | + | let PRICELET = 1000000 | |
39 | + | ||
40 | + | let DEFAULTSWAPFEE = 20000 | |
41 | + | ||
42 | + | let IdxNetAmount = 0 | |
43 | + | ||
44 | + | let IdxFeeAmount = 1 | |
45 | + | ||
46 | + | let IdxGrossAmount = 2 | |
47 | + | ||
48 | + | let dora2NsbtSymbol = "NSBT-USDT" | |
49 | + | ||
50 | + | let minRand = 60 | |
51 | + | ||
52 | + | let maxRand = 1440 | |
53 | + | ||
54 | + | let NeutrinoAssetIdKey = "neutrino_asset_id" | |
55 | + | ||
56 | + | let BondAssetIdKey = "bond_asset_id" | |
57 | + | ||
58 | + | let AuctionContractKey = "auction_contract" | |
59 | + | ||
60 | + | let LiquidationContractKey = "liquidation_contract" | |
61 | + | ||
62 | + | let RPDContractKey = "rpd_contract" | |
63 | + | ||
64 | + | let ControlContractKey = "control_contract" | |
65 | + | ||
66 | + | let BalanceWavesLockIntervalKey = "balance_waves_lock_interval" | |
67 | + | ||
68 | + | let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval" | |
69 | + | ||
70 | + | let MinWavesSwapAmountKey = "min_waves_swap_amount" | |
71 | + | ||
72 | + | let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount" | |
73 | + | ||
74 | + | let NodeOracleProviderPubKeyKey = "node_oracle_provider" | |
75 | + | ||
76 | + | let NeutrinoOutFeePartKey = "neutrinoOut_swap_feePart" | |
77 | + | ||
78 | + | let WavesOutFeePartKey = "wavesOut_swap_feePart" | |
79 | + | ||
80 | + | let RsaRandPublic58Key = "rand_rsa_public" | |
81 | + | ||
82 | + | let keyGNsbtContract = "%s__gNsbtContract" | |
83 | + | ||
84 | + | let keyNsbtLockContract = "%s__nsbtLockContract" | |
85 | + | ||
86 | + | let keyDora2Contract = "%s__dora2Contract" | |
87 | + | ||
88 | + | let keyQuickSwapDelay = "%s__quickSwapDelay" | |
89 | + | ||
90 | + | let keyQuickSwapLimitDuration = "%s__quickSwapLimitDuration" | |
91 | + | ||
92 | + | let keyDora2LastHeightLimit = "%s__dora2LastHeightLimit" | |
93 | + | ||
94 | + | let PriceKey = "price" | |
95 | + | ||
96 | + | let PriceIndexKey = "price_index" | |
97 | + | ||
98 | + | let IsBlockedKey = "is_blocked" | |
99 | + | ||
100 | + | func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block)) | |
101 | + | ||
102 | + | ||
103 | + | func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index)) | |
104 | + | ||
105 | + | ||
106 | + | func getStakingNodeByIndex (idx) = getStringByKey(makeString(["%s%d%s", "lease", toString(idx), "nodeAddress"], SEP)) | |
107 | + | ||
108 | + | ||
109 | + | func getStakingNodeAddressByIndex (idx) = addressFromStringValue(getStakingNodeByIndex(idx)) | |
110 | + | ||
111 | + | ||
112 | + | func getReservedAmountForSponsorship () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], SEP)), (1000 * WAVELET)) | |
113 | + | ||
114 | + | ||
115 | + | func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner) | |
116 | + | ||
117 | + | ||
118 | + | func getLeaseIdKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "id"], SEP) | |
119 | + | ||
120 | + | ||
121 | + | func getLeaseAmountKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "amount"], SEP) | |
122 | + | ||
123 | + | ||
124 | + | func minSwapAmountKEY (swapType) = (("min_" + swapType) + "_swap_amount") | |
125 | + | ||
126 | + | ||
127 | + | func totalLockedKEY (swapType) = ("balance_lock_" + swapType) | |
128 | + | ||
129 | + | ||
130 | + | func totalLockedByUserKEY (swapType,owner) = makeString(["balance_lock", swapType, owner], "_") | |
131 | + | ||
132 | + | ||
133 | + | func balanceLockIntervalKEY (swapType) = (("balance_" + swapType) + "_lock_interval") | |
134 | + | ||
135 | + | ||
136 | + | func minBalanceLockIntervalKEY (swapType) = (("balance_" + swapType) + "_lock_interval_minimum") | |
137 | + | ||
138 | + | ||
139 | + | func nodeBalanceLockIntervalKEY () = "balance_node_lock_interval" | |
140 | + | ||
141 | + | ||
142 | + | func outFeePartKEY (swapType) = (swapType + "Out_swap_feePart") | |
143 | + | ||
144 | + | ||
145 | + | func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", toString(userAddress)], SEP) | |
146 | + | ||
147 | + | ||
148 | + | func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", toString(userAddress)], SEP) | |
149 | + | ||
150 | + | ||
151 | + | func keyDora2Price (symbol) = makeString(["%s%s", "price", symbol], SEP) | |
152 | + | ||
153 | + | ||
154 | + | func keyDora2LastHeight (symbol) = makeString(["%s%s", "lastHeight", symbol], SEP) | |
155 | + | ||
156 | + | ||
157 | + | func minSwapAmountREAD (swapType) = valueOrElse(getInteger(this, minSwapAmountKEY(swapType)), 0) | |
158 | + | ||
159 | + | ||
160 | + | func totalLockedREAD (swapType) = valueOrElse(getInteger(this, totalLockedKEY(swapType)), 0) | |
161 | + | ||
162 | + | ||
163 | + | func totalLockedByUserREAD (swapType,owner) = valueOrElse(getInteger(this, totalLockedByUserKEY(swapType, owner)), 0) | |
164 | + | ||
165 | + | ||
166 | + | func balanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, balanceLockIntervalKEY(swapType)), maxRand) | |
167 | + | ||
168 | + | ||
169 | + | func minBalanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, minBalanceLockIntervalKEY(swapType)), minRand) | |
170 | + | ||
171 | + | ||
172 | + | func nodeBalanceLockIntervalREAD () = valueOrElse(getInteger(this, nodeBalanceLockIntervalKEY()), 1) | |
173 | + | ||
174 | + | ||
175 | + | func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI) | |
176 | + | ||
177 | + | ||
178 | + | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET) | |
179 | + | ||
180 | + | ||
181 | + | func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price) | |
182 | + | ||
183 | + | ||
184 | + | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
185 | + | ||
186 | + | ||
187 | + | func minSwapAmountFAIL (swapType,minSwapAmount) = throw(((("The specified amount in " + swapType) + " swap is less than the required minimum of ") + toString(minSwapAmount))) | |
188 | + | ||
189 | + | ||
190 | + | func emergencyShutdownFAIL () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
191 | + | ||
192 | + | ||
193 | + | func priceIndexFAIL (index,priceIndex,indexHeight,unlockHeight,prevIndexHeight) = throw(((((((((("invalid price history index: index=" + toString(index)) + " priceIndex=") + toString(priceIndex)) + " indexHeight=") + toString(indexHeight)) + " unlockHeight=") + toString(unlockHeight)) + " prevIndexHeight=") + toString(prevIndexHeight))) | |
194 | + | ||
195 | + | ||
196 | + | let liquidationContract = getStringByKey(LiquidationContractKey) | |
197 | + | ||
198 | + | let neutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey)) | |
199 | + | ||
200 | + | let auctionContract = getStringByKey(AuctionContractKey) | |
201 | + | ||
202 | + | let rpdContract = getStringByKey(RPDContractKey) | |
203 | + | ||
204 | + | let controlContract = getStringByKey(ControlContractKey) | |
205 | + | ||
206 | + | let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey) | |
207 | + | ||
208 | + | let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey) | |
209 | + | ||
210 | + | let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey)) | |
211 | + | ||
212 | + | let bondAssetId = fromBase58String("6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g") | |
213 | + | ||
214 | + | let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
215 | + | ||
216 | + | let rsaPub = fromBase64String(valueOrErrorMessage(getString(this, RsaRandPublic58Key), "RSA public key has not been specified")) | |
217 | + | ||
218 | + | let neutrinoContract = this | |
219 | + | ||
220 | + | let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey) | |
221 | + | ||
222 | + | let neutrinoLockedBalance = totalLockedREAD("neutrino") | |
223 | + | ||
224 | + | let wavesLockedBalance = totalLockedREAD("waves") | |
225 | + | ||
226 | + | let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance) | |
227 | + | ||
228 | + | let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(addressFromStringValue(liquidationContract), neutrinoAssetId)) | |
229 | + | ||
230 | + | let surplus = (convertWavesToNeutrino(reserve, currentPrice) - neutrinoSupply) | |
231 | + | ||
232 | + | let deficit = (neutrinoSupply - convertWavesToNeutrino(reserve, currentPrice)) | |
233 | + | ||
234 | + | func checkIsValidMinSponsoredFee (tx) = { | |
235 | + | let MINTRANSFERFEE = 100000 | |
236 | + | let SponsoredFeeUpperBound = 1000 | |
237 | + | let realNeutrinoFee = convertWavesToNeutrino(MINTRANSFERFEE, currentPrice) | |
238 | + | let minNeutrinoFee = (realNeutrinoFee * 2) | |
239 | + | let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100) | |
240 | + | let inputFee = value(tx.minSponsoredAssetFee) | |
241 | + | if (if ((inputFee >= minNeutrinoFee)) | |
242 | + | then (maxNeutrinoFee >= inputFee) | |
243 | + | else false) | |
244 | + | then (tx.assetId == neutrinoAssetId) | |
245 | + | else false | |
246 | + | } | |
247 | + | ||
248 | + | ||
249 | + | func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block)) | |
250 | + | ||
251 | + | ||
252 | + | func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index)) | |
253 | + | ||
254 | + | ||
255 | + | let sIdxSwapType = 1 | |
256 | + | ||
257 | + | let sIdxStatus = 2 | |
258 | + | ||
259 | + | let sIdxInAmount = 3 | |
260 | + | ||
261 | + | let sIdxPrice = 4 | |
262 | + | ||
263 | + | let sIdxOutNetAmount = 5 | |
264 | + | ||
265 | + | let sIdxOutFeeAmount = 6 | |
266 | + | ||
267 | + | let sIdxStartHeight = 7 | |
268 | + | ||
269 | + | let sIdxStartTimestamp = 8 | |
270 | + | ||
271 | + | let sIdxEndHeight = 9 | |
272 | + | ||
273 | + | let sIdxEndTimestamp = 10 | |
274 | + | ||
275 | + | let sIdxSelfUnlockHeight = 11 | |
276 | + | ||
277 | + | let sIdxRandUnlockHeight = 12 | |
278 | + | ||
279 | + | let sIdxIndex = 13 | |
280 | + | ||
281 | + | let sIdxWithdrawTxId = 14 | |
282 | + | ||
283 | + | let sIdxMinRand = 15 | |
284 | + | ||
285 | + | let sIdxMaxRand = 16 | |
286 | + | ||
287 | + | func swapKEY (userAddress,txId) = makeString(["%s%s", userAddress, txId], SEP) | |
288 | + | ||
289 | + | ||
290 | + | func strSwapDATA (swapType,status,inAmount,price,outNetAmount,outFeeAmount,startHeight,startTimestamp,endHeight,endTimestamp,selfUnlockHeight,randUnlockHeight,index,withdrawTxId,randMin,randMax) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s", swapType, status, inAmount, price, outNetAmount, outFeeAmount, startHeight, startTimestamp, endHeight, endTimestamp, selfUnlockHeight, randUnlockHeight, index, withdrawTxId, randMin, randMax], SEP) | |
291 | + | ||
292 | + | ||
293 | + | func pendingSwapDATA (swapType,inAssetAmount,selfUnlockHeight) = strSwapDATA(swapType, "PENDING", toString(inAssetAmount), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(selfUnlockHeight), "0", "0", "NULL", toString(minBalanceLockIntervalREAD(swapType)), toString(balanceLockIntervalREAD(swapType))) | |
294 | + | ||
295 | + | ||
296 | + | func finishSwapDATA (dataArray,price,outNetAmount,outFeeAmount,randUnlockHeight,index,withdrawTxId) = strSwapDATA(dataArray[sIdxSwapType], "FINISHED", dataArray[sIdxInAmount], toString(price), toString(outNetAmount), toString(outFeeAmount), dataArray[sIdxStartHeight], dataArray[sIdxStartTimestamp], toString(height), toString(lastBlock.timestamp), dataArray[sIdxSelfUnlockHeight], toString(randUnlockHeight), toString(index), withdrawTxId, if ((15 >= size(dataArray))) | |
297 | + | then toString(minRand) | |
298 | + | else dataArray[sIdxMinRand], if ((15 >= size(dataArray))) | |
299 | + | then toString(maxRand) | |
300 | + | else dataArray[sIdxMaxRand]) | |
301 | + | ||
302 | + | ||
303 | + | func swapDataFailOrREAD (userAddress,swapTxId) = { | |
304 | + | let swapKey = swapKEY(userAddress, swapTxId) | |
305 | + | split(valueOrErrorMessage(getString(this, swapKey), ("no swap data for " + swapKey)), SEP) | |
306 | + | } | |
307 | + | ||
308 | + | ||
309 | + | func applyFees (amountGross,feePart) = { | |
310 | + | let feeAmount = fraction(amountGross, feePart, PAULI) | |
311 | + | [(amountGross - feeAmount), feeAmount, amountGross] | |
312 | + | } | |
313 | + | ||
314 | + | ||
315 | + | func randUnlockHeightOrFail (txId,rsaSig,swapType,startHeight,minMaxRandsTuple) = { | |
316 | + | let isRsaValid = rsaVerify_16Kb(SHA256, toBytes(txId), rsaSig, rsaPub) | |
317 | + | if (!(isRsaValid)) | |
318 | + | then throw("invalid RSA signature") | |
319 | + | else { | |
320 | + | let minBalanceLockInterval = minMaxRandsTuple._1 | |
321 | + | let maxBalanceLockInterval = minMaxRandsTuple._2 | |
322 | + | let rand = (toInt(sha256_16Kb(rsaSig)) % (maxBalanceLockInterval - minBalanceLockInterval)) | |
323 | + | let randLockInterval = (minBalanceLockInterval + (if ((0 > rand)) | |
324 | + | then -(rand) | |
325 | + | else rand)) | |
326 | + | (startHeight + randLockInterval) | |
327 | + | } | |
328 | + | } | |
329 | + | ||
330 | + | ||
331 | + | func abs (x) = if ((0 > x)) | |
332 | + | then -(x) | |
333 | + | else x | |
334 | + | ||
335 | + | ||
336 | + | func selectNode (unleaseAmount) = { | |
337 | + | let amountToLease = ((wavesBalance(neutrinoContract).available - unleaseAmount) - getReservedAmountForSponsorship()) | |
338 | + | let oldLeased0 = getNumberByKey(getLeaseAmountKey(0)) | |
339 | + | let oldLeased1 = getNumberByKey(getLeaseAmountKey(1)) | |
340 | + | let newLeased0 = (amountToLease + oldLeased0) | |
341 | + | let newLeased1 = (amountToLease + oldLeased1) | |
342 | + | if (if ((newLeased0 > 0)) | |
343 | + | then true | |
344 | + | else (newLeased1 > 0)) | |
345 | + | then { | |
346 | + | let delta0 = abs((newLeased0 - oldLeased1)) | |
347 | + | let delta1 = abs((newLeased1 - oldLeased0)) | |
348 | + | if ((delta1 >= delta0)) | |
349 | + | then $Tuple2(0, newLeased0) | |
350 | + | else $Tuple2(1, newLeased1) | |
351 | + | } | |
352 | + | else $Tuple2(-1, 0) | |
353 | + | } | |
354 | + | ||
355 | + | ||
356 | + | func prepareUnleaseAndLease (unleaseAmount) = { | |
357 | + | let $t01536515453 = selectNode(unleaseAmount) | |
358 | + | let nodeIndex = $t01536515453._1 | |
359 | + | let newLeaseAmount = $t01536515453._2 | |
360 | + | if ((newLeaseAmount > 0)) | |
361 | + | then { | |
362 | + | let leaseIdKey = getLeaseIdKey(nodeIndex) | |
363 | + | let oldLease = getBinary(this, leaseIdKey) | |
364 | + | let unleaseOrEmpty = if (isDefined(oldLease)) | |
365 | + | then [LeaseCancel(value(oldLease))] | |
366 | + | else nil | |
367 | + | let leaseAmountKey = getLeaseAmountKey(nodeIndex) | |
368 | + | let lease = Lease(getStakingNodeAddressByIndex(nodeIndex), newLeaseAmount) | |
369 | + | (unleaseOrEmpty ++ [lease, BinaryEntry(leaseIdKey, calculateLeaseId(lease)), IntegerEntry(getLeaseAmountKey(nodeIndex), newLeaseAmount)]) | |
370 | + | } | |
371 | + | else nil | |
372 | + | } | |
373 | + | ||
374 | + | ||
375 | + | func getDora2NSBTInfo () = { | |
376 | + | let dora2Contract = addressFromStringValue(getStringValue(this, keyDora2Contract)) | |
377 | + | let price = valueOrErrorMessage(getInteger(dora2Contract, keyDora2Price(dora2NsbtSymbol)), "NSBT price is undefined") | |
378 | + | let lastHeight = valueOrElse(getInteger(dora2Contract, keyDora2LastHeight(dora2NsbtSymbol)), 0) | |
379 | + | $Tuple2(price, lastHeight) | |
380 | + | } | |
381 | + | ||
382 | + | ||
383 | + | func getNSBTPrice () = { | |
384 | + | let $t01641116455 = getDora2NSBTInfo() | |
385 | + | let price = $t01641116455._1 | |
386 | + | let lastHeight = $t01641116455._2 | |
387 | + | price | |
388 | + | } | |
389 | + | ||
390 | + | ||
391 | + | func commonSwap (swapType,i) = { | |
392 | + | let pmt = value(i.payments[0]) | |
393 | + | let account = toString(i.caller) | |
394 | + | let txId58 = toBase58String(i.transactionId) | |
395 | + | let minSwapAmount = minSwapAmountREAD(swapType) | |
396 | + | let totalLocked = totalLockedREAD(swapType) | |
397 | + | let totalLockedByUser = totalLockedByUserREAD(swapType, account) | |
398 | + | let nodeAddress = getStakingNodeByIndex(0) | |
399 | + | let balanceLockMaxInterval = if ((nodeAddress == account)) | |
400 | + | then nodeBalanceLockIntervalREAD() | |
401 | + | else balanceLockIntervalREAD(swapType) | |
402 | + | let selfUnlockHeight = (height + balanceLockMaxInterval) | |
403 | + | if ((minSwapAmount > pmt.amount)) | |
404 | + | then minSwapAmountFAIL(swapType, minSwapAmount) | |
405 | + | else if (isBlocked) | |
406 | + | then emergencyShutdownFAIL() | |
407 | + | else { | |
408 | + | let leasePart = if ((swapType == "waves")) | |
409 | + | then prepareUnleaseAndLease(0) | |
410 | + | else nil | |
411 | + | $Tuple2(([IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser + pmt.amount)), IntegerEntry(getBalanceUnlockBlockKey(account), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType), (totalLocked + pmt.amount)), StringEntry(swapKEY(account, txId58), pendingSwapDATA(swapType, pmt.amount, selfUnlockHeight))] ++ leasePart), unit) | |
412 | + | } | |
413 | + | } | |
414 | + | ||
415 | + | ||
416 | + | func thisOnly (i) = if ((i.caller != this)) | |
417 | + | then throw("Permission denied: this contract only allowed") | |
418 | + | else true | |
419 | + | ||
420 | + | ||
421 | + | @Callable(i) | |
422 | + | func prepareUnleaseAndLeaseWrapper (unleaseAmount) = { | |
423 | + | let checkCaller = [thisOnly(i)] | |
424 | + | if ((checkCaller == checkCaller)) | |
425 | + | then prepareUnleaseAndLease(unleaseAmount) | |
426 | + | else throw("Strict value is not equal to itself.") | |
427 | + | } | |
428 | + | ||
429 | + | ||
430 | + | ||
431 | + | @Callable(i) | |
432 | + | func constructor (neutrinoAssetIdPrm,bondAssetIdPrm,auctionContractPrm,liquidationContractPrm,rpdContractPrm,controlContractPrm,nodeOracleProviderPubKeyPrm,rsaRandPublicKeyPrm,balanceWavesLockIntervalPrm,balanceNeutrinoLockIntervalPrm,minWavesSwapAmountPrm,minNeutrinoSwapAmountPrm,neutrinoOutFeePartPrm,wavesOutFeePartPrm) = { | |
433 | + | let checkCaller = thisOnly(i) | |
434 | + | if ((checkCaller == checkCaller)) | |
435 | + | then [StringEntry(NeutrinoAssetIdKey, neutrinoAssetIdPrm), StringEntry(BondAssetIdKey, bondAssetIdPrm), StringEntry(AuctionContractKey, auctionContractPrm), StringEntry(LiquidationContractKey, liquidationContractPrm), StringEntry(RPDContractKey, rpdContractPrm), StringEntry(ControlContractKey, controlContractPrm), StringEntry(NodeOracleProviderPubKeyKey, nodeOracleProviderPubKeyPrm), StringEntry(RsaRandPublic58Key, rsaRandPublicKeyPrm), IntegerEntry(BalanceWavesLockIntervalKey, balanceWavesLockIntervalPrm), IntegerEntry(BalanceNeutrinoLockIntervalKey, balanceNeutrinoLockIntervalPrm), IntegerEntry(MinWavesSwapAmountKey, minWavesSwapAmountPrm), IntegerEntry(MinNeutrinoSwapAmountKey, minNeutrinoSwapAmountPrm), IntegerEntry(NeutrinoOutFeePartKey, neutrinoOutFeePartPrm), IntegerEntry(WavesOutFeePartKey, wavesOutFeePartPrm)] | |
436 | + | else throw("Strict value is not equal to itself.") | |
437 | + | } | |
438 | + | ||
439 | + | ||
440 | + | ||
441 | + | @Callable(i) | |
442 | + | func constructorV2 (gNsbtContract,nsbtLockContract,dora2Contract,quickSwapDelay,quickSwapLimitDuration,dora2LastHeightLimit) = { | |
443 | + | let checkCaller = thisOnly(i) | |
444 | + | if ((checkCaller == checkCaller)) | |
445 | + | then [StringEntry(keyGNsbtContract, gNsbtContract), StringEntry(keyNsbtLockContract, nsbtLockContract), StringEntry(keyDora2Contract, dora2Contract), IntegerEntry(keyQuickSwapDelay, quickSwapDelay), IntegerEntry(keyQuickSwapLimitDuration, quickSwapLimitDuration), IntegerEntry(keyDora2LastHeightLimit, dora2LastHeightLimit)] | |
446 | + | else throw("Strict value is not equal to itself.") | |
447 | + | } | |
448 | + | ||
449 | + | ||
450 | + | ||
451 | + | @Callable(i) | |
452 | + | func commonWithdraw (account,index,swapTxId,rsaSig,isQuick) = { | |
453 | + | let userAddress = addressFromStringValue(account) | |
454 | + | let checkCaller = [thisOnly(i), if (if (isQuick) | |
455 | + | then (i.originCaller != userAddress) | |
456 | + | else false) | |
457 | + | then throw(((("Permission denied: originCaller=" + toString(i.originCaller)) + ", account=") + account)) | |
458 | + | else true] | |
459 | + | if ((checkCaller == checkCaller)) | |
460 | + | then { | |
461 | + | let dataArray = swapDataFailOrREAD(account, swapTxId) | |
462 | + | let selfUnlockHeight = parseIntValue(dataArray[sIdxSelfUnlockHeight]) | |
463 | + | let swapType = dataArray[sIdxSwapType] | |
464 | + | let inAmount = parseIntValue(dataArray[sIdxInAmount]) | |
465 | + | let swapStatus = dataArray[sIdxStatus] | |
466 | + | let startHeight = parseIntValue(dataArray[sIdxStartHeight]) | |
467 | + | let checkSwapType = if (if ((swapType != "waves")) | |
468 | + | then (swapType != "neutrino") | |
469 | + | else false) | |
470 | + | then throw(("Unsupported swap type " + swapType)) | |
471 | + | else true | |
472 | + | if ((checkSwapType == checkSwapType)) | |
473 | + | then { | |
474 | + | let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE) | |
475 | + | let totalLocked = totalLockedREAD(swapType) | |
476 | + | let totalLockedByUser = totalLockedByUserREAD(swapType, account) | |
477 | + | let minMaxRandsTuple = if ((15 >= size(dataArray))) | |
478 | + | then $Tuple2(minRand, maxRand) | |
479 | + | else $Tuple2(parseIntValue(dataArray[sIdxMinRand]), parseIntValue(dataArray[sIdxMaxRand])) | |
480 | + | let unlockHeight = if (isQuick) | |
481 | + | then { | |
482 | + | let quickSwapDelay = getIntegerValue(this, keyQuickSwapDelay) | |
483 | + | (startHeight + quickSwapDelay) | |
484 | + | } | |
485 | + | else if ((rsaSig == base58'')) | |
486 | + | then selfUnlockHeight | |
487 | + | else randUnlockHeightOrFail(swapTxId, rsaSig, swapType, startHeight, minMaxRandsTuple) | |
488 | + | let indexHeight = getHeightPriceByIndex(index) | |
489 | + | let prevIndexHeight = getHeightPriceByIndex((index - 1)) | |
490 | + | let priceByIndex = getPriceHistory(indexHeight) | |
491 | + | let $t02196622162 = if ((swapType == "waves")) | |
492 | + | then $Tuple2(convertWavesToNeutrino(inAmount, priceByIndex), neutrinoAssetId) | |
493 | + | else $Tuple2(convertNeutrinoToWaves(inAmount, priceByIndex), unit) | |
494 | + | let outAmountGross = $t02196622162._1 | |
495 | + | let outAsset = $t02196622162._2 | |
496 | + | let payoutsArray = applyFees(outAmountGross, outFeePart) | |
497 | + | let outNetAmount = payoutsArray[IdxNetAmount] | |
498 | + | let outFeeAmount = payoutsArray[IdxFeeAmount] | |
499 | + | let quickSwapLimitDuration = getIntegerValue(this, keyQuickSwapLimitDuration) | |
500 | + | let quickSwapUserSpentInPeriod = valueOrElse(getInteger(this, keyQuickSwapUserSpentInPeriod(userAddress)), 0) | |
501 | + | let userLastQuickSwapHeight = valueOrElse(getInteger(this, keyUserLastQuickSwapHeight(userAddress)), 0) | |
502 | + | let nsbtLockContract = addressFromStringValue(getStringValue(this, keyNsbtLockContract)) | |
503 | + | let userGNsbtAmountResult = invoke(nsbtLockContract, "gNsbtAmountREADONLY", [toString(userAddress)], nil) | |
504 | + | if ((userGNsbtAmountResult == userGNsbtAmountResult)) | |
505 | + | then { | |
506 | + | let userGNsbtAmount = asInt(userGNsbtAmountResult) | |
507 | + | let $t02287422931 = getDora2NSBTInfo() | |
508 | + | let nsbtPrice = $t02287422931._1 | |
509 | + | let nsbtPriceLastHeight = $t02287422931._2 | |
510 | + | let lastHeightLimit = getIntegerValue(this, keyDora2LastHeightLimit) | |
511 | + | let isNewQuickSwapPeriod = ((height - userLastQuickSwapHeight) > quickSwapLimitDuration) | |
512 | + | let quickSwapUserSpent = if (isNewQuickSwapPeriod) | |
513 | + | then 0 | |
514 | + | else quickSwapUserSpentInPeriod | |
515 | + | let quickSwapLimitTotal = fraction(userGNsbtAmount, nsbtPrice, WAVELET) | |
516 | + | let quickSwapLimit = (quickSwapLimitTotal - quickSwapUserSpent) | |
517 | + | let swapUsdnVolume = if ((swapType == "neutrino")) | |
518 | + | then inAmount | |
519 | + | else outAmountGross | |
520 | + | let checks = [if (if (isQuick) | |
521 | + | then ((height - nsbtPriceLastHeight) > lastHeightLimit) | |
522 | + | else false) | |
523 | + | then throw("NSBT price is outdated") | |
524 | + | else true, if (if (isQuick) | |
525 | + | then (swapUsdnVolume > quickSwapLimit) | |
526 | + | else false) | |
527 | + | then throw(((("You have exceeded the quick swaps limit: limit=" + toString(quickSwapLimit)) + ", attemptedAmount=") + toString(swapUsdnVolume))) | |
528 | + | else true, if (isBlocked) | |
529 | + | then emergencyShutdownFAIL() | |
530 | + | else true, if ((swapStatus != "PENDING")) | |
531 | + | then throw("swap has been already processed") | |
532 | + | else true, if ((unlockHeight > height)) | |
533 | + | then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw funds")) | |
534 | + | else true, if (if (if ((index > priceIndex)) | |
535 | + | then true | |
536 | + | else (unlockHeight > indexHeight)) | |
537 | + | then true | |
538 | + | else if ((prevIndexHeight != 0)) | |
539 | + | then (prevIndexHeight >= unlockHeight) | |
540 | + | else false) | |
541 | + | then priceIndexFAIL(index, priceIndex, indexHeight, unlockHeight, prevIndexHeight) | |
542 | + | else true, if ((0 >= payoutsArray[IdxGrossAmount])) | |
543 | + | then throw("balance equals zero") | |
544 | + | else true, if (if ((0 > outFeePart)) | |
545 | + | then true | |
546 | + | else (outFeePart >= PAULI)) | |
547 | + | then throw(((("invalid outFeePart config for " + swapType) + " swap: outFeePart=") + toString(outFeePart))) | |
548 | + | else true] | |
549 | + | if ((checks == checks)) | |
550 | + | then { | |
551 | + | let leasePart = if (if ((swapType == "neutrino")) | |
552 | + | then (outAmountGross > 0) | |
553 | + | else false) | |
554 | + | then invoke(this, "prepareUnleaseAndLeaseWrapper", [outAmountGross], nil) | |
555 | + | else unit | |
556 | + | if ((leasePart == leasePart)) | |
557 | + | then { | |
558 | + | let gNsbtContract = addressFromStringValue(getStringValue(this, keyGNsbtContract)) | |
559 | + | let sendFee = invoke(gNsbtContract, "deposit", nil, [AttachedPayment(outAsset, outFeeAmount)]) | |
560 | + | if ((sendFee == sendFee)) | |
561 | + | then { | |
562 | + | let quickSwapPart = if (isQuick) | |
563 | + | then [IntegerEntry(keyQuickSwapUserSpentInPeriod(userAddress), (swapUsdnVolume + quickSwapUserSpent)), IntegerEntry(keyUserLastQuickSwapHeight(userAddress), height)] | |
564 | + | else nil | |
565 | + | (quickSwapPart ++ [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAsset), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, priceByIndex, outNetAmount, outFeeAmount, unlockHeight, index, toBase58String(i.transactionId)))]) | |
566 | + | } | |
567 | + | else throw("Strict value is not equal to itself.") | |
568 | + | } | |
569 | + | else throw("Strict value is not equal to itself.") | |
570 | + | } | |
571 | + | else throw("Strict value is not equal to itself.") | |
572 | + | } | |
573 | + | else throw("Strict value is not equal to itself.") | |
574 | + | } | |
575 | + | else throw("Strict value is not equal to itself.") | |
576 | + | } | |
577 | + | else throw("Strict value is not equal to itself.") | |
578 | + | } | |
579 | + | ||
580 | + | ||
581 | + | ||
582 | + | @Callable(i) | |
583 | + | func swapWavesToNeutrino () = { | |
584 | + | let pmt = value(i.payments[0]) | |
585 | + | if (isDefined(pmt.assetId)) | |
586 | + | then throw("Only Waves token is allowed for swapping.") | |
587 | + | else commonSwap("waves", i) | |
588 | + | } | |
589 | + | ||
590 | + | ||
591 | + | ||
592 | + | @Callable(i) | |
593 | + | func swapNeutrinoToWaves () = { | |
594 | + | let pmt = value(i.payments[0]) | |
595 | + | if ((pmt.assetId != neutrinoAssetId)) | |
596 | + | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
597 | + | else commonSwap("neutrino", i) | |
598 | + | } | |
599 | + | ||
600 | + | ||
601 | + | ||
602 | + | @Callable(i) | |
603 | + | func withdraw (account,index,swapTxId) = { | |
604 | + | let result = invoke(this, "commonWithdraw", [account, index, swapTxId, base58'', false], nil) | |
605 | + | if ((result == result)) | |
606 | + | then nil | |
607 | + | else throw("Strict value is not equal to itself.") | |
608 | + | } | |
609 | + | ||
610 | + | ||
611 | + | ||
612 | + | @Callable(i) | |
613 | + | func withdrawV2 (account,index,swapTxId,isQuick) = { | |
614 | + | let result = invoke(this, "commonWithdraw", [account, index, swapTxId, base58'', isQuick], nil) | |
615 | + | if ((result == result)) | |
616 | + | then nil | |
617 | + | else throw("Strict value is not equal to itself.") | |
618 | + | } | |
619 | + | ||
620 | + | ||
621 | + | ||
622 | + | @Callable(i) | |
623 | + | func withdrawRand (account,index,swapTxId,rsaSig) = { | |
624 | + | let result = invoke(this, "commonWithdraw", [account, index, swapTxId, rsaSig, false], nil) | |
625 | + | if ((result == result)) | |
626 | + | then nil | |
627 | + | else throw("Strict value is not equal to itself.") | |
628 | + | } | |
629 | + | ||
630 | + | ||
631 | + | ||
632 | + | @Callable(i) | |
633 | + | func transferToAuction () = { | |
634 | + | let auctionNBAmount = (neutrinoSupply - assetBalance(addressFromStringValue(auctionContract), bondAssetId)) | |
635 | + | let surplusWithLiquidation = (surplus - assetBalance(addressFromStringValue(liquidationContract), neutrinoAssetId)) | |
636 | + | if (isBlocked) | |
637 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
638 | + | else if ((auctionNBAmount > (1 * PAULI))) | |
639 | + | then [ScriptTransfer(addressFromStringValue(auctionContract), auctionNBAmount, bondAssetId)] | |
640 | + | else if ((surplusWithLiquidation >= (1 * PAULI))) | |
641 | + | then [ScriptTransfer(addressFromStringValue(liquidationContract), surplusWithLiquidation, neutrinoAssetId)] | |
642 | + | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(auctionNBAmount)) + "|") + toString(0)) + ". Surplus:") + toString(surplusWithLiquidation)) + "|") + toString(surplus))) | |
643 | + | } | |
644 | + | ||
645 | + | ||
646 | + | ||
647 | + | @Callable(i) | |
648 | + | func acceptWaves () = if ((i.caller != addressFromStringValue(auctionContract))) | |
649 | + | then throw("Currently only auction contract is allowed to call") | |
650 | + | else $Tuple2(prepareUnleaseAndLease(0), "success") | |
651 | + | ||
652 | + | ||
653 | + | ||
654 | + | @Callable(i) | |
655 | + | func quickSwapLimitREADONLY (gNsbtAmount) = $Tuple2(nil, (gNsbtAmount * getNSBTPrice())) | |
656 | + | ||
657 | + |
github/deemru/w8io/169f3d6 37.70 ms ◑