tx · 2oJAvgpNXanhSNGoPpc88dYB5rnUGKAEG6M3joKzpFKY

3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi:  -0.04000000 Waves

2022.08.23 14:58 [2197101] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves

{ "type": 13, "id": "2oJAvgpNXanhSNGoPpc88dYB5rnUGKAEG6M3joKzpFKY", "fee": 4000000, "feeAssetId": null, "timestamp": 1661256046163, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "4tUNJcT64B9N1Sr6VBD9Ypw7ePYqG3N1kEqkp6jo4e5maEFR2dedYm9MqyS3c3xVeyzx6bVj9LygSnnRjZH6Jm2d" ], "script": "base64:AAIFAAAAAAAAAEMIAhIFCgMICAgSABIDCgEIEgQKAggBEgASAwoBARIFCgMIAQgSAwoBCBIGCgQBAQEBEgQKAgEBEgQKAgEIEgASABIAAAAAbQAAAAALcmV2aXNpb25OdW0CAAAAAAAAAAAGRVVMRVI4AAAAAAAQM8TWAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAAGTVVMVFg2CQABNgAAAAEAAAAAAAAPQkAAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAZNVUxUWDgJAAE2AAAAAQAAAAAABfXhAAAAAAAGTVVMVDEyAAAAAOjUpRAAAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAHV0FWRVNJRAkAAlkAAAABAgAAAAVXQVZFUwAAAAAPbk1ldHJpY0lkeFByaWNlAAAAAAAAAAAAAAAAABtuTWV0cmljSWR4VXNkbkxvY2tlZEJhbGFuY2UAAAAAAAAAAAEAAAAAHG5NZXRyaWNJZHhXYXZlc0xvY2tlZEJhbGFuY2UAAAAAAAAAAAIAAAAAEW5NZXRyaWNJZHhSZXN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BQAAAA5uZXV0cmlub1N1cHBseQQAAAAQc3VyZlByaWNlSW5XYXZlcwkAAGsAAAADBQAAAA9yZXNlcnZlc0luV2F2ZXMFAAAABU1VTFQ4BQAAAA5uZXV0cmlub1N1cHBseQQAAAAIcmVzdERhdGEJAAS5AAAAAgkABEwAAAACAgAAABJzdGFydFN1cmZQcmljZVJFU1QJAARMAAAAAgkAAaQAAAABBQAAAA9zdXJmUHJpY2VJblVzZG4JAARMAAAAAgkAAaQAAAABBQAAABBzdXJmUHJpY2VJbldhdmVzCQAETAAAAAICAAAAEGVuZFN1cmZQcmljZVJFU1QFAAAAA25pbAIAAAACX18JAAACAAAAAQUAAAAIcmVzdERhdGEAAAAAl2g1qg==", "chainId": 84, "height": 2197101, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4gkctSnq8UE9e4nJTwGEACTUMRiVo7b4Gm6hgPCiQz9W Next: AkGJNhSJpz361AjUUUDCw8r1MPF8mGQuMr7PYj1Uba2W Diff:
OldNewDifferences
187187
188188
189189 func asSwapParamsSTRUCT (val) = match val {
190- case struct: (Int, Int, Int, Int, Int) =>
190+ case struct: (Int, Int, Int, Int, Int, Int, Int) =>
191191 struct
192192 case _ =>
193- throw("fail to cast into Int")
193+ throw("fail to cast into SwapParamsSTRUCT")
194194 }
195195
196196
352352 let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart())
353353 let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval())
354354 let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval())
355- let $t01174611910 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
356- let swapLimitMaxUsdn = $t01174611910._1
357- let swapLimitSpentUsdn = $t01174611910._2
358- let blcks2LmtReset = $t01174611910._3
359- let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice)
360- $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))
355+ let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
356+ let swapLimitMaxUsdn = swapParamsSTRUCT._1
357+ let swapLimitSpentUsdn = swapParamsSTRUCT._2
358+ let blcks2LmtReset = swapParamsSTRUCT._3
359+ let wavesSwapLimitMax = swapParamsSTRUCT._6
360+ let usdnSwapLimitMax = swapParamsSTRUCT._7
361+ $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(wavesSwapLimitMax), toString(usdnSwapLimitMax), toString(swapLimitSpentUsdn)], SEP))
361362 }
362363
363364
365366 @Callable(i)
366367 func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
367368 let currentPrice = getIntegerValue(controlContract, keyPrice())
368- let $t01291613099 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
369- let limitMaxUsdn = $t01291613099._1
370- let limitSpent = $t01291613099._2
371- let blcks2LmtReset = $t01291613099._3
372- let gnsbtAmt = $t01291613099._4
373- let gnsbtAmtTotal = $t01291613099._5
374- let $t01310313311 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
375- let limitMaxUsdnNEW = $t01310313311._1
376- let limitSpentNEW = $t01310313311._2
377- let blcks2LmtResetNEW = $t01310313311._3
378- let gnsbtAmtNEW = $t01310313311._4
379- let gnsbtAmtTotalNEW = $t01310313311._5
380- let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice)
381- let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice)
369+ let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
370+ let blcks2LmtReset = swapParams._3
371+ let gnsbtAmt = swapParams._4
372+ let gnsbtAmtTotal = swapParams._5
373+ let limitMaxWaves = swapParams._6
374+ let limitMaxUsdn = swapParams._7
375+ let swapParamsNEW = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
376+ let blcks2LmtResetNEW = swapParamsNEW._3
377+ let gnsbtAmtNEW = swapParamsNEW._4
378+ let gnsbtAmtTotalNEW = swapParamsNEW._5
379+ let limitMaxWavesNEW = swapParamsNEW._6
380+ let limitMaxUsdnNEW = swapParamsNEW._7
382381 let gnsbtShare = if ((gnsbtAmtTotal != 0))
383382 then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal)
384383 else 0
395394 then (gnsbtAmtNEW == 0)
396395 else false
397396 let startHeight = if (isEmptyNsbtBalance)
398- then -1
397+ then height
399398 else asInt(nsbtData[2])
400399 let startTimestamp = toTimestamp(startHeight)
401400 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
459458 let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil))
460459 let surfAmount = asInt(surfResult[bFuncIdxSurf])
461460 let gNsbtAmount = asInt(invoke(surfStakingContract, "gnsbtFromSurfSYSREADONLY", [surfAmount], nil))
462- let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._1
463- let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._1
461+ let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._7
462+ let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._7
464463 let price = asInt(surfResult[bFuncIdxWavesPrice])
465464 let additionalLimitUsdn = (limitNew - limitOld)
466465 let additionalLimitWaves = fraction(additionalLimitUsdn, MULT8, price)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let revisionNum = ""
55
66 let EULER8 = 271828182
77
88 let MULT6 = 1000000
99
1010 let MULTX6 = toBigInt(1000000)
1111
1212 let MULT8 = 100000000
1313
1414 let MULTX8 = toBigInt(100000000)
1515
1616 let MULT12 = 1000000000000
1717
1818 let MULT18 = toBigInt(1000000000000000000)
1919
2020 let SEP = "__"
2121
2222 let WAVESID = fromBase58String("WAVES")
2323
2424 let nMetricIdxPrice = 0
2525
2626 let nMetricIdxUsdnLockedBalance = 1
2727
2828 let nMetricIdxWavesLockedBalance = 2
2929
3030 let nMetricIdxReserve = 3
3131
3232 let nMetricIdxReserveInUsdn = 4
3333
3434 let nMetricIdxUsdnSupply = 5
3535
3636 let nMetricIdxSurplus = 6
3737
3838 let nMetricIdxSurplusPercent = 7
3939
4040 let nMetricIdxBR = 8
4141
4242 let nMetricIdxNsbtSupply = 9
4343
4444 let nMetricIdxMaxNsbtSupply = 10
4545
4646 let nMetricIdxSurfSupply = 11
4747
4848 let bFuncIdxSurf = 0
4949
5050 let bFuncIdxWaves = 1
5151
5252 let bFuncIdxUsdn = 2
5353
5454 let bFuncIdxReserveStart = 3
5555
5656 let bFuncIdxSupplyStart = 4
5757
5858 let bFuncIdxBRStart = 5
5959
6060 let bFuncIdxReserveEnd = 6
6161
6262 let bFuncIdxSupplyEnd = 7
6363
6464 let bFuncIdxBREnd = 8
6565
6666 let bFuncIdxRest = 9
6767
6868 let bFuncIdxWavesPrice = 10
6969
7070 func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress"
7171
7272
7373 func keyNeutrinoAssetId () = "neutrino_asset_id"
7474
7575
7676 func keyNsbtAssetId () = "bond_asset_id"
7777
7878
7979 func keySurfAssetId () = "surf_asset_id"
8080
8181
8282 func keyBalanceLocked () = "balance_lock_"
8383
8484
8585 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
8686
8787
8888 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
8989
9090
9191 func keyMinWavesSwapAmount () = "min_waves_swap_amount"
9292
9393
9494 func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount"
9595
9696
9797 func keyWavesOutFeePart () = "wavesOut_swap_feePart"
9898
9999
100100 func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart"
101101
102102
103103 func keySwapAmountAParam () = "%s%s__config__swapAParam"
104104
105105
106106 func keySwapAmountBParam () = "%s%s__config__swapBParam"
107107
108108
109109 func keyNsbtLockContract () = "%s__nsbtLockContract"
110110
111111
112112 func keyMathContract () = "%s__mathContract"
113113
114114
115115 func keyBalanceWavesLockInterval () = "balance_waves_lock_interval"
116116
117117
118118 func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval"
119119
120120
121121 func keyPrice () = "price"
122122
123123
124124 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP)
125125
126126
127127 func keyHalfLife () = "%s__halfLife"
128128
129129
130130 func keyMinLockAmount () = "%s__minLockAmount"
131131
132132
133133 func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy"
134134
135135
136136 func keyMinNsbtSell () = "min_nsbt_sell"
137137
138138
139139 func keyRpdContractBalanceKey (assetId) = ("rpd_balance_" + assetId)
140140
141141
142142 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
143143
144144
145145 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
146146
147147
148148 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
149149
150150
151151 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
152152
153153
154154 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
155155
156156
157157 func asAnyList (val) = match val {
158158 case valAnyList: List[Any] =>
159159 valAnyList
160160 case _ =>
161161 throw("fail to cast into List[Any]")
162162 }
163163
164164
165165 func asInt (val) = match val {
166166 case valInt: Int =>
167167 valInt
168168 case _ =>
169169 throw("fail to cast into Int")
170170 }
171171
172172
173173 func asString (val) = match val {
174174 case valStr: String =>
175175 valStr
176176 case _ =>
177177 throw("fail to cast into String")
178178 }
179179
180180
181181 func asTuple2Ints (val) = match val {
182182 case v: (Int, Int) =>
183183 v
184184 case _ =>
185185 throw("fail to cast into Tuple2 ints")
186186 }
187187
188188
189189 func asSwapParamsSTRUCT (val) = match val {
190- case struct: (Int, Int, Int, Int, Int) =>
190+ case struct: (Int, Int, Int, Int, Int, Int, Int) =>
191191 struct
192192 case _ =>
193- throw("fail to cast into Int")
193+ throw("fail to cast into SwapParamsSTRUCT")
194194 }
195195
196196
197197 func toTimestamp (start) = if ((0 > start))
198198 then -1
199199 else match blockInfoByHeight(start) {
200200 case block: BlockInfo =>
201201 block.timestamp
202202 case _ =>
203203 -1
204204 }
205205
206206
207207 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
208208
209209
210210 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
211211
212212
213213 let IdxControlCfgNeutrinoDapp = 1
214214
215215 let IdxControlCfgAuctionDapp = 2
216216
217217 let IdxControlCfgRpdDapp = 3
218218
219219 let IdxControlCfgMathDapp = 4
220220
221221 let IdxControlCfgLiquidationDapp = 5
222222
223223 let IdxControlCfgRestDapp = 6
224224
225225 let IdxControlCfgNodeRegistryDapp = 7
226226
227227 let IdxControlCfgNsbtStakingDapp = 8
228228
229229 let IdxControlCfgMediatorDapp = 9
230230
231231 let IdxControlCfgSurfStakingDapp = 10
232232
233233 let IdxControlCfgGnsbtControllerDapp = 11
234234
235235 let IdxControlCfgRestV2Dapp = 12
236236
237237 func keyControlAddress () = "%s%s__config__controlAddress"
238238
239239
240240 func keyControlCfg () = "%s__controlConfig"
241241
242242
243243 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
244244
245245
246246 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
247247
248248
249249 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
250250
251251 let controlCfg = readControlCfgOrFail(controlContract)
252252
253253 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
254254
255255 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
256256
257257 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
258258
259259 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
260260
261261 let rpdContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
262262
263263 let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp)
264264
265265 let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
266266
267267 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
268268
269269 let restV2Contract = getContractAddressOrFail(controlCfg, IdxControlCfgRestV2Dapp)
270270
271271 let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
272272
273273 let neutrinoAssetId = fromBase58String(neutrinoAssetIdString)
274274
275275 let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId())
276276
277277 let nsbtAssetId = fromBase58String(nsbtAssetIdStr)
278278
279279 let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId())
280280
281281 let surfAssetId = fromBase58String(surfAssetIdStr)
282282
283283 func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil))
284284
285285
286286 func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil))
287287
288288
289289 func minWavesForSurfBuy () = asInt(invoke(auctionContract, "minWavesAmountSurfBuySYSREADONLY", nil, nil))
290290
291291
292292 func minUsdnForSurfBuy () = asInt(invoke(auctionContract, "minUsdnAmountSurfBuySYSREADONLY", nil, nil))
293293
294294
295295 func privateNsbtPriceREST () = {
296296 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
297297 let nsbt2usdnPrice = asInt(prices[0])
298298 let nsbt2wavesPrice = asInt(prices[1])
299299 $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice))
300300 }
301301
302302
303303 func getLockedOnRpd (addrStr,assetIdStr) = {
304304 let key = makeString(["rpd_balance", assetIdStr, addrStr], "_")
305305 valueOrElse(getInteger(rpdContract, key), 0)
306306 }
307307
308308
309309 @Callable(i)
310310 func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this))
311311 then throw("not authorized")
312312 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)]
313313
314314
315315
316316 @Callable(i)
317317 func neutrinoStatsREADONLY () = {
318318 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
319319 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
320320 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
321321 let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance])
322322 let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance])
323323 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
324324 let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn])
325325 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
326326 let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus])
327327 let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent])
328328 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
329329 let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
330330 let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
331331 let nsbt2usdnPrice = asInt(prices[0])
332332 let nsbt2wavesPrice = asInt(prices[1])
333333 let minWaves4NsbtBuy = minWavesForNsbtBuy()
334334 let minNsbtsell = minNsbtForSell()
335335 let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount())
336336 let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves)
337337 let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn)
338338 let surfPriceInUsdn = BR
339339 let surfPriceInWaves = fraction(BR, MULT6, currentPrice)
340340 let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0)
341341 $Tuple2(nil, makeString(["%d%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), toString(totalUsdnStaked)], SEP))
342342 }
343343
344344
345345
346346 @Callable(i)
347347 func swapInfoREADONLY (userAddressStrOpt) = {
348348 let currentPrice = getIntegerValue(controlContract, keyPrice())
349349 let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount())
350350 let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount())
351351 let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart())
352352 let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart())
353353 let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval())
354354 let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval())
355- let $t01174611910 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
356- let swapLimitMaxUsdn = $t01174611910._1
357- let swapLimitSpentUsdn = $t01174611910._2
358- let blcks2LmtReset = $t01174611910._3
359- let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice)
360- $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))
355+ let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
356+ let swapLimitMaxUsdn = swapParamsSTRUCT._1
357+ let swapLimitSpentUsdn = swapParamsSTRUCT._2
358+ let blcks2LmtReset = swapParamsSTRUCT._3
359+ let wavesSwapLimitMax = swapParamsSTRUCT._6
360+ let usdnSwapLimitMax = swapParamsSTRUCT._7
361+ $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(wavesSwapLimitMax), toString(usdnSwapLimitMax), toString(swapLimitSpentUsdn)], SEP))
361362 }
362363
363364
364365
365366 @Callable(i)
366367 func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
367368 let currentPrice = getIntegerValue(controlContract, keyPrice())
368- let $t01291613099 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
369- let limitMaxUsdn = $t01291613099._1
370- let limitSpent = $t01291613099._2
371- let blcks2LmtReset = $t01291613099._3
372- let gnsbtAmt = $t01291613099._4
373- let gnsbtAmtTotal = $t01291613099._5
374- let $t01310313311 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
375- let limitMaxUsdnNEW = $t01310313311._1
376- let limitSpentNEW = $t01310313311._2
377- let blcks2LmtResetNEW = $t01310313311._3
378- let gnsbtAmtNEW = $t01310313311._4
379- let gnsbtAmtTotalNEW = $t01310313311._5
380- let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice)
381- let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice)
369+ let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
370+ let blcks2LmtReset = swapParams._3
371+ let gnsbtAmt = swapParams._4
372+ let gnsbtAmtTotal = swapParams._5
373+ let limitMaxWaves = swapParams._6
374+ let limitMaxUsdn = swapParams._7
375+ let swapParamsNEW = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
376+ let blcks2LmtResetNEW = swapParamsNEW._3
377+ let gnsbtAmtNEW = swapParamsNEW._4
378+ let gnsbtAmtTotalNEW = swapParamsNEW._5
379+ let limitMaxWavesNEW = swapParamsNEW._6
380+ let limitMaxUsdnNEW = swapParamsNEW._7
382381 let gnsbtShare = if ((gnsbtAmtTotal != 0))
383382 then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal)
384383 else 0
385384 let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0))
386385 then fraction((gnsbtAmtNEW * 100), MULT12, gnsbtAmtTotalNEW)
387386 else 0
388387 let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil))
389388 let nsbtAmt = gnsbtAmt
390389 let nsbtAmtNew = gnsbtAmtNEW
391390 let nsbtAmtStakedTotal = gnsbtAmtTotal
392391 let nsbtAmtStakedTotalNew = gnsbtAmtTotalNEW
393392 let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
394393 let isEmptyNsbtBalance = if ((gnsbtAmt == 0))
395394 then (gnsbtAmtNEW == 0)
396395 else false
397396 let startHeight = if (isEmptyNsbtBalance)
398- then -1
397+ then height
399398 else asInt(nsbtData[2])
400399 let startTimestamp = toTimestamp(startHeight)
401400 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
402401 let startHeightNew = if (isEmptyNsbtBalance)
403402 then height
404403 else asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil))
405404 let startTimestampNew = toTimestamp(startHeightNew)
406405 $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))
407406 }
408407
409408
410409
411410 @Callable(i)
412411 func neutrinoConfigREADONLY () = {
413412 let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam())
414413 let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam())
415414 let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount())
416415 let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount())
417416 let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart())
418417 let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart())
419418 let minWaves4NsbtBuy = minWavesForNsbtBuy()
420419 let minNsbtsell = minNsbtForSell()
421420 let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount())
422421 let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife())
423422 let minWaves4SurfBuy = minWavesForSurfBuy()
424423 let minUsdn4SurfBuy = minUsdnForSurfBuy()
425424 let surfStakingCfg = asAnyList(invoke(surfStakingContract, "configSYSREADONLY", nil, nil))
426425 let minSurfStakeAmt = asInt(surfStakingCfg[0])
427426 let gnsbtFromSurfCoeff = asInt(surfStakingCfg[1])
428427 let surfVotingPowerRestrictivePeriod = asInt(surfStakingCfg[2])
429428 let brToStartSurfTransformation = asInt(surfStakingCfg[3])
430429 let shutdown = valueOrElse(getBoolean(controlContract, "is_blocked"), false)
431430 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%b", toString(limitParamA), toString(limitParamB), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(halfLife), toString(minWaves4SurfBuy), toString(minUsdn4SurfBuy), toString(minSurfStakeAmt), toString(gnsbtFromSurfCoeff), toString(surfVotingPowerRestrictivePeriod), toString(brToStartSurfTransformation), toString(shutdown)], SEP))
432431 }
433432
434433
435434
436435 @Callable(i)
437436 func buyNsbtREADONLY (wavesPay) = {
438437 let minWavesAmountNsbtBuy = minWavesForNsbtBuy()
439438 if ((minWavesAmountNsbtBuy > wavesPay))
440439 then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected"))
441440 else {
442441 let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil))
443442 if ((curveResult == curveResult))
444443 then {
445444 let nsbtAmount = asInt(curveResult[0])
446445 if ((0 >= nsbtAmount))
447446 then throw("nsbtAmount <= 0")
448447 else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP))
449448 }
450449 else throw("Strict value is not equal to itself.")
451450 }
452451 }
453452
454453
455454
456455 @Callable(i)
457456 func buySurfREADONLY (userAddressStrOpt,amount,assetIdStr) = {
458457 let assetId = fromBase58String(assetIdStr)
459458 let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil))
460459 let surfAmount = asInt(surfResult[bFuncIdxSurf])
461460 let gNsbtAmount = asInt(invoke(surfStakingContract, "gnsbtFromSurfSYSREADONLY", [surfAmount], nil))
462- let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._1
463- let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._1
461+ let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._7
462+ let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._7
464463 let price = asInt(surfResult[bFuncIdxWavesPrice])
465464 let additionalLimitUsdn = (limitNew - limitOld)
466465 let additionalLimitWaves = fraction(additionalLimitUsdn, MULT8, price)
467466 let br0 = asInt(surfResult[bFuncIdxBRStart])
468467 let br1 = asInt(surfResult[bFuncIdxBREnd])
469468 let priceSurf2Waves0 = fraction(br0, MULT6, price)
470469 let priceSurf2Waves1 = fraction(br1, MULT6, price)
471470 let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil))
472471 let votingPowerMax = asInt(gsnbtRestV2DATA[21])
473472 let votingPowerMaxNEW = asInt(gsnbtRestV2DATA[22])
474473 let votingPowerEtaNEW = asInt(gsnbtRestV2DATA[23])
475474 let mergedVotingPowerEta = votingPowerEtaNEW
476475 let maxVotingPowerDiff = (votingPowerMaxNEW - votingPowerMax)
477476 let rest = asInt(surfResult[bFuncIdxRest])
478477 $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(mergedVotingPowerEta), toString(maxVotingPowerDiff), toString(rest)], SEP))
479478 }
480479
481480
482481
483482 @Callable(i)
484483 func walletInfoREADONLY (userAddressStr) = {
485484 let addr = addressFromStringValue(userAddressStr)
486485 let balance = wavesBalance(addr)
487486 let usdnLocked = getLockedOnRpd(userAddressStr, neutrinoAssetIdString)
488487 let nsbtLockedOld = getLockedOnRpd(userAddressStr, nsbtAssetIdStr)
489488 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil))
490489 let nsbtData = asAnyList(gnsbtData[2])
491490 let nsbtUser = asInt(nsbtData[0])
492491 let nsbtTotal = asInt(nsbtData[1])
493492 let gNsbtFromNsbtUser = asInt(nsbtData[2])
494493 let gNsbtFromNsbtTotal = asInt(nsbtData[3])
495494 let surfData = asAnyList(gnsbtData[3])
496495 let surfUser = asInt(surfData[0])
497496 let surfTotal = asInt(surfData[1])
498497 let gNsbtFromSurfUser = asInt(surfData[2])
499498 let gNsbtFromSurfTotal = asInt(surfData[3])
500499 let availableUsdnToClaimFromSurf = 0
501500 let alreadyClaimedUsdnFromSurf = 0
502501 let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStr, 0, 0], nil))
503502 let votingPower = asInt(gsnbtRestV2DATA[19])
504503 let votingPowerMax = asInt(gsnbtRestV2DATA[21])
505504 let votingPowerEta = asInt(gsnbtRestV2DATA[23])
506505 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(balance.regular), toString(balance.available), toString(balance.generating), toString(balance.effective), toString(height), toString(usdnLocked), toString(nsbtLockedOld), toString(nsbtUser), toString(gNsbtFromNsbtUser), toString(gNsbtFromSurfUser), toString(surfUser), toString(votingPower), toString(votingPowerMax), toString(votingPowerEta), toString(availableUsdnToClaimFromSurf), toString(alreadyClaimedUsdnFromSurf), toString(gNsbtFromNsbtTotal), toString(gNsbtFromSurfTotal)], SEP))
507506 }
508507
509508
510509
511510 @Callable(i)
512511 func mergedStakeREADONLY (amount1,height1,amount2,height2) = {
513512 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
514513 let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil))
515514 $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP))
516515 }
517516
518517
519518
520519 @Callable(i)
521520 func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = {
522521 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
523522 let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil))
524523 if ((a == a))
525524 then $Tuple2(nil, makeString(["%d", toString(a)], SEP))
526525 else throw("Strict value is not equal to itself.")
527526 }
528527
529528
530529
531530 @Callable(i)
532531 func unstakeComissionAmountByUserREADONLY (amount,userAddress) = {
533532 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
534533 let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height)
535534 let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil))
536535 if ((a == a))
537536 then $Tuple2(nil, makeString(["%d", toString(a)], SEP))
538537 else throw("Strict value is not equal to itself.")
539538 }
540539
541540
542541
543542 @Callable(i)
544543 func neutrinoStateREST () = {
545544 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
546545 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
547546 let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance])
548547 let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance])
549548 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
550549 let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn])
551550 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
552551 let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus])
553552 let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent])
554553 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
555554 let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
556555 let nsbtSupplyMax = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
557556 let surfSupply = asInt(neutrinoMetrics[nMetricIdxSurfSupply])
558557 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)], "__"))
559558 }
560559
561560
562561
563562 @Callable(i)
564563 func nsbtPriceREST () = {
565564 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
566565 let nsbt2usdnPrice = asInt(prices[0])
567566 let nsbt2wavesPrice = asInt(prices[1])
568567 let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__")
569568 throw(restData)
570569 }
571570
572571
573572
574573 @Callable(i)
575574 func surfPriceREST () = {
576575 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
577576 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
578577 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
579578 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
580579 let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply)
581580 let surfPriceInWaves = fraction(reservesInWaves, MULT8, neutrinoSupply)
582581 let restData = makeString(["startSurfPriceREST", toString(surfPriceInUsdn), toString(surfPriceInWaves), "endSurfPriceREST"], "__")
583582 throw(restData)
584583 }
585584
586585

github/deemru/w8io/026f985 
72.98 ms