tx · FCtNwUX7qPaJ17n29RghudgJwKS9sU8Gb4pgUvZw1mvB 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj: -0.01400000 Waves 2022.03.04 14:54 [1949199] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves
{ "type": 13, "id": "FCtNwUX7qPaJ17n29RghudgJwKS9sU8Gb4pgUvZw1mvB", "fee": 1400000, "feeAssetId": null, "timestamp": 1646394888080, "version": 1, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "4qdDYDeBRdNJ2hhAwzCMyrMuUi4kNQTHPxUU1i16CGctkQpc7tc74c6Nf6mKNyZMGRjRPwsi1UorPGv4vB1YKfgW", "3ecYwyQHCZ9cH6fe4AJFYymDmzwYcAQ3Ek7p1bLKo9gcyAUEiqXFafjex1TxDzs8RfuMc15VmBx8fpAEXCqgbn6S", "4aAN7wr9GzNmxjJDnqVTBNdPwfZtMGZXbGNH9wm4rrXdLJn2WsVidxLhmZMLqqa48ny5HgryfJX21kt7u79dwnqV" ], "script": "base64:AAIFAAAAAAAAADYIAhIOCgwICAgICAgBAQEBAQESBQoDCAgBEgYKBAgBCAgSABIAEgUKAwgBCBIAEgQKAgEIEgAAAAB0AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5BwEAAAAYZ2V0Tn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AAACBQAAAAckbWF0Y2gwAgAAABVTcG9uc29yRmVlVHJhbnNhY3Rpb24EAAAACXNwb25zb3JUeAUAAAAHJG1hdGNoMAMJAQAAABtjaGVja0lzVmFsaWRNaW5TcG9uc29yZWRGZWUAAAABBQAAAAlzcG9uc29yVHgJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAMHCQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADk82JfA==", "chainId": 84, "height": 1949199, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FMgkroKRbiEL6fuGbUyYJtEmiftmSy6fpzzG4RY2cYAT Next: MvqrafPwemyS2mZG4Y4v8ByfvujrT3FYw4CmwAB6tRG Diff:
Old | New | Differences | |
---|---|---|---|
458 | 458 | then { | |
459 | 459 | let lastSwapHeight = getNumberByKey(keyUserLastQuickSwapHeight(userAddressStr)) | |
460 | 460 | let swapsTimeframeBlocks = swapsTimeframeREAD() | |
461 | - | let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddressStr)), 0) | |
462 | - | let quickSwapLimitTotal = asInt(invoke(mathContract, "calcSwapLimitMATH", [userGNsbtAmount], nil)) | |
463 | - | if ((quickSwapLimitTotal == quickSwapLimitTotal)) | |
464 | - | then { | |
465 | - | let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex)) | |
466 | - | let swapUsdnVolume = if ((swapType == "neutrino")) | |
467 | - | then pmtAmount | |
468 | - | else convertWavesToNeutrino(pmtAmount, priceByIndex) | |
469 | - | if (isBlocked) | |
470 | - | then emergencyShutdownFAIL() | |
471 | - | else { | |
472 | - | let leasePart = if ((swapType == "waves")) | |
473 | - | then prepareUnleaseAndLease(0) | |
474 | - | else nil | |
475 | - | $Tuple2(([IntegerEntry(keyQuickSwapUserSpentInPeriod(userAddressStr), swapUsdnVolume), IntegerEntry(keyUserLastQuickSwapHeight(userAddressStr), height), IntegerEntry(totalLockedByUserKEY(swapType, userAddressStr), (totalLockedByUser + pmtAmount)), IntegerEntry(getBalanceUnlockBlockKey(userAddressStr), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType), (totalLocked + pmtAmount)), StringEntry(swapKEY(userAddressStr, txId58), pendingSwapDATA(swapType, pmtAmount, selfUnlockHeight))] ++ leasePart), unit) | |
461 | + | if ((swapsTimeframeBlocks > (height - lastSwapHeight))) | |
462 | + | then throw(("You have exceeded swap limit for 24h! Next allowed swap height is " + toString((lastSwapHeight + swapsTimeframeBlocks)))) | |
463 | + | else { | |
464 | + | let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddressStr)), 0) | |
465 | + | let quickSwapLimitTotal = asInt(invoke(mathContract, "calcSwapLimitMATH", [userGNsbtAmount], nil)) | |
466 | + | if ((quickSwapLimitTotal == quickSwapLimitTotal)) | |
467 | + | then { | |
468 | + | let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex)) | |
469 | + | let swapUsdnVolume = if ((swapType == "neutrino")) | |
470 | + | then pmtAmount | |
471 | + | else convertWavesToNeutrino(pmtAmount, priceByIndex) | |
472 | + | if ((swapUsdnVolume > quickSwapLimitTotal)) | |
473 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(quickSwapLimitTotal))) | |
474 | + | else if (isBlocked) | |
475 | + | then emergencyShutdownFAIL() | |
476 | + | else { | |
477 | + | let leasePart = if ((swapType == "waves")) | |
478 | + | then prepareUnleaseAndLease(0) | |
479 | + | else nil | |
480 | + | $Tuple2(([IntegerEntry(keyQuickSwapUserSpentInPeriod(userAddressStr), swapUsdnVolume), IntegerEntry(keyUserLastQuickSwapHeight(userAddressStr), height), IntegerEntry(totalLockedByUserKEY(swapType, userAddressStr), (totalLockedByUser + pmtAmount)), IntegerEntry(getBalanceUnlockBlockKey(userAddressStr), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType), (totalLocked + pmtAmount)), StringEntry(swapKEY(userAddressStr, txId58), pendingSwapDATA(swapType, pmtAmount, selfUnlockHeight))] ++ leasePart), unit) | |
481 | + | } | |
476 | 482 | } | |
483 | + | else throw("Strict value is not equal to itself.") | |
477 | 484 | } | |
478 | - | else throw("Strict value is not equal to itself.") | |
479 | 485 | } | |
480 | 486 | else throw("Strict value is not equal to itself.") | |
481 | 487 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func getStringByAddressAndKey (address,key) = valueOrElse(getString(addressFromStringValue(address), key), "") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(addressFromStringValue(address), key), false) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func asAnyList (val) = match val { | |
23 | 23 | case valAnyLyst: List[Any] => | |
24 | 24 | valAnyLyst | |
25 | 25 | case _ => | |
26 | 26 | throw("fail to cast into List[Any]") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func asString (val) = match val { | |
31 | 31 | case valStr: String => | |
32 | 32 | valStr | |
33 | 33 | case _ => | |
34 | 34 | throw("fail to cast into String") | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func asInt (val) = match val { | |
39 | 39 | case valInt: Int => | |
40 | 40 | valInt | |
41 | 41 | case _ => | |
42 | 42 | throw("fail to cast into Int") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | let pubKeyAdminsList = ["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
47 | 47 | ||
48 | 48 | let SEP = "__" | |
49 | 49 | ||
50 | 50 | let WAVELET = 100000000 | |
51 | 51 | ||
52 | 52 | let PAULI = 1000000 | |
53 | 53 | ||
54 | 54 | let PRICELET = 1000000 | |
55 | 55 | ||
56 | 56 | let DEFAULTSWAPFEE = 20000 | |
57 | 57 | ||
58 | 58 | let IdxNetAmount = 0 | |
59 | 59 | ||
60 | 60 | let IdxFeeAmount = 1 | |
61 | 61 | ||
62 | 62 | let IdxGrossAmount = 2 | |
63 | 63 | ||
64 | 64 | let NeutrinoAssetIdKey = "neutrino_asset_id" | |
65 | 65 | ||
66 | 66 | let BondAssetIdKey = "bond_asset_id" | |
67 | 67 | ||
68 | 68 | let AuctionContractKey = "auction_contract" | |
69 | 69 | ||
70 | 70 | let NsbtStakingContractKey = "nsbtStakingContract" | |
71 | 71 | ||
72 | 72 | let LiquidationContractKey = "liquidation_contract" | |
73 | 73 | ||
74 | 74 | let RPDContractKey = "rpd_contract" | |
75 | 75 | ||
76 | 76 | let ContolContractKey = "control_contract" | |
77 | 77 | ||
78 | 78 | let MathContractKey = "math_contract" | |
79 | 79 | ||
80 | 80 | let BalanceWavesLockIntervalKey = "balance_waves_lock_interval" | |
81 | 81 | ||
82 | 82 | let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval" | |
83 | 83 | ||
84 | 84 | let MinWavesSwapAmountKey = "min_waves_swap_amount" | |
85 | 85 | ||
86 | 86 | let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount" | |
87 | 87 | ||
88 | 88 | let NodeOracleProviderPubKeyKey = "node_oracle_provider" | |
89 | 89 | ||
90 | 90 | let NeutrinoOutFeePartKey = "neutrinoOut_swap_feePart" | |
91 | 91 | ||
92 | 92 | let WavesOutFeePartKey = "wavesOut_swap_feePart" | |
93 | 93 | ||
94 | 94 | let FeesManagerAddressKey = "fees_manager_address" | |
95 | 95 | ||
96 | 96 | func keyQuickSwapLimitDuration () = "%s__quickSwapLimitDuration" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | let PriceKey = "price" | |
100 | 100 | ||
101 | 101 | let PriceIndexKey = "price_index" | |
102 | 102 | ||
103 | 103 | let IsBlockedKey = "is_blocked" | |
104 | 104 | ||
105 | 105 | func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index)) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func getStakingNodeByIndex (idx) = getStringByKey(makeString(["%s%d%s", "lease", toString(idx), "nodeAddress"], SEP)) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func getStakingNodeAddressByIndex (idx) = addressFromStringValue(getStakingNodeByIndex(idx)) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func getReservedAmountForSponsorship () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], SEP)), (1000 * WAVELET)) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getLeaseIdKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "id"], SEP) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getLeaseAmountKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "amount"], SEP) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func minSwapAmountKEY (swapType) = (("min_" + swapType) + "_swap_amount") | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func totalLockedKEY (swapType) = ("balance_lock_" + swapType) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func totalLockedByUserKEY (swapType,owner) = makeString(["balance_lock", swapType, owner], "_") | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func balanceLockIntervalKEY (swapType) = (("balance_" + swapType) + "_lock_interval") | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func nodeBalanceLockIntervalKEY () = "balance_node_lock_interval" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func outFeePartKEY (swapType) = (swapType + "Out_swap_feePart") | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func swapsTimeframeKEY () = "swaps_timeframe" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func minSwapAmountREAD (swapType) = valueOrElse(getInteger(this, minSwapAmountKEY(swapType)), 0) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func swapsTimeframeREAD () = valueOrElse(getInteger(this, swapsTimeframeKEY()), 1440) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func totalLockedREAD (swapType) = valueOrElse(getInteger(this, totalLockedKEY(swapType)), 0) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func totalLockedByUserREAD (swapType,owner) = valueOrElse(getInteger(this, totalLockedByUserKEY(swapType, owner)), 0) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func balanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, balanceLockIntervalKEY(swapType)), 1440) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func nodeBalanceLockIntervalREAD () = valueOrElse(getInteger(this, nodeBalanceLockIntervalKEY()), 1) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", userAddress], SEP) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", userAddress], SEP) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func feeManagerAddressREAD () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, FeesManagerAddressKey), (FeesManagerAddressKey + " is not specified"))), (FeesManagerAddressKey + " invalid address format")) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func minSwapAmountFAIL (swapType,minSwapAmount) = throw(((("The specified amount in " + swapType) + " swap is less than the required minimum of ") + toString(minSwapAmount))) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func emergencyShutdownFAIL () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | 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))) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | let liquidationContract = getStringByKey(LiquidationContractKey) | |
199 | 199 | ||
200 | 200 | let nsbtStakingContractStr = getStringByKey(NsbtStakingContractKey) | |
201 | 201 | ||
202 | 202 | let neutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey)) | |
203 | 203 | ||
204 | 204 | let auctionContract = getStringByKey(AuctionContractKey) | |
205 | 205 | ||
206 | 206 | let rpdContract = getStringByKey(RPDContractKey) | |
207 | 207 | ||
208 | 208 | let controlContract = getStringByKey(ContolContractKey) | |
209 | 209 | ||
210 | 210 | let mathContractAddress = getStringByKey(MathContractKey) | |
211 | 211 | ||
212 | 212 | let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey) | |
213 | 213 | ||
214 | 214 | let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey) | |
215 | 215 | ||
216 | 216 | let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey)) | |
217 | 217 | ||
218 | 218 | let bondAssetId = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
219 | 219 | ||
220 | 220 | let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
221 | 221 | ||
222 | 222 | let neutrinoContract = this | |
223 | 223 | ||
224 | 224 | let mathContract = addressFromStringValue(mathContractAddress) | |
225 | 225 | ||
226 | 226 | let nsbtStakingContract = addressFromStringValue(nsbtStakingContractStr) | |
227 | 227 | ||
228 | 228 | let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey) | |
229 | 229 | ||
230 | 230 | func checkIsValidMinSponsoredFee (tx) = { | |
231 | 231 | let MINTRANSFERFEE = 100000 | |
232 | 232 | let SponsoredFeeUpperBound = 1000 | |
233 | 233 | let realNeutrinoFee = convertWavesToNeutrino(MINTRANSFERFEE, currentPrice) | |
234 | 234 | let minNeutrinoFee = (realNeutrinoFee * 2) | |
235 | 235 | let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100) | |
236 | 236 | let inputFee = value(tx.minSponsoredAssetFee) | |
237 | 237 | if (if ((inputFee >= minNeutrinoFee)) | |
238 | 238 | then (maxNeutrinoFee >= inputFee) | |
239 | 239 | else false) | |
240 | 240 | then (tx.assetId == neutrinoAssetId) | |
241 | 241 | else false | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block)) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index)) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "amount"], SEP) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | let sIdxSwapType = 1 | |
255 | 255 | ||
256 | 256 | let sIdxStatus = 2 | |
257 | 257 | ||
258 | 258 | let sIdxInAmount = 3 | |
259 | 259 | ||
260 | 260 | let sIdxPrice = 4 | |
261 | 261 | ||
262 | 262 | let sIdxOutNetAmount = 5 | |
263 | 263 | ||
264 | 264 | let sIdxOutFeeAmount = 6 | |
265 | 265 | ||
266 | 266 | let sIdxStartHeight = 7 | |
267 | 267 | ||
268 | 268 | let sIdxStartTimestamp = 8 | |
269 | 269 | ||
270 | 270 | let sIdxEndHeight = 9 | |
271 | 271 | ||
272 | 272 | let sIdxEndTimestamp = 10 | |
273 | 273 | ||
274 | 274 | let sIdxSelfUnlockHeight = 11 | |
275 | 275 | ||
276 | 276 | let sIdxRandUnlockHeight = 12 | |
277 | 277 | ||
278 | 278 | let sIdxIndex = 13 | |
279 | 279 | ||
280 | 280 | let sIdxWithdrawTxId = 14 | |
281 | 281 | ||
282 | 282 | let sIdxMinRand = 15 | |
283 | 283 | ||
284 | 284 | let sIdxMaxRand = 16 | |
285 | 285 | ||
286 | 286 | func swapKEY (userAddress,txId) = makeString(["%s%s", userAddress, txId], SEP) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | 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) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | 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", "0", "0") | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | 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, dataArray[sIdxMinRand], dataArray[sIdxMaxRand]) | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func swapDataFailOrREAD (userAddress,swapTxId) = { | |
299 | 299 | let swapKey = swapKEY(userAddress, swapTxId) | |
300 | 300 | split(valueOrErrorMessage(getString(this, swapKey), ("no swap data for " + swapKey)), SEP) | |
301 | 301 | } | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func applyFees (amountGross,feePart) = { | |
305 | 305 | let feeAmount = fraction(amountGross, feePart, PAULI) | |
306 | 306 | [(amountGross - feeAmount), feeAmount, amountGross] | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func abs (x) = if ((0 > x)) | |
311 | 311 | then -(x) | |
312 | 312 | else x | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func selectNode (unleaseAmount) = { | |
316 | 316 | let amountToLease = ((wavesBalance(neutrinoContract).available - unleaseAmount) - getReservedAmountForSponsorship()) | |
317 | 317 | let oldLeased0 = getNumberByKey(getLeaseAmountKey(0)) | |
318 | 318 | let oldLeased1 = getNumberByKey(getLeaseAmountKey(1)) | |
319 | 319 | let newLeased0 = (amountToLease + oldLeased0) | |
320 | 320 | let newLeased1 = (amountToLease + oldLeased1) | |
321 | 321 | if (if ((newLeased0 > 0)) | |
322 | 322 | then true | |
323 | 323 | else (newLeased1 > 0)) | |
324 | 324 | then { | |
325 | 325 | let delta0 = abs((newLeased0 - oldLeased1)) | |
326 | 326 | let delta1 = abs((newLeased1 - oldLeased0)) | |
327 | 327 | if ((delta1 >= delta0)) | |
328 | 328 | then $Tuple2(0, newLeased0) | |
329 | 329 | else $Tuple2(1, newLeased1) | |
330 | 330 | } | |
331 | 331 | else $Tuple2(-1, 0) | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func thisOnly (i) = if ((i.caller != this)) | |
336 | 336 | then throw("Permission denied: this contract only allowed") | |
337 | 337 | else true | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | func prepareUnleaseAndLease (unleaseAmount) = { | |
341 | 341 | let nodeTuple = selectNode(unleaseAmount) | |
342 | 342 | let nodeIndex = nodeTuple._1 | |
343 | 343 | let newLeaseAmount = nodeTuple._2 | |
344 | 344 | if ((newLeaseAmount > 0)) | |
345 | 345 | then { | |
346 | 346 | let leaseIdKey = getLeaseIdKey(nodeIndex) | |
347 | 347 | let oldLease = getBinary(this, leaseIdKey) | |
348 | 348 | let unleaseOrEmpty = if (isDefined(oldLease)) | |
349 | 349 | then [LeaseCancel(value(oldLease))] | |
350 | 350 | else nil | |
351 | 351 | let leaseAmountKey = getLeaseAmountKey(nodeIndex) | |
352 | 352 | let lease = Lease(getStakingNodeAddressByIndex(nodeIndex), newLeaseAmount) | |
353 | 353 | (unleaseOrEmpty ++ [lease, BinaryEntry(leaseIdKey, calculateLeaseId(lease)), IntegerEntry(getLeaseAmountKey(nodeIndex), newLeaseAmount)]) | |
354 | 354 | } | |
355 | 355 | else nil | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | func commonWithdraw (account,index,swapTxId,i) = { | |
360 | 360 | let userAddress = addressFromStringValue(account) | |
361 | 361 | let feeManagerAddress = feeManagerAddressREAD() | |
362 | 362 | let dataArray = swapDataFailOrREAD(account, swapTxId) | |
363 | 363 | let selfUnlockHeight = parseIntValue(dataArray[sIdxSelfUnlockHeight]) | |
364 | 364 | let swapType = dataArray[sIdxSwapType] | |
365 | 365 | let inAmount = parseIntValue(dataArray[sIdxInAmount]) | |
366 | 366 | let swapStatus = dataArray[sIdxStatus] | |
367 | 367 | let startHeight = parseIntValue(dataArray[sIdxStartHeight]) | |
368 | 368 | let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE) | |
369 | 369 | let totalLocked = totalLockedREAD(swapType) | |
370 | 370 | let totalLockedByUser = totalLockedByUserREAD(swapType, account) | |
371 | 371 | let unlockHeight = (startHeight + getIntegerValue(this, balanceLockIntervalKEY(swapType))) | |
372 | 372 | let indexHeight = getHeightPriceByIndex(index) | |
373 | 373 | let prevIndexHeight = getHeightPriceByIndex((index - 1)) | |
374 | 374 | let priceByIndex = getPriceHistory(indexHeight) | |
375 | 375 | let outAmountGrossTuple = if ((swapType == "waves")) | |
376 | 376 | then $Tuple2(convertWavesToNeutrino(inAmount, priceByIndex), neutrinoAssetId) | |
377 | 377 | else if ((swapType == "neutrino")) | |
378 | 378 | then $Tuple2(convertNeutrinoToWaves(inAmount, priceByIndex), unit) | |
379 | 379 | else throw(("Unsupported swap type " + swapType)) | |
380 | 380 | let payoutsArray = applyFees(outAmountGrossTuple._1, outFeePart) | |
381 | 381 | let outNetAmount = payoutsArray[IdxNetAmount] | |
382 | 382 | let outFeeAmount = payoutsArray[IdxFeeAmount] | |
383 | 383 | if (isBlocked) | |
384 | 384 | then emergencyShutdownFAIL() | |
385 | 385 | else if ((swapStatus != "PENDING")) | |
386 | 386 | then throw("swap has been already processed") | |
387 | 387 | else if ((unlockHeight > height)) | |
388 | 388 | then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw funds")) | |
389 | 389 | else if (if (if ((index > priceIndex)) | |
390 | 390 | then true | |
391 | 391 | else (unlockHeight > indexHeight)) | |
392 | 392 | then true | |
393 | 393 | else if ((prevIndexHeight != 0)) | |
394 | 394 | then (prevIndexHeight >= unlockHeight) | |
395 | 395 | else false) | |
396 | 396 | then priceIndexFAIL(index, priceIndex, indexHeight, unlockHeight, prevIndexHeight) | |
397 | 397 | else if ((0 >= payoutsArray[IdxGrossAmount])) | |
398 | 398 | then throw("balance equals zero") | |
399 | 399 | else if (if ((0 > outFeePart)) | |
400 | 400 | then true | |
401 | 401 | else (outFeePart >= PAULI)) | |
402 | 402 | then throw(((("invalid outFeePart config for " + swapType) + " swap: outFeePart=") + toString(outFeePart))) | |
403 | 403 | else { | |
404 | 404 | let leasePart = if (if ((swapType == "neutrino")) | |
405 | 405 | then (outAmountGrossTuple._1 > 0) | |
406 | 406 | else false) | |
407 | 407 | then prepareUnleaseAndLease(outAmountGrossTuple._1) | |
408 | 408 | else nil | |
409 | 409 | $Tuple2((leasePart ++ [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAmountGrossTuple._2), ScriptTransfer(feeManagerAddress, outFeeAmount, outAmountGrossTuple._2), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, priceByIndex, outNetAmount, outFeeAmount, unlockHeight, index, toBase58String(i.transactionId)))]), unit) | |
410 | 410 | } | |
411 | 411 | } | |
412 | 412 | ||
413 | 413 | ||
414 | 414 | @Callable(i) | |
415 | 415 | func constructor (neutrinoAssetIdPrm,bondAssetIdPrm,auctionContractPrm,liquidationContractPrm,rpdContractPrm,nodeOracleProviderPubKeyPrm,balanceWavesLockIntervalPrm,balanceNeutrinoLockIntervalPrm,minWavesSwapAmountPrm,minNeutrinoSwapAmountPrm,neutrinoOutFeePartPrm,wavesOutFeePartPrm) = { | |
416 | 416 | let checkCaller = thisOnly(i) | |
417 | 417 | if ((checkCaller == checkCaller)) | |
418 | 418 | then [StringEntry(NeutrinoAssetIdKey, neutrinoAssetIdPrm), StringEntry(BondAssetIdKey, bondAssetIdPrm), StringEntry(AuctionContractKey, auctionContractPrm), StringEntry(LiquidationContractKey, liquidationContractPrm), StringEntry(RPDContractKey, rpdContractPrm), StringEntry(NodeOracleProviderPubKeyKey, nodeOracleProviderPubKeyPrm), IntegerEntry(BalanceWavesLockIntervalKey, balanceWavesLockIntervalPrm), IntegerEntry(BalanceNeutrinoLockIntervalKey, balanceNeutrinoLockIntervalPrm), IntegerEntry(MinWavesSwapAmountKey, minWavesSwapAmountPrm), IntegerEntry(MinNeutrinoSwapAmountKey, minNeutrinoSwapAmountPrm), IntegerEntry(NeutrinoOutFeePartKey, neutrinoOutFeePartPrm), IntegerEntry(WavesOutFeePartKey, wavesOutFeePartPrm)] | |
419 | 419 | else throw("Strict value is not equal to itself.") | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | ||
424 | 424 | @Callable(i) | |
425 | 425 | func constructorV2 (mathContract,nsbtStakingContract,swapsTimeframeBlocks) = { | |
426 | 426 | let checkCaller = thisOnly(i) | |
427 | 427 | if ((checkCaller == checkCaller)) | |
428 | 428 | then [StringEntry(MathContractKey, mathContract), StringEntry(NsbtStakingContractKey, nsbtStakingContract), IntegerEntry(swapsTimeframeKEY(), swapsTimeframeBlocks)] | |
429 | 429 | else throw("Strict value is not equal to itself.") | |
430 | 430 | } | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | ||
434 | 434 | @Callable(i) | |
435 | 435 | func commonSwap (swapType,pmtAmount,userAddressStr,txId58) = { | |
436 | 436 | let checkThisOriginCaller = if ((i.caller != this)) | |
437 | 437 | then throw("Permission denied. Wrong caller.") | |
438 | 438 | else true | |
439 | 439 | if ((checkThisOriginCaller == checkThisOriginCaller)) | |
440 | 440 | then { | |
441 | 441 | let checkCaller = if ((i.originCaller != addressFromStringValue(userAddressStr))) | |
442 | 442 | then throw("Permission denied. Wrong origin caller.") | |
443 | 443 | else true | |
444 | 444 | if ((checkCaller == checkCaller)) | |
445 | 445 | then { | |
446 | 446 | let minSwapAmount = minSwapAmountREAD(swapType) | |
447 | 447 | let totalLocked = totalLockedREAD(swapType) | |
448 | 448 | let totalLockedByUser = totalLockedByUserREAD(swapType, userAddressStr) | |
449 | 449 | let nodeAddress = getStakingNodeByIndex(0) | |
450 | 450 | let balanceLockMaxInterval = if ((nodeAddress == userAddressStr)) | |
451 | 451 | then nodeBalanceLockIntervalREAD() | |
452 | 452 | else balanceLockIntervalREAD(swapType) | |
453 | 453 | let selfUnlockHeight = (height + balanceLockMaxInterval) | |
454 | 454 | let amountCheck = if ((minSwapAmount > pmtAmount)) | |
455 | 455 | then minSwapAmountFAIL(swapType, minSwapAmount) | |
456 | 456 | else true | |
457 | 457 | if ((amountCheck == amountCheck)) | |
458 | 458 | then { | |
459 | 459 | let lastSwapHeight = getNumberByKey(keyUserLastQuickSwapHeight(userAddressStr)) | |
460 | 460 | let swapsTimeframeBlocks = swapsTimeframeREAD() | |
461 | - | let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddressStr)), 0) | |
462 | - | let quickSwapLimitTotal = asInt(invoke(mathContract, "calcSwapLimitMATH", [userGNsbtAmount], nil)) | |
463 | - | if ((quickSwapLimitTotal == quickSwapLimitTotal)) | |
464 | - | then { | |
465 | - | let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex)) | |
466 | - | let swapUsdnVolume = if ((swapType == "neutrino")) | |
467 | - | then pmtAmount | |
468 | - | else convertWavesToNeutrino(pmtAmount, priceByIndex) | |
469 | - | if (isBlocked) | |
470 | - | then emergencyShutdownFAIL() | |
471 | - | else { | |
472 | - | let leasePart = if ((swapType == "waves")) | |
473 | - | then prepareUnleaseAndLease(0) | |
474 | - | else nil | |
475 | - | $Tuple2(([IntegerEntry(keyQuickSwapUserSpentInPeriod(userAddressStr), swapUsdnVolume), IntegerEntry(keyUserLastQuickSwapHeight(userAddressStr), height), IntegerEntry(totalLockedByUserKEY(swapType, userAddressStr), (totalLockedByUser + pmtAmount)), IntegerEntry(getBalanceUnlockBlockKey(userAddressStr), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType), (totalLocked + pmtAmount)), StringEntry(swapKEY(userAddressStr, txId58), pendingSwapDATA(swapType, pmtAmount, selfUnlockHeight))] ++ leasePart), unit) | |
461 | + | if ((swapsTimeframeBlocks > (height - lastSwapHeight))) | |
462 | + | then throw(("You have exceeded swap limit for 24h! Next allowed swap height is " + toString((lastSwapHeight + swapsTimeframeBlocks)))) | |
463 | + | else { | |
464 | + | let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddressStr)), 0) | |
465 | + | let quickSwapLimitTotal = asInt(invoke(mathContract, "calcSwapLimitMATH", [userGNsbtAmount], nil)) | |
466 | + | if ((quickSwapLimitTotal == quickSwapLimitTotal)) | |
467 | + | then { | |
468 | + | let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex)) | |
469 | + | let swapUsdnVolume = if ((swapType == "neutrino")) | |
470 | + | then pmtAmount | |
471 | + | else convertWavesToNeutrino(pmtAmount, priceByIndex) | |
472 | + | if ((swapUsdnVolume > quickSwapLimitTotal)) | |
473 | + | then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(quickSwapLimitTotal))) | |
474 | + | else if (isBlocked) | |
475 | + | then emergencyShutdownFAIL() | |
476 | + | else { | |
477 | + | let leasePart = if ((swapType == "waves")) | |
478 | + | then prepareUnleaseAndLease(0) | |
479 | + | else nil | |
480 | + | $Tuple2(([IntegerEntry(keyQuickSwapUserSpentInPeriod(userAddressStr), swapUsdnVolume), IntegerEntry(keyUserLastQuickSwapHeight(userAddressStr), height), IntegerEntry(totalLockedByUserKEY(swapType, userAddressStr), (totalLockedByUser + pmtAmount)), IntegerEntry(getBalanceUnlockBlockKey(userAddressStr), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType), (totalLocked + pmtAmount)), StringEntry(swapKEY(userAddressStr, txId58), pendingSwapDATA(swapType, pmtAmount, selfUnlockHeight))] ++ leasePart), unit) | |
481 | + | } | |
476 | 482 | } | |
483 | + | else throw("Strict value is not equal to itself.") | |
477 | 484 | } | |
478 | - | else throw("Strict value is not equal to itself.") | |
479 | 485 | } | |
480 | 486 | else throw("Strict value is not equal to itself.") | |
481 | 487 | } | |
482 | 488 | else throw("Strict value is not equal to itself.") | |
483 | 489 | } | |
484 | 490 | else throw("Strict value is not equal to itself.") | |
485 | 491 | } | |
486 | 492 | ||
487 | 493 | ||
488 | 494 | ||
489 | 495 | @Callable(i) | |
490 | 496 | func swapWavesToNeutrino () = { | |
491 | 497 | let pmt = value(i.payments[0]) | |
492 | 498 | if (isDefined(pmt.assetId)) | |
493 | 499 | then throw("Only Waves token is allowed for swapping.") | |
494 | 500 | else { | |
495 | 501 | let userAddress = toString(i.caller) | |
496 | 502 | let txId58 = toBase58String(i.transactionId) | |
497 | 503 | let commonSwapInv = invoke(this, "commonSwap", ["waves", pmt.amount, userAddress, txId58], nil) | |
498 | 504 | if ((commonSwapInv == commonSwapInv)) | |
499 | 505 | then nil | |
500 | 506 | else throw("Strict value is not equal to itself.") | |
501 | 507 | } | |
502 | 508 | } | |
503 | 509 | ||
504 | 510 | ||
505 | 511 | ||
506 | 512 | @Callable(i) | |
507 | 513 | func swapNeutrinoToWaves () = { | |
508 | 514 | let pmt = value(i.payments[0]) | |
509 | 515 | if ((pmt.assetId != neutrinoAssetId)) | |
510 | 516 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
511 | 517 | else { | |
512 | 518 | let userAddress = toString(i.caller) | |
513 | 519 | let txId58 = toBase58String(i.transactionId) | |
514 | 520 | let commonSwapInv = invoke(this, "commonSwap", ["neutrino", pmt.amount, userAddress, txId58], nil) | |
515 | 521 | if ((commonSwapInv == commonSwapInv)) | |
516 | 522 | then nil | |
517 | 523 | else throw("Strict value is not equal to itself.") | |
518 | 524 | } | |
519 | 525 | } | |
520 | 526 | ||
521 | 527 | ||
522 | 528 | ||
523 | 529 | @Callable(i) | |
524 | 530 | func withdraw (account,index,swapTxId) = commonWithdraw(account, index, swapTxId, i) | |
525 | 531 | ||
526 | 532 | ||
527 | 533 | ||
528 | 534 | @Callable(i) | |
529 | 535 | func transferToAuction () = { | |
530 | 536 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsMATH", nil, nil)) | |
531 | 537 | let reserve = asInt(neutrinoMetrics[3]) | |
532 | 538 | let neutrinoSupply = asInt(neutrinoMetrics[5]) | |
533 | 539 | let surplus = asInt(neutrinoMetrics[6]) | |
534 | 540 | let nsbtSupply = asInt(neutrinoMetrics[9]) | |
535 | 541 | let auctionNBAmount = (neutrinoSupply - assetBalance(addressFromStringValue(auctionContract), bondAssetId)) | |
536 | 542 | let surplusWithLiquidation = (surplus - assetBalance(addressFromStringValue(liquidationContract), neutrinoAssetId)) | |
537 | 543 | if (isBlocked) | |
538 | 544 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
539 | 545 | else if ((auctionNBAmount > (1 * PAULI))) | |
540 | 546 | then [ScriptTransfer(addressFromStringValue(auctionContract), auctionNBAmount, bondAssetId)] | |
541 | 547 | else if ((surplusWithLiquidation >= (1 * PAULI))) | |
542 | 548 | then [ScriptTransfer(addressFromStringValue(liquidationContract), surplusWithLiquidation, neutrinoAssetId)] | |
543 | 549 | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(auctionNBAmount)) + "|") + toString(0)) + ". Surplus:") + toString(surplusWithLiquidation)) + "|") + toString(surplus))) | |
544 | 550 | } | |
545 | 551 | ||
546 | 552 | ||
547 | 553 | ||
548 | 554 | @Callable(i) | |
549 | 555 | func transferUsdnToUser (amount,addr) = if ((i.caller != addressFromStringValue(auctionContract))) | |
550 | 556 | then throw("Only auction contract is authorized") | |
551 | 557 | else [ScriptTransfer(addressFromStringValue(addr), amount, neutrinoAssetId)] | |
552 | 558 | ||
553 | 559 | ||
554 | 560 | ||
555 | 561 | @Callable(i) | |
556 | 562 | func acceptWaves () = if ((i.caller != addressFromStringValue(auctionContract))) | |
557 | 563 | then throw("Currently only auction contract is allowed to call") | |
558 | 564 | else $Tuple2(prepareUnleaseAndLease(0), "success") | |
559 | 565 | ||
560 | 566 | ||
561 | 567 | @Verifier(tx) | |
562 | 568 | func verify () = { | |
563 | 569 | let id = toBase58String(tx.id) | |
564 | 570 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
565 | 571 | then 1 | |
566 | 572 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
567 | 573 | then 1 | |
568 | 574 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
569 | 575 | then 1 | |
570 | 576 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
571 | 577 | then 2 | |
572 | 578 | else 0)) | |
573 | 579 | match tx { | |
574 | 580 | case sponsorTx: SponsorFeeTransaction => | |
575 | 581 | if (checkIsValidMinSponsoredFee(sponsorTx)) | |
576 | 582 | then (count >= 3) | |
577 | 583 | else false | |
578 | 584 | case _ => | |
579 | 585 | (count >= 3) | |
580 | 586 | } | |
581 | 587 | } | |
582 | 588 |
github/deemru/w8io/026f985 65.75 ms ◑