tx · CY4RpcSwX6zoRSZeuGqdiXYAyVcPReezgYUFkxb12Yrc 3MxUeE9rS9G3ap3kSrw67vkjYyTL3QLJnk3: -0.02000000 Waves 2020.06.16 19:31 [1046307] smart account 3MxUeE9rS9G3ap3kSrw67vkjYyTL3QLJnk3 > SELF 0.00000000 Waves
{ "type": 13, "id": "CY4RpcSwX6zoRSZeuGqdiXYAyVcPReezgYUFkxb12Yrc", "fee": 2000000, "feeAssetId": null, "timestamp": 1592325080023, "version": 1, "sender": "3MxUeE9rS9G3ap3kSrw67vkjYyTL3QLJnk3", "senderPublicKey": "3VHsLLWkFL98S7B2qFvsehH7yt6RF3dJouXsR5X3WHHZ", "proofs": [ "3q7NzQDPaNq4hURwVXKGLmuVijJYUSeyAW5oXE5gnSq4asnTxxZjhkWFrRmQGnYidr46rAuSXMY4HHuV37QukPoi", "XfTBx4nvQTC1ugYXNWjg9tiNSRcgif5zHYoJSMjN8QcciyLpcoMRMY1WzN31UKf3yXebTRubmEwybxo7SJJebeY", "373V8k7cMMxs7ayGUBt7N2Zm84nQQYjF6SPpwktxuhEkcCSouSAW2YEfFEXg2iBbcHJL6UCJJ96LEKNmPn4v95SV" ], "script": "base64:AAIDAAAAAAAAABcIARIAEgASBAoCCAESABIDCgEIEgASAAAAAEsBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkE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AAHJG1hdGNoMAIAAAAWTGVhc2VDYW5jZWxUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQTGVhc2VUcmFuc2FjdGlvbgQAAAAJbGVhc2luZ1R4BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAlsZWFzaW5nVHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAlsZWFzaW5nVHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABhub2RlT3JhY2xlUHJvdmlkZXJQdWJLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFVNwb25zb3JGZWVUcmFuc2FjdGlvbgQAAAAJc3BvbnNvclR4BQAAAAckbWF0Y2gwAwkBAAAAG2NoZWNrSXNWYWxpZE1pblNwb25zb3JlZEZlZQAAAAEFAAAACXNwb25zb3JUeAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAAwcJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAN4H0zi", "chainId": 84, "height": 1046307, "spentComplexity": 0 } View: original | compacted Prev: 9td7wDZWLgCtvgPniJYVzNRiHDay3XTDj13Tz5oBkCEb Next: 9fqXsoa7d5zs3RgSuGwzXRoD55PdnF9NA1rEa9KQG21B Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getNumberByKey (key) = match getInteger(this, key) { | |
5 | 5 | case a: Int => | |
6 | 6 | a | |
7 | 7 | case _ => | |
8 | 8 | 0 | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func getStringByKey (key) = match getString(this, key) { | |
13 | 13 | case a: String => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | "" | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func getBoolByKey (key) = match getBoolean(this, key) { | |
21 | 21 | case a: Boolean => | |
22 | 22 | a | |
23 | 23 | case _ => | |
24 | 24 | false | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func getNumberByAddressAndKey (address,key) = match getInteger(addressFromStringValue(address), key) { | |
29 | 29 | case a: Int => | |
30 | 30 | a | |
31 | 31 | case _ => | |
32 | 32 | 0 | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getStringByAddressAndKey (address,key) = match getString(addressFromStringValue(address), key) { | |
37 | 37 | case a: String => | |
38 | 38 | a | |
39 | 39 | case _ => | |
40 | 40 | "" | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func getBoolByAddressAndKey (address,key) = match getBoolean(addressFromStringValue(address), key) { | |
45 | 45 | case a: Boolean => | |
46 | 46 | a | |
47 | 47 | case _ => | |
48 | 48 | false | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let pubKeyAdminsList = ["D96T5UoL7E2FERaEwov9Frx8XFVPNGqZ4TyDiWvn1urJ", "Fk2zgbrRA8KytTVMVy6Df5i4tTEsKaqg6ybh6x6Hehjj", "37f1yE54FyMKwEkg413peq5Gbze9sBavASVeTYbQLTvJ", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
53 | 53 | ||
54 | 54 | let SENDTXEXPIRE = 30 | |
55 | 55 | ||
56 | 56 | let LISTSPLITSYMBOL = "_" | |
57 | 57 | ||
58 | 58 | let LISTDATASYMBOL = "+" | |
59 | 59 | ||
60 | 60 | let WAVELET = 100000000 | |
61 | 61 | ||
62 | 62 | let PAULI = 1000000 | |
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 LiquidationContractKey = "liquidation_contract" | |
71 | 71 | ||
72 | 72 | let RPDContractKey = "rpd_contract" | |
73 | 73 | ||
74 | 74 | let ContolContractKey = "control_contract" | |
75 | 75 | ||
76 | 76 | let BalanceWavesLockIntervalKey = "balance_waves_lock_interval" | |
77 | 77 | ||
78 | 78 | let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval" | |
79 | 79 | ||
80 | 80 | let MinWavesSwapAmountKey = "min_waves_swap_amount" | |
81 | 81 | ||
82 | 82 | let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount" | |
83 | 83 | ||
84 | 84 | let NodeOracleProviderPubKeyKey = "node_oracle_provider" | |
85 | 85 | ||
86 | 86 | let RPDBalanceKey = "rpd_balance" | |
87 | 87 | ||
88 | 88 | func getRPDContractBalanceKey (assetId) = ((RPDBalanceKey + "_") + toBase58String(assetId)) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | let PriceKey = "price" | |
92 | 92 | ||
93 | 93 | let PriceIndexKey = "price_index" | |
94 | 94 | ||
95 | 95 | let IsBlockedKey = "is_blocked" | |
96 | 96 | ||
97 | 97 | func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block)) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | let BalanceLockedkKey = "balance_lock_" | |
104 | 104 | ||
105 | 105 | let WavesLockedBalanceKey = (BalanceLockedkKey + "waves") | |
106 | 106 | ||
107 | 107 | let NeutrinoLockedBalanceKey = (BalanceLockedkKey + "neutrino") | |
108 | 108 | ||
109 | 109 | func getRPDSnapshotContractBalanceKey (count,assetId) = ((((RPDBalanceKey + "_") + toBase58String(assetId)) + "_") + toString(count)) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getCancelLeaseTxReserveFeeKey (hash) = (("cancel_lease_tx_reserve_fee" + "_") + hash) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func getWavesLockedBalanceKey (owner) = ((WavesLockedBalanceKey + "_") + owner) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getNeutrinoLockedBalanceKey (owner) = ((NeutrinoLockedBalanceKey + "_") + owner) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getRPDProfitKey (count) = (("rpd_profit" + "_") + toString(count)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, 100, price), WAVELET, PAULI) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, 100), PAULI, WAVELET) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | let liquidationContract = getStringByKey(LiquidationContractKey) | |
140 | 140 | ||
141 | 141 | let neutrinoAssetIdString = getStringByKey(NeutrinoAssetIdKey) | |
142 | 142 | ||
143 | 143 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
144 | 144 | ||
145 | 145 | let auctionContract = getStringByKey(AuctionContractKey) | |
146 | 146 | ||
147 | 147 | let rpdContract = getStringByKey(RPDContractKey) | |
148 | 148 | ||
149 | 149 | let controlContract = getStringByKey(ContolContractKey) | |
150 | 150 | ||
151 | 151 | let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey) | |
152 | 152 | ||
153 | 153 | let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey) | |
154 | 154 | ||
155 | 155 | let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey)) | |
156 | 156 | ||
157 | 157 | let balanceWavesLockInterval = getNumberByKey(BalanceWavesLockIntervalKey) | |
158 | 158 | ||
159 | 159 | let balanceNeutrinoLockInterval = getNumberByKey(BalanceNeutrinoLockIntervalKey) | |
160 | 160 | ||
161 | 161 | let minWavesSwapAmount = getNumberByKey(MinWavesSwapAmountKey) | |
162 | 162 | ||
163 | 163 | let minNeutrinoSwapAmount = getNumberByKey(MinNeutrinoSwapAmountKey) | |
164 | 164 | ||
165 | 165 | let bondAssetId = fromBase58String("91QmVf3hZQJeUX11nurBX76Quf94kQgVMDesqALsjQFN") | |
166 | 166 | ||
167 | 167 | let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
168 | 168 | ||
169 | 169 | let neutrinoContract = this | |
170 | 170 | ||
171 | 171 | let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey) | |
172 | 172 | ||
173 | 173 | let neutrinoLockedBalance = getNumberByKey(NeutrinoLockedBalanceKey) | |
174 | 174 | ||
175 | 175 | let wavesLockedBalance = getNumberByKey(WavesLockedBalanceKey) | |
176 | 176 | ||
177 | 177 | let reserve = (wavesBalance(neutrinoContract) - wavesLockedBalance) | |
178 | 178 | ||
179 | 179 | let neutrinoSupply = (((neutrinoLockedBalance + extract(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(addressFromStringValue(liquidationContract), neutrinoAssetId)) | |
180 | 180 | ||
181 | 181 | let surplus = (convertWavesToNeutrino(reserve, currentPrice) - neutrinoSupply) | |
182 | 182 | ||
183 | 183 | let deficit = (neutrinoSupply - convertWavesToNeutrino(reserve, currentPrice)) | |
184 | 184 | ||
185 | 185 | func checkIsValidMinSponsoredFee (tx) = { | |
186 | 186 | let MINTRANSFERFEE = 100000 | |
187 | 187 | let SponsoredFeeUpperBound = 1000 | |
188 | 188 | let realNeutrinoFee = convertWavesToNeutrino(MINTRANSFERFEE, currentPrice) | |
189 | 189 | let minNeutrinoFee = (realNeutrinoFee * 2) | |
190 | 190 | let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100) | |
191 | 191 | let inputFee = extract(tx.minSponsoredAssetFee) | |
192 | 192 | if (if ((inputFee >= minNeutrinoFee)) | |
193 | 193 | then (maxNeutrinoFee >= inputFee) | |
194 | 194 | else false) | |
195 | 195 | then (tx.assetId == neutrinoAssetId) | |
196 | 196 | else false | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func getRPDContractBalance (assetId) = getNumberByAddressAndKey(rpdContract, getRPDContractBalanceKey(assetId)) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block)) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index)) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func getCancelLeaseTxReserveFee (hash) = getNumberByKey(getCancelLeaseTxReserveFeeKey(hash)) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func getWavesLockedBalance (owner) = getNumberByKey(getWavesLockedBalanceKey(owner)) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func getNeutrinoLockedBalance (owner) = getNumberByKey(getNeutrinoLockedBalanceKey(owner)) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func getUnlockBalanceBlock (owner) = getNumberByKey(getBalanceUnlockBlockKey(owner)) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func getRPDProfit (count) = getNumberByKey(getRPDProfitKey(count)) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(i) | |
225 | 225 | func swapWavesToNeutrino () = { | |
226 | 226 | let pmt = extract(i.payment) | |
227 | 227 | let account = toString(i.caller) | |
228 | 228 | if ((minWavesSwapAmount > pmt.amount)) | |
229 | 229 | then throw((("The specified Waves amount is less than the required minimum of " + toString(minWavesSwapAmount)) + " wavelets.")) | |
230 | 230 | else if (isDefined(pmt.assetId)) | |
231 | 231 | then throw("Only Waves token is allowed for swapping.") | |
232 | 232 | else if (isBlocked) | |
233 | 233 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
234 | 234 | else if ((getUnlockBalanceBlock(account) > height)) | |
235 | 235 | then throw((("await " + toString((getUnlockBalanceBlock(account) - height))) + " blocks")) | |
236 | 236 | else if (if ((getNeutrinoLockedBalance(account) != 0)) | |
237 | 237 | then true | |
238 | 238 | else (getWavesLockedBalance(account) != 0)) | |
239 | 239 | then throw("please withdraw locked funds first") | |
240 | 240 | else WriteSet([DataEntry(getWavesLockedBalanceKey(account), pmt.amount), DataEntry(getBalanceUnlockBlockKey(account), (height + balanceWavesLockInterval)), DataEntry(WavesLockedBalanceKey, (wavesLockedBalance + pmt.amount))]) | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(i) | |
246 | 246 | func swapNeutrinoToWaves () = { | |
247 | 247 | let pmt = extract(i.payment) | |
248 | 248 | let account = toString(i.caller) | |
249 | 249 | if ((minNeutrinoSwapAmount > pmt.amount)) | |
250 | 250 | then throw((("The specified Neutrino amount is less than the required minimum of " + toString(minNeutrinoSwapAmount)) + " Neutrino cents.")) | |
251 | 251 | else if (isBlocked) | |
252 | 252 | then throw("The contract is blocked by EMERGENCY SHUTDOWN. Please wait for reactivation by emergency oracles.") | |
253 | 253 | else if ((pmt.assetId != neutrinoAssetId)) | |
254 | 254 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
255 | 255 | else if ((getUnlockBalanceBlock(account) > height)) | |
256 | 256 | then throw((("await " + toString((getUnlockBalanceBlock(account) - height))) + " blocks")) | |
257 | 257 | else if (if ((getNeutrinoLockedBalance(account) != 0)) | |
258 | 258 | then true | |
259 | 259 | else (getWavesLockedBalance(account) != 0)) | |
260 | 260 | then throw("please withdraw locked funds first") | |
261 | 261 | else WriteSet([DataEntry(getNeutrinoLockedBalanceKey(account), pmt.amount), DataEntry(getBalanceUnlockBlockKey(account), (height + balanceNeutrinoLockInterval)), DataEntry(NeutrinoLockedBalanceKey, (neutrinoLockedBalance + pmt.amount))]) | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | ||
266 | 266 | @Callable(i) | |
267 | 267 | func withdraw (account,index) = { | |
268 | 268 | let unlockHeight = getUnlockBalanceBlock(account) | |
269 | 269 | let userWavesLockedBalance = getWavesLockedBalance(account) | |
270 | 270 | let userNeutrinoLockedBalance = getNeutrinoLockedBalance(account) | |
271 | 271 | let indexHeight = getHeightPriceByIndex(index) | |
272 | 272 | let prevIndexHeight = getHeightPriceByIndex((index - 1)) | |
273 | 273 | let priceByIndex = getPriceHistory(indexHeight) | |
274 | 274 | let spread = 0 | |
275 | 275 | let neutrinoAmount = convertWavesToNeutrino(userWavesLockedBalance, (priceByIndex - spread)) | |
276 | 276 | let wavesAmount = convertNeutrinoToWaves(userNeutrinoLockedBalance, (priceByIndex + spread)) | |
277 | 277 | if (isBlocked) | |
278 | 278 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
279 | 279 | else if ((unlockHeight > height)) | |
280 | 280 | then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw WAVES funds")) | |
281 | 281 | else if (if (if ((index > priceIndex)) | |
282 | 282 | then true | |
283 | 283 | else (unlockHeight > indexHeight)) | |
284 | 284 | then true | |
285 | 285 | else if ((prevIndexHeight != 0)) | |
286 | 286 | then (prevIndexHeight >= unlockHeight) | |
287 | 287 | else false) | |
288 | 288 | then throw(((((((((("invalid price history index: index=" + toString(index)) + " priceIndex=") + toString(priceIndex)) + " indexHeight=") + toString(indexHeight)) + " unlockHeight=") + toString(unlockHeight)) + " prevIndexHeight=") + toString(prevIndexHeight))) | |
289 | 289 | else if (if ((0 >= neutrinoAmount)) | |
290 | 290 | then (0 >= wavesAmount) | |
291 | 291 | else false) | |
292 | 292 | then throw("balance equals zero") | |
293 | 293 | else ScriptResult(WriteSet([DataEntry(getWavesLockedBalanceKey(account), 0), DataEntry(getNeutrinoLockedBalanceKey(account), 0), DataEntry(WavesLockedBalanceKey, (wavesLockedBalance - userWavesLockedBalance)), DataEntry(NeutrinoLockedBalanceKey, (neutrinoLockedBalance - userNeutrinoLockedBalance))]), TransferSet([ScriptTransfer(addressFromStringValue(account), wavesAmount, unit), ScriptTransfer(addressFromStringValue(account), neutrinoAmount, neutrinoAssetId)])) | |
294 | 294 | } | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | ||
298 | 298 | @Callable(i) | |
299 | 299 | func transferToAuction () = { | |
300 | 300 | let auctionNBAmount = (neutrinoSupply - assetBalance(addressFromStringValue(auctionContract), bondAssetId)) | |
301 | 301 | let surplusWithLiquidation = (surplus - assetBalance(addressFromStringValue(liquidationContract), neutrinoAssetId)) | |
302 | 302 | if (isBlocked) | |
303 | 303 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
304 | 304 | else if ((auctionNBAmount > (1 * PAULI))) | |
305 | 305 | then TransferSet([ScriptTransfer(addressFromStringValue(auctionContract), auctionNBAmount, bondAssetId)]) | |
306 | 306 | else if ((surplusWithLiquidation >= (1 * PAULI))) | |
307 | 307 | then TransferSet([ScriptTransfer(addressFromStringValue(liquidationContract), surplusWithLiquidation, neutrinoAssetId)]) | |
308 | 308 | else throw(((((((("bond were generated or do not need it. Deficit:" + toString(auctionNBAmount)) + "|") + toString(0)) + ". Surplus:") + toString(surplusWithLiquidation)) + "|") + toString(surplus))) | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | ||
313 | 313 | @Callable(i) | |
314 | 314 | func transfer (account) = { | |
315 | 315 | let pmt = extract(i.payment) | |
316 | 316 | TransferSet([ScriptTransfer(addressFromStringValue(account), pmt.amount, pmt.assetId)]) | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | ||
321 | 321 | @Callable(i) | |
322 | 322 | func migrationUSDNB2NSBTSwap () = { | |
323 | 323 | let pmt = extract(i.payment) | |
324 | 324 | let account = i.caller | |
325 | 325 | if ((deprecatedBondAssetId != pmt.assetId)) | |
326 | 326 | then throw("error: attempt to swap not USDNB tokens") | |
327 | 327 | else TransferSet([ScriptTransfer(account, (pmt.amount * PAULI), bondAssetId)]) | |
328 | 328 | } | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | ||
332 | 332 | @Callable(i) | |
333 | 333 | func updateReservesAndNeutrinoSupply () = { | |
334 | 334 | func getNumberByKeyInternal (key) = match getInteger(this, key) { | |
335 | 335 | case a: Int => | |
336 | 336 | a | |
337 | 337 | case _ => | |
338 | 338 | 0 | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx") | |
342 | 342 | let newIdx = (idx + 1) | |
343 | 343 | WriteSet([DataEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), DataEntry("reserve", reserve), DataEntry("neutrinoSupply", neutrinoSupply), DataEntry("deficit", deficit), DataEntry("surplus", surplus), DataEntry("bondSupply", (extract(assetInfo(bondAssetId)).quantity - assetBalance(neutrinoContract, bondAssetId)))]) | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | @Verifier(tx) | |
348 | 348 | func verify () = { | |
349 | 349 | let id = toBase58String(tx.id) | |
350 | 350 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
351 | 351 | then 1 | |
352 | 352 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
353 | 353 | then 1 | |
354 | 354 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
355 | 355 | then 1 | |
356 | 356 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
357 | 357 | then 2 | |
358 | 358 | else 0)) | |
359 | 359 | match tx { | |
360 | 360 | case leasingTx: LeaseCancelTransaction|LeaseTransaction => | |
361 | 361 | sigVerify(leasingTx.bodyBytes, leasingTx.proofs[0], nodeOracleProviderPubKey) | |
362 | 362 | case sponsorTx: SponsorFeeTransaction => | |
363 | 363 | if (checkIsValidMinSponsoredFee(sponsorTx)) | |
364 | 364 | then (count >= 3) | |
365 | 365 | else false | |
366 | 366 | case _ => | |
367 | 367 | (count >= 3) | |
368 | 368 | } | |
369 | 369 | } | |
370 | 370 |
github/deemru/w8io/169f3d6 104.36 ms ◑