tx · 9eyYNLRgbv1iMABz5s3KuAr7ywA4mMxKbjcAgGCYrZfC

3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi:  -0.03400000 Waves

2023.02.10 10:54 [2443255] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves

{ "type": 13, "id": "9eyYNLRgbv1iMABz5s3KuAr7ywA4mMxKbjcAgGCYrZfC", "fee": 3400000, "feeAssetId": null, "timestamp": 1676015661063, "version": 2, "chainId": 84, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "mgG58JrRRd4kgQuPW6sQxFkovFcUkX8ifALH2Pu2LiH1LphfVDqWFkR8oq34424fXsHB4Q9Y3qVZveyfrDGg7J9" ], "script": "base64:AAIFAAAAAAAAAEgIAhIFCgMICAgSABIDCgEIEgQKAggBEgASAwoBARIFCgMIAQgSAwoBCBIGCgQBAQEBEgQKAgEBEgQKAgEIEgMKAQESABIAEgAAAAB5AAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAZFVUxFUjgAAAAAABAzxNYAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAAAAAZNVUxUMTIAAAAA6NSlEAAAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAAtCUlBST1RFQ1RFRAAAAAAAAAGGoAAAAAAOREVGQVVMVFBBWU1FTlQAAAAAADuaygAAAAAAFERFRkFVTFRDUkVBVElPTkdOU0JUAAAAAAA7msoAAAAAAAdXQVZFU0lECQACWQAAAAECAAAABVdBVkVTAAAAAA9uTWV0cmljSWR4UHJpY2UAAAAAAAAAAAAAAAAAG25NZXRyaWNJZH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AABU1VTFQ4BQAAAA5uZXV0cmlub1N1cHBseQQAAAAIcmVzdERhdGEJAAS5AAAAAgkABEwAAAACAgAAABJzdGFydFN1cmZQcmljZVJFU1QJAARMAAAAAgkAAaQAAAABBQAAAA9zdXJmUHJpY2VJblVzZG4JAARMAAAAAgkAAaQAAAABBQAAABBzdXJmUHJpY2VJbldhdmVzCQAETAAAAAICAAAAEGVuZFN1cmZQcmljZVJFU1QFAAAAA25pbAIAAAACX18JAAACAAAAAQUAAAAIcmVzdERhdGEAAAAAry1GZw==", "height": 2443255, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7FuJbhUwLNEBw3XcNSrqpVHmj9LD6uYoE4yXUgFBdKBo Next: 92yBKs7DwhRJ3SbZHcJ1sgCDxQXxunFCXhpBc9vZoctK Diff:
OldNewDifferences
5050 let nMetricIdxMaxNsbtSupply = 10
5151
5252 let nMetricIdxSurfSupply = 11
53+
54+let nMetricUsdnUsdtPeg = 12
55+
56+let nMetricCurrentPriceAdj = 13
5357
5458 let bFuncIdxSurf = 0
5559
332336
333337
334338 @Callable(i)
335-func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this))
339+func constructorV1 (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this))
336340 then throw("not authorized")
337341 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)]
338342
353357 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
354358 let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
355359 let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
360+ let usdnUsdtPeg = asInt(neutrinoMetrics[nMetricUsdnUsdtPeg])
361+ let burnPrice = asInt(neutrinoMetrics[nMetricCurrentPriceAdj])
362+ let issuePrice = currentPrice
356363 let nsbt2usdnPrice = asInt(prices[0])
357364 let nsbt2wavesPrice = asInt(prices[1])
358- let minWaves4NsbtBuy = minWavesForNsbtBuy()
359- let minNsbtsell = minNsbtForSell()
360- let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount())
361365 let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves)
362366 let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn)
363367 let surfPriceInUsdn = BR
364368 let surfPriceInWaves = fraction(BR, MULT6, currentPrice)
365369 let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0)
366- $Tuple2(nil, makeString(["%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(totalUsdnStaked)], SEP))
370+ $Tuple2(nil, makeString(["%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(usdnUsdtPeg), toString(issuePrice), toString(burnPrice), toString(totalUsdnStaked)], SEP))
367371 }
368372
369373
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 BRPROTECTED = 100000
2323
2424 let DEFAULTPAYMENT = 1000000000
2525
2626 let DEFAULTCREATIONGNSBT = 1000000000
2727
2828 let WAVESID = fromBase58String("WAVES")
2929
3030 let nMetricIdxPrice = 0
3131
3232 let nMetricIdxUsdnLockedBalance = 1
3333
3434 let nMetricIdxWavesLockedBalance = 2
3535
3636 let nMetricIdxReserve = 3
3737
3838 let nMetricIdxReserveInUsdn = 4
3939
4040 let nMetricIdxUsdnSupply = 5
4141
4242 let nMetricIdxSurplus = 6
4343
4444 let nMetricIdxSurplusPercent = 7
4545
4646 let nMetricIdxBR = 8
4747
4848 let nMetricIdxNsbtSupply = 9
4949
5050 let nMetricIdxMaxNsbtSupply = 10
5151
5252 let nMetricIdxSurfSupply = 11
53+
54+let nMetricUsdnUsdtPeg = 12
55+
56+let nMetricCurrentPriceAdj = 13
5357
5458 let bFuncIdxSurf = 0
5559
5660 let bFuncIdxWaves = 1
5761
5862 let bFuncIdxUsdn = 2
5963
6064 let bFuncIdxReserveStart = 3
6165
6266 let bFuncIdxSupplyStart = 4
6367
6468 let bFuncIdxBRStart = 5
6569
6670 let bFuncIdxReserveEnd = 6
6771
6872 let bFuncIdxSupplyEnd = 7
6973
7074 let bFuncIdxBREnd = 8
7175
7276 let bFuncIdxRest = 9
7377
7478 let bFuncIdxWavesPrice = 10
7579
7680 func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress"
7781
7882
7983 func keyNeutrinoAssetId () = "neutrino_asset_id"
8084
8185
8286 func keyNsbtAssetId () = "bond_asset_id"
8387
8488
8589 func keySurfAssetId () = "surf_asset_id"
8690
8791
8892 func keyBalanceLocked () = "balance_lock_"
8993
9094
9195 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
9296
9397
9498 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
9599
96100
97101 func keyMinWavesSwapAmount () = "min_waves_swap_amount"
98102
99103
100104 func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount"
101105
102106
103107 func keyWavesOutFeePart () = "wavesOut_swap_feePart"
104108
105109
106110 func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart"
107111
108112
109113 func keySwapAmountAParam () = "%s%s__config__swapAParam"
110114
111115
112116 func keySwapAmountBParam () = "%s%s__config__swapBParam"
113117
114118
115119 func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
116120
117121
118122 func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
119123
120124
121125 func keyNsbtLockContract () = "%s__nsbtLockContract"
122126
123127
124128 func keyMathContract () = "%s__mathContract"
125129
126130
127131 func brProtectedKEY () = "min_BR_protection_level"
128132
129133
130134 func keyBalanceWavesLockInterval () = "balance_waves_lock_interval"
131135
132136
133137 func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval"
134138
135139
136140 func keyPaymentRequired () = "%s__paymentRequired"
137141
138142
139143 func keyGnsbtRequired () = "%s__gNsbtRequired"
140144
141145
142146 func keyPrice () = "price"
143147
144148
145149 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP)
146150
147151
148152 func keyHalfLife () = "%s__halfLife"
149153
150154
151155 func keyMinLockAmount () = "%s__minLockAmount"
152156
153157
154158 func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy"
155159
156160
157161 func keyMinNsbtSell () = "min_nsbt_sell"
158162
159163
160164 func keyRpdContractBalanceKey (assetId) = ("rpd_balance_" + assetId)
161165
162166
163167 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
164168
165169
166170 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
167171
168172
169173 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
170174
171175
172176 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
173177
174178
175179 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
176180
177181
178182 func asAnyList (val) = match val {
179183 case valAnyList: List[Any] =>
180184 valAnyList
181185 case _ =>
182186 throw("fail to cast into List[Any]")
183187 }
184188
185189
186190 func asInt (val) = match val {
187191 case valInt: Int =>
188192 valInt
189193 case _ =>
190194 throw("fail to cast into Int")
191195 }
192196
193197
194198 func asString (val) = match val {
195199 case valStr: String =>
196200 valStr
197201 case _ =>
198202 throw("fail to cast into String")
199203 }
200204
201205
202206 func asTuple2Ints (val) = match val {
203207 case v: (Int, Int) =>
204208 v
205209 case _ =>
206210 throw("fail to cast into Tuple2 ints")
207211 }
208212
209213
210214 func asSwapParamsSTRUCT (val) = match val {
211215 case struct: (Int, Int, Int, Int, Int, Int, Int) =>
212216 struct
213217 case _ =>
214218 throw("fail to cast into SwapParamsSTRUCT")
215219 }
216220
217221
218222 func toTimestamp (start) = if ((0 > start))
219223 then -1
220224 else match blockInfoByHeight(start) {
221225 case block: BlockInfo =>
222226 block.timestamp
223227 case _ =>
224228 -1
225229 }
226230
227231
228232 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
229233
230234
231235 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
232236
233237
234238 let IdxControlCfgNeutrinoDapp = 1
235239
236240 let IdxControlCfgAuctionDapp = 2
237241
238242 let IdxControlCfgRpdDapp = 3
239243
240244 let IdxControlCfgMathDapp = 4
241245
242246 let IdxControlCfgLiquidationDapp = 5
243247
244248 let IdxControlCfgRestDapp = 6
245249
246250 let IdxControlCfgNodeRegistryDapp = 7
247251
248252 let IdxControlCfgNsbtStakingDapp = 8
249253
250254 let IdxControlCfgMediatorDapp = 9
251255
252256 let IdxControlCfgSurfStakingDapp = 10
253257
254258 let IdxControlCfgGnsbtControllerDapp = 11
255259
256260 let IdxControlCfgRestV2Dapp = 12
257261
258262 let IdxControlCfgGovernanceDapp = 13
259263
260264 func keyControlAddress () = "%s%s__config__controlAddress"
261265
262266
263267 func keyControlCfg () = "%s__controlConfig"
264268
265269
266270 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
267271
268272
269273 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
270274
271275
272276 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
273277
274278 let controlCfg = readControlCfgOrFail(controlContract)
275279
276280 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
277281
278282 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
279283
280284 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
281285
282286 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
283287
284288 let rpdContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
285289
286290 let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp)
287291
288292 let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
289293
290294 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
291295
292296 let restV2Contract = getContractAddressOrFail(controlCfg, IdxControlCfgRestV2Dapp)
293297
294298 let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
295299
296300 let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
297301
298302 let neutrinoAssetId = fromBase58String(neutrinoAssetIdString)
299303
300304 let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId())
301305
302306 let nsbtAssetId = fromBase58String(nsbtAssetIdStr)
303307
304308 let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId())
305309
306310 let surfAssetId = fromBase58String(surfAssetIdStr)
307311
308312 func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil))
309313
310314
311315 func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil))
312316
313317
314318 func minWavesForSurfBuy () = asInt(invoke(auctionContract, "minWavesAmountSurfBuySYSREADONLY", nil, nil))
315319
316320
317321 func minUsdnForSurfBuy () = asInt(invoke(auctionContract, "minUsdnAmountSurfBuySYSREADONLY", nil, nil))
318322
319323
320324 func privateNsbtPriceREST () = {
321325 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
322326 let nsbt2usdnPrice = asInt(prices[0])
323327 let nsbt2wavesPrice = asInt(prices[1])
324328 $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice))
325329 }
326330
327331
328332 func getLockedOnRpd (addrStr,assetIdStr) = {
329333 let key = makeString(["rpd_balance", assetIdStr, addrStr], "_")
330334 valueOrElse(getInteger(rpdContract, key), 0)
331335 }
332336
333337
334338 @Callable(i)
335-func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this))
339+func constructorV1 (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this))
336340 then throw("not authorized")
337341 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)]
338342
339343
340344
341345 @Callable(i)
342346 func neutrinoStatsREADONLY () = {
343347 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
344348 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
345349 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
346350 let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance])
347351 let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance])
348352 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
349353 let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn])
350354 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
351355 let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus])
352356 let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent])
353357 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
354358 let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
355359 let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
360+ let usdnUsdtPeg = asInt(neutrinoMetrics[nMetricUsdnUsdtPeg])
361+ let burnPrice = asInt(neutrinoMetrics[nMetricCurrentPriceAdj])
362+ let issuePrice = currentPrice
356363 let nsbt2usdnPrice = asInt(prices[0])
357364 let nsbt2wavesPrice = asInt(prices[1])
358- let minWaves4NsbtBuy = minWavesForNsbtBuy()
359- let minNsbtsell = minNsbtForSell()
360- let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount())
361365 let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves)
362366 let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn)
363367 let surfPriceInUsdn = BR
364368 let surfPriceInWaves = fraction(BR, MULT6, currentPrice)
365369 let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0)
366- $Tuple2(nil, makeString(["%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(totalUsdnStaked)], SEP))
370+ $Tuple2(nil, makeString(["%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(usdnUsdtPeg), toString(issuePrice), toString(burnPrice), toString(totalUsdnStaked)], SEP))
367371 }
368372
369373
370374
371375 @Callable(i)
372376 func swapInfoREADONLY (userAddressStrOpt) = {
373377 let currentPrice = getIntegerValue(controlContract, keyPrice())
374378 let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount())
375379 let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount())
376380 let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart())
377381 let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart())
378382 let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval())
379383 let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval())
380384 let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
381385 let swapLimitMaxUsdn = swapParamsSTRUCT._1
382386 let swapLimitSpentUsdn = swapParamsSTRUCT._2
383387 let blcks2LmtReset = swapParamsSTRUCT._3
384388 let wavesSwapLimitMax = swapParamsSTRUCT._6
385389 let usdnSwapLimitMax = swapParamsSTRUCT._7
386390 $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))
387391 }
388392
389393
390394
391395 @Callable(i)
392396 func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
393397 let currentPrice = getIntegerValue(controlContract, keyPrice())
394398 let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
395399 let blcks2LmtReset = swapParams._3
396400 let gnsbtAmt = swapParams._4
397401 let gnsbtAmtTotal = swapParams._5
398402 let limitMaxWaves = swapParams._6
399403 let limitMaxUsdn = swapParams._7
400404 let swapParamsNEW = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
401405 let blcks2LmtResetNEW = swapParamsNEW._3
402406 let gnsbtAmtNEW = swapParamsNEW._4
403407 let gnsbtAmtTotalNEW = swapParamsNEW._5
404408 let limitMaxWavesNEW = swapParamsNEW._6
405409 let limitMaxUsdnNEW = swapParamsNEW._7
406410 let gnsbtShare = if ((gnsbtAmtTotal != 0))
407411 then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal)
408412 else 0
409413 let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0))
410414 then fraction((gnsbtAmtNEW * 100), MULT12, gnsbtAmtTotalNEW)
411415 else 0
412416 let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil))
413417 let nsbtAmt = gnsbtAmt
414418 let nsbtAmtNew = gnsbtAmtNEW
415419 let nsbtAmtStakedTotal = assetBalance(nsbtStakingContract, nsbtAssetId)
416420 let nsbtAmtStakedTotalNew = nsbtAmtStakedTotal
417421 let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
418422 let isEmptyNsbtBalance = if ((gnsbtAmt == 0))
419423 then (gnsbtAmtNEW == 0)
420424 else false
421425 let startHeight = if (isEmptyNsbtBalance)
422426 then height
423427 else asInt(nsbtData[2])
424428 let startTimestamp = toTimestamp(startHeight)
425429 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
426430 let startHeightNew = if (isEmptyNsbtBalance)
427431 then height
428432 else asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil))
429433 let startTimestampNew = toTimestamp(startHeightNew)
430434 $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))
431435 }
432436
433437
434438
435439 @Callable(i)
436440 func neutrinoConfigREADONLY () = {
437441 let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam())
438442 let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam())
439443 let usdnLimitParamA = getIntegerValue(mathContract, keyUsdnSwapAmountAParam())
440444 let usdnLimitParamB = getIntegerValue(mathContract, keyUsdnSwapAmountBParam())
441445 let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount())
442446 let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount())
443447 let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart())
444448 let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart())
445449 let brProtected = valueOrElse(getInteger(neutrinoContract, brProtectedKEY()), BRPROTECTED)
446450 let usdnSwapDelay = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval())
447451 let wavesSwapDelay = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval())
448452 let minWaves4NsbtBuy = minWavesForNsbtBuy()
449453 let minNsbtsell = minNsbtForSell()
450454 let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount())
451455 let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife())
452456 let minWaves4SurfBuy = minWavesForSurfBuy()
453457 let minUsdn4SurfBuy = minUsdnForSurfBuy()
454458 let surfStakingCfg = asAnyList(invoke(surfStakingContract, "configSYSREADONLY", nil, nil))
455459 let minSurfStakeAmt = asInt(surfStakingCfg[0])
456460 let gnsbtFromSurfCoeff = asInt(surfStakingCfg[1])
457461 let surfVotingPowerRestrictivePeriod = asInt(surfStakingCfg[2])
458462 let brToStartSurfTransformation = asInt(surfStakingCfg[3])
459463 let shutdown = valueOrElse(getBoolean(controlContract, "is_blocked"), false)
460464 let votingCreationCost = valueOrElse(getInteger(governanceContract, keyPaymentRequired()), DEFAULTPAYMENT)
461465 let votingCreationGnsbtNeeded = valueOrElse(getInteger(governanceContract, keyGnsbtRequired()), DEFAULTCREATIONGNSBT)
462466 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%b%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), toString(minSurfStakeAmt), toString(gnsbtFromSurfCoeff), toString(surfVotingPowerRestrictivePeriod), toString(brToStartSurfTransformation), toString(shutdown), toString(usdnLimitParamA), toString(usdnLimitParamB), toString(brProtected), toString(wavesSwapDelay), toString(usdnSwapDelay), toString(votingCreationCost), toString(votingCreationGnsbtNeeded)], SEP))
463467 }
464468
465469
466470
467471 @Callable(i)
468472 func buyNsbtREADONLY (wavesPay) = {
469473 let minWavesAmountNsbtBuy = minWavesForNsbtBuy()
470474 if ((minWavesAmountNsbtBuy > wavesPay))
471475 then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected"))
472476 else {
473477 let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil))
474478 if ((curveResult == curveResult))
475479 then {
476480 let nsbtAmount = asInt(curveResult[0])
477481 if ((0 >= nsbtAmount))
478482 then throw("nsbtAmount <= 0")
479483 else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP))
480484 }
481485 else throw("Strict value is not equal to itself.")
482486 }
483487 }
484488
485489
486490
487491 @Callable(i)
488492 func buySurfREADONLY (userAddressStrOpt,amount,assetIdStr) = {
489493 let assetId = fromBase58String(assetIdStr)
490494 let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil))
491495 let surfAmount = asInt(surfResult[bFuncIdxSurf])
492496 let gNsbtAmount = asInt(invoke(surfStakingContract, "gnsbtFromSurfSYSREADONLY", [surfAmount], nil))
493497 let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
494498 let wavesLimit = swapParams._6
495499 let usdnLimit = swapParams._7
496500 let swapParamsNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))
497501 let wavesLimitNew = swapParamsNew._6
498502 let usdnLimitNew = swapParamsNew._7
499503 let price = asInt(surfResult[bFuncIdxWavesPrice])
500504 let additionalLimitUsdn = (usdnLimitNew - usdnLimit)
501505 let additionalLimitWaves = (wavesLimitNew - wavesLimit)
502506 let br0 = asInt(surfResult[bFuncIdxBRStart])
503507 let br1 = asInt(surfResult[bFuncIdxBREnd])
504508 let priceSurf2Waves0 = fraction(br0, MULT6, price)
505509 let priceSurf2Waves1 = fraction(br1, MULT6, price)
506510 let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil))
507511 let votingPowerMax = asInt(gsnbtRestV2DATA[21])
508512 let votingPowerMaxNEW = asInt(gsnbtRestV2DATA[22])
509513 let votingPowerEtaNEW = asInt(gsnbtRestV2DATA[23])
510514 let mergedVotingPowerEta = votingPowerEtaNEW
511515 let maxVotingPowerDiff = (votingPowerMaxNEW - votingPowerMax)
512516 let rest = asInt(surfResult[bFuncIdxRest])
513517 $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))
514518 }
515519
516520
517521
518522 @Callable(i)
519523 func walletInfoREADONLY (userAddressStrOpt) = {
520524 let addr = addressFromString(userAddressStrOpt)
521525 let balance = if (isDefined(addr))
522526 then wavesBalance(value(addr))
523527 else BalanceDetails(0, 0, 0, 0)
524528 let usdnLocked = getLockedOnRpd(userAddressStrOpt, neutrinoAssetIdString)
525529 let nsbtLockedOld = getLockedOnRpd(userAddressStrOpt, nsbtAssetIdStr)
526530 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStrOpt, 0, 0], nil))
527531 let nsbtData = asAnyList(gnsbtData[2])
528532 let nsbtUser = asInt(nsbtData[0])
529533 let nsbtTotal = asInt(nsbtData[1])
530534 let gNsbtFromNsbtUser = asInt(nsbtData[2])
531535 let gNsbtFromNsbtTotal = asInt(nsbtData[3])
532536 let surfData = asAnyList(gnsbtData[3])
533537 let surfUser = asInt(surfData[0])
534538 let surfTotal = asInt(surfData[1])
535539 let gNsbtFromSurfUser = asInt(surfData[2])
536540 let gNsbtFromSurfTotal = asInt(surfData[3])
537541 let availableUsdnToClaimFromSurf = 0
538542 let alreadyClaimedUsdnFromSurf = 0
539543 let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, 0], nil))
540544 let votingPower = asInt(gsnbtRestV2DATA[19])
541545 let votingPowerMax = asInt(gsnbtRestV2DATA[21])
542546 let votingPowerEta = asInt(gsnbtRestV2DATA[23])
543547 $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))
544548 }
545549
546550
547551
548552 @Callable(i)
549553 func mergedStakeREADONLY (amount1,height1,amount2,height2) = {
550554 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
551555 let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil))
552556 $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP))
553557 }
554558
555559
556560
557561 @Callable(i)
558562 func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = {
559563 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
560564 let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil))
561565 if ((a == a))
562566 then $Tuple2(nil, makeString(["%d", toString(a)], SEP))
563567 else throw("Strict value is not equal to itself.")
564568 }
565569
566570
567571
568572 @Callable(i)
569573 func unstakeComissionAmountByUserREADONLY (amount,userAddress) = {
570574 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
571575 let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height)
572576 let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil))
573577 if ((a == a))
574578 then $Tuple2(nil, makeString(["%d", toString(a)], SEP))
575579 else throw("Strict value is not equal to itself.")
576580 }
577581
578582
579583
580584 @Callable(i)
581585 func usdnStakingAprREADONLY (days) = {
582586 let wavesIncome = (6000 * MULT8)
583587 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
584588 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
585589 let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0)
586590 let usdnIncome = fraction(wavesIncome, currentPrice, MULT8)
587591 let apr = fraction((usdnIncome * MULT6), 365, totalUsdnStaked)
588592 $Tuple2(nil, [apr])
589593 }
590594
591595
592596
593597 @Callable(i)
594598 func neutrinoStateREST () = {
595599 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
596600 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
597601 let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance])
598602 let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance])
599603 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
600604 let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn])
601605 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
602606 let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus])
603607 let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent])
604608 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
605609 let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
606610 let nsbtSupplyMax = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
607611 let surfSupply = asInt(neutrinoMetrics[nMetricIdxSurfSupply])
608612 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)], "__"))
609613 }
610614
611615
612616
613617 @Callable(i)
614618 func nsbtPriceREST () = {
615619 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
616620 let nsbt2usdnPrice = asInt(prices[0])
617621 let nsbt2wavesPrice = asInt(prices[1])
618622 let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__")
619623 throw(restData)
620624 }
621625
622626
623627
624628 @Callable(i)
625629 func surfPriceREST () = {
626630 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
627631 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
628632 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
629633 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
630634 let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply)
631635 let surfPriceInWaves = fraction(reservesInWaves, MULT8, neutrinoSupply)
632636 let restData = makeString(["startSurfPriceREST", toString(surfPriceInUsdn), toString(surfPriceInWaves), "endSurfPriceREST"], "__")
633637 throw(restData)
634638 }
635639
636640

github/deemru/w8io/026f985 
94.47 ms