tx · 9FJWfBCGJGd9duiBsSDAPVxScfmgh511V7jvUe9pgP5g 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi: -0.04000000 Waves 2022.07.11 14:45 [2135034] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves
{ "type": 13, "id": "9FJWfBCGJGd9duiBsSDAPVxScfmgh511V7jvUe9pgP5g", "fee": 4000000, "feeAssetId": null, "timestamp": 1657539966983, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "5b791isKG6HJJTNryawVAPeMNHyF9HdZQWEWWCijB2283phQixnwXP8A3XStWEX6sU675EyqJVp1mHtQhXzqdcuJ" ], "script": "base64:AAIFAAAAAAAAAEMIAhIFCgMICAgSABIDCgEIEgQKAggBEgASAwoBARIFCgMIAQgSAwoBCBIGCgQBAQEBEgQKAgEBEgQKAgEIEgASABIAAAAAXAAAAAALcmV2aXNpb25OdW0CAAAAAAAAAAAGRVVMRVI4AAAAAAAQM8TWAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAAGTVVMVFg2CQABNgAAAAEAAAAAAAAPQkAAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAZNVUxUWDgJAAE2AAAAAQAAAAAABfXhAAAAAAAGTVVMVDEyAAAAAOjUpRAAAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAHV0FWRVNJRAkAAlkAAAABAgAAAAVXQVZFUwAAAAAPbk1ldHJpY0lkeFByaWNlAAAAAAAAAAAAAAAAABtuTWV0cmljSWR4VXNkbkxvY2tlZEJhbGFuY2UAAAAAAAAAAAEAAAAAHG5NZXRyaWNJZHhXYXZlc0xvY2tlZEJhbGFuY2UAAAAAAAAAAAIAAAAAEW5NZXRyaWNJZHhSZXNlcnZlAAAAAAAAA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ationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 71b39dAfXm5YhFqTaAtnaynFDacMqTSarQ5nipDp6Cm3 Next: DKv13essC6sj2n79ra8z16f34KgNca36iLNm1HhJpzHj Diff:
Old | New | Differences | |
---|---|---|---|
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart" | |
113 | + | ||
114 | + | ||
115 | + | func keySwapAmountAParam () = "%s%s__config__swapAParam" | |
116 | + | ||
117 | + | ||
118 | + | func keySwapAmountBParam () = "%s%s__config__swapBParam" | |
113 | 119 | ||
114 | 120 | ||
115 | 121 | func keyNsbtLockContract () = "%s__nsbtLockContract" | |
292 | 298 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
293 | 299 | let minNsbtsell = minNsbtForSell() | |
294 | 300 | let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount()) | |
295 | - | let minWaves4SurfBuy = minWavesForSurfBuy() | |
296 | - | let minUsdn4SurfBuy = minUsdnForSurfBuy() | |
297 | 301 | let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves) | |
298 | 302 | let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn) | |
299 | 303 | let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply) | |
300 | 304 | let surfPriceInWaves = fraction(reservesInWaves, 1, neutrinoSupply) | |
301 | - | $Tuple2(nil, makeString([" | |
305 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply), toString(maxNsbtSupply), toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(maxWaves2BuySurf), toString(maxUsdn2BuySurf), toString(surfPriceInUsdn), toString(surfPriceInWaves)], SEP)) | |
302 | 306 | } | |
303 | 307 | ||
304 | 308 | ||
312 | 316 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
313 | 317 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
314 | 318 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
315 | - | let $ | |
316 | - | let swapLimitMaxUsdn = $ | |
317 | - | let swapLimitSpentUsdn = $ | |
318 | - | let blcks2LmtReset = $ | |
319 | + | let $t01052910693 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
320 | + | let swapLimitMaxUsdn = $t01052910693._1 | |
321 | + | let swapLimitSpentUsdn = $t01052910693._2 | |
322 | + | let blcks2LmtReset = $t01052910693._3 | |
319 | 323 | let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice) | |
320 | 324 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(usdnSwapDelayDuration), toString(wavesSwapDelayDuration), toString(blcks2LmtReset), toString(swapLimitMaxWaves), toString(swapLimitMaxUsdn), toString(swapLimitSpentUsdn)], SEP)) | |
321 | 325 | } | |
325 | 329 | @Callable(i) | |
326 | 330 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
327 | 331 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
328 | - | let $ | |
329 | - | let limitMaxUsdn = $ | |
330 | - | let limitSpent = $ | |
331 | - | let blcks2LmtReset = $ | |
332 | - | let gnsbtAmt = $ | |
333 | - | let gnsbtAmtTotal = $ | |
334 | - | let $ | |
335 | - | let limitMaxUsdnNEW = $ | |
336 | - | let limitSpentNEW = $ | |
337 | - | let blcks2LmtResetNEW = $ | |
338 | - | let gnsbtAmtNEW = $ | |
339 | - | let gnsbtAmtTotalNEW = $ | |
332 | + | let $t01169911882 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
333 | + | let limitMaxUsdn = $t01169911882._1 | |
334 | + | let limitSpent = $t01169911882._2 | |
335 | + | let blcks2LmtReset = $t01169911882._3 | |
336 | + | let gnsbtAmt = $t01169911882._4 | |
337 | + | let gnsbtAmtTotal = $t01169911882._5 | |
338 | + | let $t01188612094 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
339 | + | let limitMaxUsdnNEW = $t01188612094._1 | |
340 | + | let limitSpentNEW = $t01188612094._2 | |
341 | + | let blcks2LmtResetNEW = $t01188612094._3 | |
342 | + | let gnsbtAmtNEW = $t01188612094._4 | |
343 | + | let gnsbtAmtTotalNEW = $t01188612094._5 | |
340 | 344 | let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice) | |
341 | 345 | let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice) | |
342 | 346 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
369 | 373 | ||
370 | 374 | ||
371 | 375 | @Callable(i) | |
376 | + | func neutrinoConfigREADONLY () = { | |
377 | + | let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam()) | |
378 | + | let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam()) | |
379 | + | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
380 | + | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
381 | + | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
382 | + | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
383 | + | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
384 | + | let minNsbtsell = minNsbtForSell() | |
385 | + | let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount()) | |
386 | + | let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife()) | |
387 | + | let minWaves4SurfBuy = minWavesForSurfBuy() | |
388 | + | let minUsdn4SurfBuy = minUsdnForSurfBuy() | |
389 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d", toString(limitParamA), toString(limitParamB), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(halfLife), toString(minWaves4SurfBuy), toString(minUsdn4SurfBuy)], SEP)) | |
390 | + | } | |
391 | + | ||
392 | + | ||
393 | + | ||
394 | + | @Callable(i) | |
372 | 395 | func buyNsbtREADONLY (wavesPay) = { | |
373 | 396 | let minWavesAmountNsbtBuy = minWavesForNsbtBuy() | |
374 | 397 | if ((minWavesAmountNsbtBuy > wavesPay)) | |
393 | 416 | let assetId = fromBase58String(assetIdStr) | |
394 | 417 | let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil)) | |
395 | 418 | let surfAmount = asInt(surfResult[bFuncIdxSurf]) | |
396 | - | if ((0 >= surfAmount)) | |
397 | - | then throw("surfAmount <= 0") | |
398 | - | else { | |
399 | - | let gNsbtAmount = (surfAmount / 60) | |
400 | - | let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._1 | |
401 | - | let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._1 | |
402 | - | let additionalLimitUsdn = (limitNew - limitOld) | |
403 | - | let br0 = asInt(surfResult[bFuncIdxBRStart]) | |
404 | - | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
405 | - | let price = asInt(surfResult[bFuncIdxWavesPrice]) | |
406 | - | let priceSurf2Waves0 = fraction(br0, MULT8, price) | |
407 | - | let priceSurf2Waves1 = fraction(br1, MULT8, price) | |
408 | - | let votingPowerEta = 1000 | |
409 | - | let rest = asInt(surfResult[bFuncIdxRest]) | |
410 | - | let additionalLimitWaves = fraction(additionalLimitUsdn, MULT8, price) | |
411 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d", toString(surfAmount), toString(gNsbtAmount), toString(additionalLimitUsdn), toString(br0), toString(br1), toString(priceSurf2Waves0), toString(priceSurf2Waves1), toString(votingPowerEta), toString(rest), toString(additionalLimitWaves)], SEP)) | |
412 | - | } | |
419 | + | let gNsbtAmount = (surfAmount / 60) | |
420 | + | let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._1 | |
421 | + | let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._1 | |
422 | + | let price = asInt(surfResult[bFuncIdxWavesPrice]) | |
423 | + | let additionalLimitUsdn = (limitNew - limitOld) | |
424 | + | let additionalLimitWaves = fraction(additionalLimitUsdn, MULT8, price) | |
425 | + | let br0 = asInt(surfResult[bFuncIdxBRStart]) | |
426 | + | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
427 | + | let priceSurf2Waves0 = fraction(br0, MULT8, price) | |
428 | + | let priceSurf2Waves1 = fraction(br1, MULT8, price) | |
429 | + | let votingPowerEta = 1000 | |
430 | + | let newVotingPower = 4242 | |
431 | + | let rest = asInt(surfResult[bFuncIdxRest]) | |
432 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(surfAmount), toString(gNsbtAmount), toString(additionalLimitUsdn), toString(additionalLimitWaves), toString(br0), toString(br1), toString(priceSurf2Waves0), toString(priceSurf2Waves1), toString(votingPowerEta), toString(newVotingPower), toString(rest)], SEP)) | |
413 | 433 | } | |
414 | 434 | ||
415 | 435 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let revisionNum = "" | |
5 | 5 | ||
6 | 6 | let EULER8 = 271828182 | |
7 | 7 | ||
8 | 8 | let MULT6 = 1000000 | |
9 | 9 | ||
10 | 10 | let MULTX6 = toBigInt(1000000) | |
11 | 11 | ||
12 | 12 | let MULT8 = 100000000 | |
13 | 13 | ||
14 | 14 | let MULTX8 = toBigInt(100000000) | |
15 | 15 | ||
16 | 16 | let MULT12 = 1000000000000 | |
17 | 17 | ||
18 | 18 | let MULT18 = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let SEP = "__" | |
21 | 21 | ||
22 | 22 | let WAVESID = fromBase58String("WAVES") | |
23 | 23 | ||
24 | 24 | let nMetricIdxPrice = 0 | |
25 | 25 | ||
26 | 26 | let nMetricIdxUsdnLockedBalance = 1 | |
27 | 27 | ||
28 | 28 | let nMetricIdxWavesLockedBalance = 2 | |
29 | 29 | ||
30 | 30 | let nMetricIdxReserve = 3 | |
31 | 31 | ||
32 | 32 | let nMetricIdxReserveInUsdn = 4 | |
33 | 33 | ||
34 | 34 | let nMetricIdxUsdnSupply = 5 | |
35 | 35 | ||
36 | 36 | let nMetricIdxSurplus = 6 | |
37 | 37 | ||
38 | 38 | let nMetricIdxSurplusPercent = 7 | |
39 | 39 | ||
40 | 40 | let nMetricIdxBR = 8 | |
41 | 41 | ||
42 | 42 | let nMetricIdxNsbtSupply = 9 | |
43 | 43 | ||
44 | 44 | let nMetricIdxMaxNsbtSupply = 10 | |
45 | 45 | ||
46 | 46 | let nMetricIdxSurfSupply = 11 | |
47 | 47 | ||
48 | 48 | let bFuncIdxSurf = 0 | |
49 | 49 | ||
50 | 50 | let bFuncIdxWaves = 1 | |
51 | 51 | ||
52 | 52 | let bFuncIdxUsdn = 2 | |
53 | 53 | ||
54 | 54 | let bFuncIdxReserveStart = 3 | |
55 | 55 | ||
56 | 56 | let bFuncIdxSupplyStart = 4 | |
57 | 57 | ||
58 | 58 | let bFuncIdxBRStart = 5 | |
59 | 59 | ||
60 | 60 | let bFuncIdxReserveEnd = 6 | |
61 | 61 | ||
62 | 62 | let bFuncIdxSupplyEnd = 7 | |
63 | 63 | ||
64 | 64 | let bFuncIdxBREnd = 8 | |
65 | 65 | ||
66 | 66 | let bFuncIdxRest = 9 | |
67 | 67 | ||
68 | 68 | let bFuncIdxWavesPrice = 10 | |
69 | 69 | ||
70 | 70 | func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyNeutrinoAssetId () = "neutrino_asset_id" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyLiquidationContractAddress () = "liquidation_contract" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyRPDContract () = "rpd_contract" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyAuctionContract () = "auction_contract" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyContolContract () = "control_contract" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyNsbtAssetId () = "bond_asset_id" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keySurfAssetId () = "surf_asset_id" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyBalanceLocked () = "balance_lock_" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyWavesLockedBalance () = (keyBalanceLocked() + "waves") | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino") | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyMinWavesSwapAmount () = "min_waves_swap_amount" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyWavesOutFeePart () = "wavesOut_swap_feePart" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart" | |
113 | + | ||
114 | + | ||
115 | + | func keySwapAmountAParam () = "%s%s__config__swapAParam" | |
116 | + | ||
117 | + | ||
118 | + | func keySwapAmountBParam () = "%s%s__config__swapBParam" | |
113 | 119 | ||
114 | 120 | ||
115 | 121 | func keyNsbtLockContract () = "%s__nsbtLockContract" | |
116 | 122 | ||
117 | 123 | ||
118 | 124 | func keyMathContract () = "%s__mathContract" | |
119 | 125 | ||
120 | 126 | ||
121 | 127 | func keyBalanceWavesLockInterval () = "balance_waves_lock_interval" | |
122 | 128 | ||
123 | 129 | ||
124 | 130 | func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval" | |
125 | 131 | ||
126 | 132 | ||
127 | 133 | func keyPrice () = "price" | |
128 | 134 | ||
129 | 135 | ||
130 | 136 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP) | |
131 | 137 | ||
132 | 138 | ||
133 | 139 | func keyHalfLife () = "%s__halfLife" | |
134 | 140 | ||
135 | 141 | ||
136 | 142 | func keyMinLockAmount () = "%s__minLockAmount" | |
137 | 143 | ||
138 | 144 | ||
139 | 145 | func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy" | |
140 | 146 | ||
141 | 147 | ||
142 | 148 | func keyMinNsbtSell () = "min_nsbt_sell" | |
143 | 149 | ||
144 | 150 | ||
145 | 151 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
146 | 152 | ||
147 | 153 | ||
148 | 154 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
149 | 155 | ||
150 | 156 | ||
151 | 157 | func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
152 | 158 | ||
153 | 159 | ||
154 | 160 | func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price) | |
155 | 161 | ||
156 | 162 | ||
157 | 163 | func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8) | |
158 | 164 | ||
159 | 165 | ||
160 | 166 | func asAnyList (val) = match val { | |
161 | 167 | case valAnyList: List[Any] => | |
162 | 168 | valAnyList | |
163 | 169 | case _ => | |
164 | 170 | throw("fail to cast into List[Any]") | |
165 | 171 | } | |
166 | 172 | ||
167 | 173 | ||
168 | 174 | func asInt (val) = match val { | |
169 | 175 | case valInt: Int => | |
170 | 176 | valInt | |
171 | 177 | case _ => | |
172 | 178 | throw("fail to cast into Int") | |
173 | 179 | } | |
174 | 180 | ||
175 | 181 | ||
176 | 182 | func asString (val) = match val { | |
177 | 183 | case valStr: String => | |
178 | 184 | valStr | |
179 | 185 | case _ => | |
180 | 186 | throw("fail to cast into String") | |
181 | 187 | } | |
182 | 188 | ||
183 | 189 | ||
184 | 190 | func asTuple2Ints (val) = match val { | |
185 | 191 | case v: (Int, Int) => | |
186 | 192 | v | |
187 | 193 | case _ => | |
188 | 194 | throw("fail to cast into Tuple2 ints") | |
189 | 195 | } | |
190 | 196 | ||
191 | 197 | ||
192 | 198 | func asSwapParamsSTRUCT (val) = match val { | |
193 | 199 | case struct: (Int, Int, Int, Int, Int) => | |
194 | 200 | struct | |
195 | 201 | case _ => | |
196 | 202 | throw("fail to cast into Int") | |
197 | 203 | } | |
198 | 204 | ||
199 | 205 | ||
200 | 206 | func toTimestamp (start) = if ((0 > start)) | |
201 | 207 | then -1 | |
202 | 208 | else match blockInfoByHeight(start) { | |
203 | 209 | case block: BlockInfo => | |
204 | 210 | block.timestamp | |
205 | 211 | case _ => | |
206 | 212 | -1 | |
207 | 213 | } | |
208 | 214 | ||
209 | 215 | ||
210 | 216 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
211 | 217 | ||
212 | 218 | ||
213 | 219 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
214 | 220 | ||
215 | 221 | ||
216 | 222 | let neutrinoContract = addressFromStringValue(getStringOrFail(this, keyNeutrinoAddress())) | |
217 | 223 | ||
218 | 224 | let controlContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyContolContract())) | |
219 | 225 | ||
220 | 226 | let auctionContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyAuctionContract())) | |
221 | 227 | ||
222 | 228 | let liquidationContract = getStringOrFail(neutrinoContract, keyLiquidationContractAddress()) | |
223 | 229 | ||
224 | 230 | let rpdContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyRPDContract())) | |
225 | 231 | ||
226 | 232 | let mathContract = addressFromStringValue(getStringOrFail(this, keyMathContract())) | |
227 | 233 | ||
228 | 234 | let nsbtStakingContract = addressFromStringValue(getStringOrFail(this, keyNsbtLockContract())) | |
229 | 235 | ||
230 | 236 | let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId()) | |
231 | 237 | ||
232 | 238 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
233 | 239 | ||
234 | 240 | let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId()) | |
235 | 241 | ||
236 | 242 | let nsbtAssetId = fromBase58String(nsbtAssetIdStr) | |
237 | 243 | ||
238 | 244 | let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId()) | |
239 | 245 | ||
240 | 246 | let surfAssetId = fromBase58String(surfAssetIdStr) | |
241 | 247 | ||
242 | 248 | func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
243 | 249 | ||
244 | 250 | ||
245 | 251 | func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
246 | 252 | ||
247 | 253 | ||
248 | 254 | func minWavesForSurfBuy () = asInt(invoke(auctionContract, "minWavesAmountSurfBuySYSREADONLY", nil, nil)) | |
249 | 255 | ||
250 | 256 | ||
251 | 257 | func minUsdnForSurfBuy () = asInt(invoke(auctionContract, "minUsdnAmountSurfBuySYSREADONLY", nil, nil)) | |
252 | 258 | ||
253 | 259 | ||
254 | 260 | func privateNsbtPriceREST () = { | |
255 | 261 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
256 | 262 | let nsbt2usdnPrice = asInt(prices[0]) | |
257 | 263 | let nsbt2wavesPrice = asInt(prices[1]) | |
258 | 264 | $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice)) | |
259 | 265 | } | |
260 | 266 | ||
261 | 267 | ||
262 | 268 | func getLockedOnRpd (addrStr,assetIdStr) = { | |
263 | 269 | let key = makeString(["rpd_balance", assetIdStr, addrStr], "_") | |
264 | 270 | valueOrElse(getInteger(rpdContract, key), 0) | |
265 | 271 | } | |
266 | 272 | ||
267 | 273 | ||
268 | 274 | @Callable(i) | |
269 | 275 | func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this)) | |
270 | 276 | then throw("not authorized") | |
271 | 277 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)] | |
272 | 278 | ||
273 | 279 | ||
274 | 280 | ||
275 | 281 | @Callable(i) | |
276 | 282 | func neutrinoStatsREADONLY () = { | |
277 | 283 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
278 | 284 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
279 | 285 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
280 | 286 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
281 | 287 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
282 | 288 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
283 | 289 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
284 | 290 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
285 | 291 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
286 | 292 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
287 | 293 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
288 | 294 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
289 | 295 | let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
290 | 296 | let nsbt2usdnPrice = asInt(prices[0]) | |
291 | 297 | let nsbt2wavesPrice = asInt(prices[1]) | |
292 | 298 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
293 | 299 | let minNsbtsell = minNsbtForSell() | |
294 | 300 | let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount()) | |
295 | - | let minWaves4SurfBuy = minWavesForSurfBuy() | |
296 | - | let minUsdn4SurfBuy = minUsdnForSurfBuy() | |
297 | 301 | let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves) | |
298 | 302 | let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn) | |
299 | 303 | let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply) | |
300 | 304 | let surfPriceInWaves = fraction(reservesInWaves, 1, neutrinoSupply) | |
301 | - | $Tuple2(nil, makeString([" | |
305 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply), toString(maxNsbtSupply), toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(maxWaves2BuySurf), toString(maxUsdn2BuySurf), toString(surfPriceInUsdn), toString(surfPriceInWaves)], SEP)) | |
302 | 306 | } | |
303 | 307 | ||
304 | 308 | ||
305 | 309 | ||
306 | 310 | @Callable(i) | |
307 | 311 | func swapInfoREADONLY (userAddressStrOpt) = { | |
308 | 312 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
309 | 313 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
310 | 314 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
311 | 315 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
312 | 316 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
313 | 317 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
314 | 318 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
315 | - | let $ | |
316 | - | let swapLimitMaxUsdn = $ | |
317 | - | let swapLimitSpentUsdn = $ | |
318 | - | let blcks2LmtReset = $ | |
319 | + | let $t01052910693 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
320 | + | let swapLimitMaxUsdn = $t01052910693._1 | |
321 | + | let swapLimitSpentUsdn = $t01052910693._2 | |
322 | + | let blcks2LmtReset = $t01052910693._3 | |
319 | 323 | let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice) | |
320 | 324 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(usdnSwapDelayDuration), toString(wavesSwapDelayDuration), toString(blcks2LmtReset), toString(swapLimitMaxWaves), toString(swapLimitMaxUsdn), toString(swapLimitSpentUsdn)], SEP)) | |
321 | 325 | } | |
322 | 326 | ||
323 | 327 | ||
324 | 328 | ||
325 | 329 | @Callable(i) | |
326 | 330 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
327 | 331 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
328 | - | let $ | |
329 | - | let limitMaxUsdn = $ | |
330 | - | let limitSpent = $ | |
331 | - | let blcks2LmtReset = $ | |
332 | - | let gnsbtAmt = $ | |
333 | - | let gnsbtAmtTotal = $ | |
334 | - | let $ | |
335 | - | let limitMaxUsdnNEW = $ | |
336 | - | let limitSpentNEW = $ | |
337 | - | let blcks2LmtResetNEW = $ | |
338 | - | let gnsbtAmtNEW = $ | |
339 | - | let gnsbtAmtTotalNEW = $ | |
332 | + | let $t01169911882 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
333 | + | let limitMaxUsdn = $t01169911882._1 | |
334 | + | let limitSpent = $t01169911882._2 | |
335 | + | let blcks2LmtReset = $t01169911882._3 | |
336 | + | let gnsbtAmt = $t01169911882._4 | |
337 | + | let gnsbtAmtTotal = $t01169911882._5 | |
338 | + | let $t01188612094 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
339 | + | let limitMaxUsdnNEW = $t01188612094._1 | |
340 | + | let limitSpentNEW = $t01188612094._2 | |
341 | + | let blcks2LmtResetNEW = $t01188612094._3 | |
342 | + | let gnsbtAmtNEW = $t01188612094._4 | |
343 | + | let gnsbtAmtTotalNEW = $t01188612094._5 | |
340 | 344 | let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice) | |
341 | 345 | let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice) | |
342 | 346 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
343 | 347 | then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal) | |
344 | 348 | else 0 | |
345 | 349 | let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0)) | |
346 | 350 | then fraction((gnsbtAmtNEW * 100), MULT12, gnsbtAmtTotalNEW) | |
347 | 351 | else 0 | |
348 | 352 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
349 | 353 | let nsbtAmt = gnsbtAmt | |
350 | 354 | let nsbtAmtNew = gnsbtAmtNEW | |
351 | 355 | let nsbtAmtStakedTotal = gnsbtAmtTotal | |
352 | 356 | let nsbtAmtStakedTotalNew = gnsbtAmtTotalNEW | |
353 | 357 | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt], nil)) | |
354 | 358 | let isEmptyNsbtBalance = if ((gnsbtAmt == 0)) | |
355 | 359 | then (gnsbtAmtNEW == 0) | |
356 | 360 | else false | |
357 | 361 | let startHeight = if (isEmptyNsbtBalance) | |
358 | 362 | then -1 | |
359 | 363 | else asInt(nsbtData[2]) | |
360 | 364 | let startTimestamp = toTimestamp(startHeight) | |
361 | 365 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
362 | 366 | let startHeightNew = if (isEmptyNsbtBalance) | |
363 | 367 | then -1 | |
364 | 368 | else asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil)) | |
365 | 369 | let startTimestampNew = toTimestamp(startHeightNew) | |
366 | 370 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d%d%d%d%d%d%d", toString(gnsbtAmt), toString(gnsbtAmtNEW), toString(gnsbtShare), toString(gnsbtShareNEW), toString(limitMaxUsdn), toString(limitMaxWaves), toString(limitMaxUsdnNEW), toString(limitMaxWavesNEW), rewardInfo, toString(nsbtAmt), toString(nsbtAmtNew), toString(nsbtAmtStakedTotal), toString(nsbtAmtStakedTotalNew), toString(startHeight), toString(startTimestamp), toString(startHeightNew), toString(startTimestampNew)], SEP)) | |
367 | 371 | } | |
368 | 372 | ||
369 | 373 | ||
370 | 374 | ||
371 | 375 | @Callable(i) | |
376 | + | func neutrinoConfigREADONLY () = { | |
377 | + | let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam()) | |
378 | + | let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam()) | |
379 | + | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
380 | + | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
381 | + | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
382 | + | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
383 | + | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
384 | + | let minNsbtsell = minNsbtForSell() | |
385 | + | let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount()) | |
386 | + | let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife()) | |
387 | + | let minWaves4SurfBuy = minWavesForSurfBuy() | |
388 | + | let minUsdn4SurfBuy = minUsdnForSurfBuy() | |
389 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d", toString(limitParamA), toString(limitParamB), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(halfLife), toString(minWaves4SurfBuy), toString(minUsdn4SurfBuy)], SEP)) | |
390 | + | } | |
391 | + | ||
392 | + | ||
393 | + | ||
394 | + | @Callable(i) | |
372 | 395 | func buyNsbtREADONLY (wavesPay) = { | |
373 | 396 | let minWavesAmountNsbtBuy = minWavesForNsbtBuy() | |
374 | 397 | if ((minWavesAmountNsbtBuy > wavesPay)) | |
375 | 398 | then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected")) | |
376 | 399 | else { | |
377 | 400 | let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil)) | |
378 | 401 | if ((curveResult == curveResult)) | |
379 | 402 | then { | |
380 | 403 | let nsbtAmount = asInt(curveResult[0]) | |
381 | 404 | if ((0 >= nsbtAmount)) | |
382 | 405 | then throw("nsbtAmount <= 0") | |
383 | 406 | else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP)) | |
384 | 407 | } | |
385 | 408 | else throw("Strict value is not equal to itself.") | |
386 | 409 | } | |
387 | 410 | } | |
388 | 411 | ||
389 | 412 | ||
390 | 413 | ||
391 | 414 | @Callable(i) | |
392 | 415 | func buySurfREADONLY (userAddressStrOpt,amount,assetIdStr) = { | |
393 | 416 | let assetId = fromBase58String(assetIdStr) | |
394 | 417 | let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil)) | |
395 | 418 | let surfAmount = asInt(surfResult[bFuncIdxSurf]) | |
396 | - | if ((0 >= surfAmount)) | |
397 | - | then throw("surfAmount <= 0") | |
398 | - | else { | |
399 | - | let gNsbtAmount = (surfAmount / 60) | |
400 | - | let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._1 | |
401 | - | let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._1 | |
402 | - | let additionalLimitUsdn = (limitNew - limitOld) | |
403 | - | let br0 = asInt(surfResult[bFuncIdxBRStart]) | |
404 | - | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
405 | - | let price = asInt(surfResult[bFuncIdxWavesPrice]) | |
406 | - | let priceSurf2Waves0 = fraction(br0, MULT8, price) | |
407 | - | let priceSurf2Waves1 = fraction(br1, MULT8, price) | |
408 | - | let votingPowerEta = 1000 | |
409 | - | let rest = asInt(surfResult[bFuncIdxRest]) | |
410 | - | let additionalLimitWaves = fraction(additionalLimitUsdn, MULT8, price) | |
411 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d", toString(surfAmount), toString(gNsbtAmount), toString(additionalLimitUsdn), toString(br0), toString(br1), toString(priceSurf2Waves0), toString(priceSurf2Waves1), toString(votingPowerEta), toString(rest), toString(additionalLimitWaves)], SEP)) | |
412 | - | } | |
419 | + | let gNsbtAmount = (surfAmount / 60) | |
420 | + | let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._1 | |
421 | + | let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._1 | |
422 | + | let price = asInt(surfResult[bFuncIdxWavesPrice]) | |
423 | + | let additionalLimitUsdn = (limitNew - limitOld) | |
424 | + | let additionalLimitWaves = fraction(additionalLimitUsdn, MULT8, price) | |
425 | + | let br0 = asInt(surfResult[bFuncIdxBRStart]) | |
426 | + | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
427 | + | let priceSurf2Waves0 = fraction(br0, MULT8, price) | |
428 | + | let priceSurf2Waves1 = fraction(br1, MULT8, price) | |
429 | + | let votingPowerEta = 1000 | |
430 | + | let newVotingPower = 4242 | |
431 | + | let rest = asInt(surfResult[bFuncIdxRest]) | |
432 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(surfAmount), toString(gNsbtAmount), toString(additionalLimitUsdn), toString(additionalLimitWaves), toString(br0), toString(br1), toString(priceSurf2Waves0), toString(priceSurf2Waves1), toString(votingPowerEta), toString(newVotingPower), toString(rest)], SEP)) | |
413 | 433 | } | |
414 | 434 | ||
415 | 435 | ||
416 | 436 | ||
417 | 437 | @Callable(i) | |
418 | 438 | func walletInfoREADONLY (userAddressStr) = { | |
419 | 439 | let addr = addressFromStringValue(userAddressStr) | |
420 | 440 | let balance = wavesBalance(addr) | |
421 | 441 | let usdnLocked = getLockedOnRpd(userAddressStr, neutrinoAssetIdString) | |
422 | 442 | let nsbtLockedOld = getLockedOnRpd(userAddressStr, nsbtAssetIdStr) | |
423 | 443 | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStr], nil)) | |
424 | 444 | let nsbtLocked = asInt(nsbtData[0]) | |
425 | 445 | let gNsbtBalance = nsbtLocked | |
426 | 446 | let surfLocked = 42 | |
427 | 447 | let votingPower = 4242 | |
428 | 448 | let votingPowerMax = 424242 | |
429 | 449 | let heightVotingPowerMax = 42424242 | |
430 | 450 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d", toString((balance.regular - balance.available)), toString(height), toString(usdnLocked), toString(nsbtLockedOld), toString(nsbtLocked), toString(gNsbtBalance), toString(surfLocked), toString(votingPower), toString(votingPowerMax), toString(heightVotingPowerMax)], SEP)) | |
431 | 451 | } | |
432 | 452 | ||
433 | 453 | ||
434 | 454 | ||
435 | 455 | @Callable(i) | |
436 | 456 | func mergedStakeREADONLY (amount1,height1,amount2,height2) = { | |
437 | 457 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
438 | 458 | let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil)) | |
439 | 459 | if ((h == h)) | |
440 | 460 | then $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP)) | |
441 | 461 | else throw("Strict value is not equal to itself.") | |
442 | 462 | } | |
443 | 463 | ||
444 | 464 | ||
445 | 465 | ||
446 | 466 | @Callable(i) | |
447 | 467 | func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = { | |
448 | 468 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
449 | 469 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
450 | 470 | if ((a == a)) | |
451 | 471 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
452 | 472 | else throw("Strict value is not equal to itself.") | |
453 | 473 | } | |
454 | 474 | ||
455 | 475 | ||
456 | 476 | ||
457 | 477 | @Callable(i) | |
458 | 478 | func unstakeComissionAmountByUserREADONLY (amount,userAddress) = { | |
459 | 479 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
460 | 480 | let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height) | |
461 | 481 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
462 | 482 | if ((a == a)) | |
463 | 483 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
464 | 484 | else throw("Strict value is not equal to itself.") | |
465 | 485 | } | |
466 | 486 | ||
467 | 487 | ||
468 | 488 | ||
469 | 489 | @Callable(i) | |
470 | 490 | func neutrinoStateREST () = { | |
471 | 491 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
472 | 492 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
473 | 493 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
474 | 494 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
475 | 495 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
476 | 496 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
477 | 497 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
478 | 498 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
479 | 499 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
480 | 500 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
481 | 501 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
482 | 502 | let nsbtSupplyMax = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
483 | 503 | let surfSupply = asInt(neutrinoMetrics[nMetricIdxSurfSupply]) | |
484 | 504 | throw(makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply), toString(nsbtSupplyMax), toString(surfSupply)], "__")) | |
485 | 505 | } | |
486 | 506 | ||
487 | 507 | ||
488 | 508 | ||
489 | 509 | @Callable(i) | |
490 | 510 | func nsbtPriceREST () = { | |
491 | 511 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
492 | 512 | let nsbt2usdnPrice = asInt(prices[0]) | |
493 | 513 | let nsbt2wavesPrice = asInt(prices[1]) | |
494 | 514 | let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__") | |
495 | 515 | throw(restData) | |
496 | 516 | } | |
497 | 517 | ||
498 | 518 | ||
499 | 519 | ||
500 | 520 | @Callable(i) | |
501 | 521 | func surfPriceREST () = { | |
502 | 522 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
503 | 523 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
504 | 524 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
505 | 525 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
506 | 526 | let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply) | |
507 | 527 | let surfPriceInWaves = fraction(reservesInWaves, MULT8, neutrinoSupply) | |
508 | 528 | let restData = makeString(["startSurfPriceREST", toString(surfPriceInUsdn), toString(surfPriceInWaves), "endSurfPriceREST"], "__") | |
509 | 529 | throw(restData) | |
510 | 530 | } | |
511 | 531 | ||
512 | 532 |
github/deemru/w8io/026f985 73.12 ms ◑