tx · BnNugbQocfV479kCQXn6dT5HMX9osgXXx7msfU2cCtDK

3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi:  -0.04000000 Waves

2022.10.18 13:26 [2277712] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves

{ "type": 13, "id": "BnNugbQocfV479kCQXn6dT5HMX9osgXXx7msfU2cCtDK", "fee": 4000000, "feeAssetId": null, "timestamp": 1666088864474, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "4MXHaFwHzVbNsDKgevgysvimRMnFmxveCcg87FQxMCUhGn2f2LZCnUJzBdrJjgZTevB7LBTPvm29Ke4rno781RTT" ], "script": "base64:AAIFAAAAAAAAAEMIAhIFCgMICAgSABIDCgEIEgQKAggBEgASAwoBARIFCgMIAQgSAwoBCBIGCgQBAQEBEgQKAgEBEgQKAgEIEgASABIAAAAAdwAAAAALcmV2aXNpb25OdW0CAAAAAAAAAAAGRVVMRVI4AAAAAAAQM8TWAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAAGTVVMVFg2CQABNgAAAAEAAAAAAAAPQkAAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAZNVUxUWDgJAAE2AAAAAQAAAAAABfXhAAAAAAAGTVVMVDEyAAAAAOjUpRAAAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAALQlJQUk9URUNURUQAAAAAAAABhqAAAAAADkRFRkFVTFRQQVlNRU5UAAAAAAA7msoAAAAAABRERUZBVUxUQ1JFQVRJT05HTlNCVAAAAAAAO5rKAAAAAAAHV0FWRVNJRAkAAlkAAAABAgAAAAVXQVZFUwAAAAAPbk1ldHJpY0lkeFByaWNlAAAAAAAAAAAAAAAAABtuTWV0cmljSWR4VXNkbkxvY2tlZEJhbGFuY2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vc2RuCQAAawAAAAMFAAAAD3Jlc2VydmVzSW5XYXZlcwUAAAAMY3VycmVudFByaWNlBQAAAA5uZXV0cmlub1N1cHBseQQAAAAQc3VyZlByaWNlSW5XYXZlcwkAAGsAAAADBQAAAA9yZXNlcnZlc0luV2F2ZXMFAAAABU1VTFQ4BQAAAA5uZXV0cmlub1N1cHBseQQAAAAIcmVzdERhdGEJAAS5AAAAAgkABEwAAAACAgAAABJzdGFydFN1cmZQcmljZVJFU1QJAARMAAAAAgkAAaQAAAABBQAAAA9zdXJmUHJpY2VJblVzZG4JAARMAAAAAgkAAaQAAAABBQAAABBzdXJmUHJpY2VJbldhdmVzCQAETAAAAAICAAAAEGVuZFN1cmZQcmljZVJFU1QFAAAAA25pbAIAAAACX18JAAACAAAAAQUAAAAIcmVzdERhdGEAAAAAB9tC2g==", "chainId": 84, "height": 2277712, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DcGREuRf7iPdyFGm53cnAPfAEtpS8aDkfwUHA8CnnzMj Next: 8gEbPwPCs2gXHnydsY1pnpDodZXjrgCwv221ibgqqFnG Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let revisionNum = "6a94b841b387e5d4bd8be8f8ed5f80057ef86186"
4+let revisionNum = ""
55
66 let EULER8 = 271828182
77
2020 let SEP = "__"
2121
2222 let BRPROTECTED = 100000
23+
24+let DEFAULTPAYMENT = 1000000000
25+
26+let DEFAULTCREATIONGNSBT = 1000000000
2327
2428 let WAVESID = fromBase58String("WAVES")
2529
127131
128132
129133 func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval"
134+
135+
136+func keyPaymentRequired () = "%s__paymentRequired"
137+
138+
139+func keyGnsbtRequired () = "%s__gNsbtRequired"
130140
131141
132142 func keyPrice () = "price"
245255
246256 let IdxControlCfgRestV2Dapp = 12
247257
258+let IdxControlCfgGovernanceDapp = 13
259+
248260 func keyControlAddress () = "%s%s__config__controlAddress"
249261
250262
278290 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
279291
280292 let restV2Contract = getContractAddressOrFail(controlCfg, IdxControlCfgRestV2Dapp)
293+
294+let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
281295
282296 let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
283297
443457 let surfVotingPowerRestrictivePeriod = asInt(surfStakingCfg[2])
444458 let brToStartSurfTransformation = asInt(surfStakingCfg[3])
445459 let shutdown = valueOrElse(getBoolean(controlContract, "is_blocked"), false)
446- $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", 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)], SEP))
460+ let votingCreationCost = valueOrElse(getInteger(governanceContract, keyPaymentRequired()), DEFAULTPAYMENT)
461+ let votingCreationGnsbtNeeded = valueOrElse(getInteger(governanceContract, keyGnsbtRequired()), DEFAULTCREATIONGNSBT)
462+ $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))
447463 }
448464
449465
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let revisionNum = "6a94b841b387e5d4bd8be8f8ed5f80057ef86186"
4+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
23+
24+let DEFAULTPAYMENT = 1000000000
25+
26+let DEFAULTCREATIONGNSBT = 1000000000
2327
2428 let WAVESID = fromBase58String("WAVES")
2529
2630 let nMetricIdxPrice = 0
2731
2832 let nMetricIdxUsdnLockedBalance = 1
2933
3034 let nMetricIdxWavesLockedBalance = 2
3135
3236 let nMetricIdxReserve = 3
3337
3438 let nMetricIdxReserveInUsdn = 4
3539
3640 let nMetricIdxUsdnSupply = 5
3741
3842 let nMetricIdxSurplus = 6
3943
4044 let nMetricIdxSurplusPercent = 7
4145
4246 let nMetricIdxBR = 8
4347
4448 let nMetricIdxNsbtSupply = 9
4549
4650 let nMetricIdxMaxNsbtSupply = 10
4751
4852 let nMetricIdxSurfSupply = 11
4953
5054 let bFuncIdxSurf = 0
5155
5256 let bFuncIdxWaves = 1
5357
5458 let bFuncIdxUsdn = 2
5559
5660 let bFuncIdxReserveStart = 3
5761
5862 let bFuncIdxSupplyStart = 4
5963
6064 let bFuncIdxBRStart = 5
6165
6266 let bFuncIdxReserveEnd = 6
6367
6468 let bFuncIdxSupplyEnd = 7
6569
6670 let bFuncIdxBREnd = 8
6771
6872 let bFuncIdxRest = 9
6973
7074 let bFuncIdxWavesPrice = 10
7175
7276 func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress"
7377
7478
7579 func keyNeutrinoAssetId () = "neutrino_asset_id"
7680
7781
7882 func keyNsbtAssetId () = "bond_asset_id"
7983
8084
8185 func keySurfAssetId () = "surf_asset_id"
8286
8387
8488 func keyBalanceLocked () = "balance_lock_"
8589
8690
8791 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
8892
8993
9094 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
9195
9296
9397 func keyMinWavesSwapAmount () = "min_waves_swap_amount"
9498
9599
96100 func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount"
97101
98102
99103 func keyWavesOutFeePart () = "wavesOut_swap_feePart"
100104
101105
102106 func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart"
103107
104108
105109 func keySwapAmountAParam () = "%s%s__config__swapAParam"
106110
107111
108112 func keySwapAmountBParam () = "%s%s__config__swapBParam"
109113
110114
111115 func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
112116
113117
114118 func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
115119
116120
117121 func keyNsbtLockContract () = "%s__nsbtLockContract"
118122
119123
120124 func keyMathContract () = "%s__mathContract"
121125
122126
123127 func brProtectedKEY () = "min_BR_protection_level"
124128
125129
126130 func keyBalanceWavesLockInterval () = "balance_waves_lock_interval"
127131
128132
129133 func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval"
134+
135+
136+func keyPaymentRequired () = "%s__paymentRequired"
137+
138+
139+func keyGnsbtRequired () = "%s__gNsbtRequired"
130140
131141
132142 func keyPrice () = "price"
133143
134144
135145 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP)
136146
137147
138148 func keyHalfLife () = "%s__halfLife"
139149
140150
141151 func keyMinLockAmount () = "%s__minLockAmount"
142152
143153
144154 func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy"
145155
146156
147157 func keyMinNsbtSell () = "min_nsbt_sell"
148158
149159
150160 func keyRpdContractBalanceKey (assetId) = ("rpd_balance_" + assetId)
151161
152162
153163 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
154164
155165
156166 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
157167
158168
159169 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
160170
161171
162172 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
163173
164174
165175 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
166176
167177
168178 func asAnyList (val) = match val {
169179 case valAnyList: List[Any] =>
170180 valAnyList
171181 case _ =>
172182 throw("fail to cast into List[Any]")
173183 }
174184
175185
176186 func asInt (val) = match val {
177187 case valInt: Int =>
178188 valInt
179189 case _ =>
180190 throw("fail to cast into Int")
181191 }
182192
183193
184194 func asString (val) = match val {
185195 case valStr: String =>
186196 valStr
187197 case _ =>
188198 throw("fail to cast into String")
189199 }
190200
191201
192202 func asTuple2Ints (val) = match val {
193203 case v: (Int, Int) =>
194204 v
195205 case _ =>
196206 throw("fail to cast into Tuple2 ints")
197207 }
198208
199209
200210 func asSwapParamsSTRUCT (val) = match val {
201211 case struct: (Int, Int, Int, Int, Int, Int, Int) =>
202212 struct
203213 case _ =>
204214 throw("fail to cast into SwapParamsSTRUCT")
205215 }
206216
207217
208218 func toTimestamp (start) = if ((0 > start))
209219 then -1
210220 else match blockInfoByHeight(start) {
211221 case block: BlockInfo =>
212222 block.timestamp
213223 case _ =>
214224 -1
215225 }
216226
217227
218228 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
219229
220230
221231 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
222232
223233
224234 let IdxControlCfgNeutrinoDapp = 1
225235
226236 let IdxControlCfgAuctionDapp = 2
227237
228238 let IdxControlCfgRpdDapp = 3
229239
230240 let IdxControlCfgMathDapp = 4
231241
232242 let IdxControlCfgLiquidationDapp = 5
233243
234244 let IdxControlCfgRestDapp = 6
235245
236246 let IdxControlCfgNodeRegistryDapp = 7
237247
238248 let IdxControlCfgNsbtStakingDapp = 8
239249
240250 let IdxControlCfgMediatorDapp = 9
241251
242252 let IdxControlCfgSurfStakingDapp = 10
243253
244254 let IdxControlCfgGnsbtControllerDapp = 11
245255
246256 let IdxControlCfgRestV2Dapp = 12
247257
258+let IdxControlCfgGovernanceDapp = 13
259+
248260 func keyControlAddress () = "%s%s__config__controlAddress"
249261
250262
251263 func keyControlCfg () = "%s__controlConfig"
252264
253265
254266 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
255267
256268
257269 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
258270
259271
260272 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
261273
262274 let controlCfg = readControlCfgOrFail(controlContract)
263275
264276 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
265277
266278 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
267279
268280 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
269281
270282 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
271283
272284 let rpdContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
273285
274286 let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp)
275287
276288 let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
277289
278290 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
279291
280292 let restV2Contract = getContractAddressOrFail(controlCfg, IdxControlCfgRestV2Dapp)
293+
294+let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
281295
282296 let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
283297
284298 let neutrinoAssetId = fromBase58String(neutrinoAssetIdString)
285299
286300 let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId())
287301
288302 let nsbtAssetId = fromBase58String(nsbtAssetIdStr)
289303
290304 let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId())
291305
292306 let surfAssetId = fromBase58String(surfAssetIdStr)
293307
294308 func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil))
295309
296310
297311 func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil))
298312
299313
300314 func minWavesForSurfBuy () = asInt(invoke(auctionContract, "minWavesAmountSurfBuySYSREADONLY", nil, nil))
301315
302316
303317 func minUsdnForSurfBuy () = asInt(invoke(auctionContract, "minUsdnAmountSurfBuySYSREADONLY", nil, nil))
304318
305319
306320 func privateNsbtPriceREST () = {
307321 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
308322 let nsbt2usdnPrice = asInt(prices[0])
309323 let nsbt2wavesPrice = asInt(prices[1])
310324 $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice))
311325 }
312326
313327
314328 func getLockedOnRpd (addrStr,assetIdStr) = {
315329 let key = makeString(["rpd_balance", assetIdStr, addrStr], "_")
316330 valueOrElse(getInteger(rpdContract, key), 0)
317331 }
318332
319333
320334 @Callable(i)
321335 func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this))
322336 then throw("not authorized")
323337 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)]
324338
325339
326340
327341 @Callable(i)
328342 func neutrinoStatsREADONLY () = {
329343 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
330344 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
331345 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
332346 let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance])
333347 let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance])
334348 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
335349 let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn])
336350 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
337351 let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus])
338352 let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent])
339353 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
340354 let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
341355 let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
342356 let nsbt2usdnPrice = asInt(prices[0])
343357 let nsbt2wavesPrice = asInt(prices[1])
344358 let minWaves4NsbtBuy = minWavesForNsbtBuy()
345359 let minNsbtsell = minNsbtForSell()
346360 let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount())
347361 let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves)
348362 let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn)
349363 let surfPriceInUsdn = BR
350364 let surfPriceInWaves = fraction(BR, MULT6, currentPrice)
351365 let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0)
352366 $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))
353367 }
354368
355369
356370
357371 @Callable(i)
358372 func swapInfoREADONLY (userAddressStrOpt) = {
359373 let currentPrice = getIntegerValue(controlContract, keyPrice())
360374 let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount())
361375 let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount())
362376 let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart())
363377 let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart())
364378 let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval())
365379 let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval())
366380 let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
367381 let swapLimitMaxUsdn = swapParamsSTRUCT._1
368382 let swapLimitSpentUsdn = swapParamsSTRUCT._2
369383 let blcks2LmtReset = swapParamsSTRUCT._3
370384 let wavesSwapLimitMax = swapParamsSTRUCT._6
371385 let usdnSwapLimitMax = swapParamsSTRUCT._7
372386 $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))
373387 }
374388
375389
376390
377391 @Callable(i)
378392 func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
379393 let currentPrice = getIntegerValue(controlContract, keyPrice())
380394 let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
381395 let blcks2LmtReset = swapParams._3
382396 let gnsbtAmt = swapParams._4
383397 let gnsbtAmtTotal = swapParams._5
384398 let limitMaxWaves = swapParams._6
385399 let limitMaxUsdn = swapParams._7
386400 let swapParamsNEW = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
387401 let blcks2LmtResetNEW = swapParamsNEW._3
388402 let gnsbtAmtNEW = swapParamsNEW._4
389403 let gnsbtAmtTotalNEW = swapParamsNEW._5
390404 let limitMaxWavesNEW = swapParamsNEW._6
391405 let limitMaxUsdnNEW = swapParamsNEW._7
392406 let gnsbtShare = if ((gnsbtAmtTotal != 0))
393407 then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal)
394408 else 0
395409 let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0))
396410 then fraction((gnsbtAmtNEW * 100), MULT12, gnsbtAmtTotalNEW)
397411 else 0
398412 let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil))
399413 let nsbtAmt = gnsbtAmt
400414 let nsbtAmtNew = gnsbtAmtNEW
401415 let nsbtAmtStakedTotal = assetBalance(nsbtStakingContract, nsbtAssetId)
402416 let nsbtAmtStakedTotalNew = nsbtAmtStakedTotal
403417 let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
404418 let isEmptyNsbtBalance = if ((gnsbtAmt == 0))
405419 then (gnsbtAmtNEW == 0)
406420 else false
407421 let startHeight = if (isEmptyNsbtBalance)
408422 then height
409423 else asInt(nsbtData[2])
410424 let startTimestamp = toTimestamp(startHeight)
411425 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
412426 let startHeightNew = if (isEmptyNsbtBalance)
413427 then height
414428 else asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil))
415429 let startTimestampNew = toTimestamp(startHeightNew)
416430 $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))
417431 }
418432
419433
420434
421435 @Callable(i)
422436 func neutrinoConfigREADONLY () = {
423437 let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam())
424438 let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam())
425439 let usdnLimitParamA = getIntegerValue(mathContract, keyUsdnSwapAmountAParam())
426440 let usdnLimitParamB = getIntegerValue(mathContract, keyUsdnSwapAmountBParam())
427441 let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount())
428442 let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount())
429443 let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart())
430444 let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart())
431445 let brProtected = valueOrElse(getInteger(neutrinoContract, brProtectedKEY()), BRPROTECTED)
432446 let usdnSwapDelay = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval())
433447 let wavesSwapDelay = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval())
434448 let minWaves4NsbtBuy = minWavesForNsbtBuy()
435449 let minNsbtsell = minNsbtForSell()
436450 let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount())
437451 let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife())
438452 let minWaves4SurfBuy = minWavesForSurfBuy()
439453 let minUsdn4SurfBuy = minUsdnForSurfBuy()
440454 let surfStakingCfg = asAnyList(invoke(surfStakingContract, "configSYSREADONLY", nil, nil))
441455 let minSurfStakeAmt = asInt(surfStakingCfg[0])
442456 let gnsbtFromSurfCoeff = asInt(surfStakingCfg[1])
443457 let surfVotingPowerRestrictivePeriod = asInt(surfStakingCfg[2])
444458 let brToStartSurfTransformation = asInt(surfStakingCfg[3])
445459 let shutdown = valueOrElse(getBoolean(controlContract, "is_blocked"), false)
446- $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", 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)], SEP))
460+ let votingCreationCost = valueOrElse(getInteger(governanceContract, keyPaymentRequired()), DEFAULTPAYMENT)
461+ let votingCreationGnsbtNeeded = valueOrElse(getInteger(governanceContract, keyGnsbtRequired()), DEFAULTCREATIONGNSBT)
462+ $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))
447463 }
448464
449465
450466
451467 @Callable(i)
452468 func buyNsbtREADONLY (wavesPay) = {
453469 let minWavesAmountNsbtBuy = minWavesForNsbtBuy()
454470 if ((minWavesAmountNsbtBuy > wavesPay))
455471 then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected"))
456472 else {
457473 let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil))
458474 if ((curveResult == curveResult))
459475 then {
460476 let nsbtAmount = asInt(curveResult[0])
461477 if ((0 >= nsbtAmount))
462478 then throw("nsbtAmount <= 0")
463479 else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP))
464480 }
465481 else throw("Strict value is not equal to itself.")
466482 }
467483 }
468484
469485
470486
471487 @Callable(i)
472488 func buySurfREADONLY (userAddressStrOpt,amount,assetIdStr) = {
473489 let assetId = fromBase58String(assetIdStr)
474490 let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil))
475491 let surfAmount = asInt(surfResult[bFuncIdxSurf])
476492 let gNsbtAmount = asInt(invoke(surfStakingContract, "gnsbtFromSurfSYSREADONLY", [surfAmount], nil))
477493 let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))
478494 let wavesLimit = swapParams._6
479495 let usdnLimit = swapParams._7
480496 let swapParamsNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))
481497 let wavesLimitNew = swapParamsNew._6
482498 let usdnLimitNew = swapParamsNew._7
483499 let price = asInt(surfResult[bFuncIdxWavesPrice])
484500 let additionalLimitUsdn = (usdnLimitNew - usdnLimit)
485501 let additionalLimitWaves = (wavesLimitNew - wavesLimit)
486502 let br0 = asInt(surfResult[bFuncIdxBRStart])
487503 let br1 = asInt(surfResult[bFuncIdxBREnd])
488504 let priceSurf2Waves0 = fraction(br0, MULT6, price)
489505 let priceSurf2Waves1 = fraction(br1, MULT6, price)
490506 let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil))
491507 let votingPowerMax = asInt(gsnbtRestV2DATA[21])
492508 let votingPowerMaxNEW = asInt(gsnbtRestV2DATA[22])
493509 let votingPowerEtaNEW = asInt(gsnbtRestV2DATA[23])
494510 let mergedVotingPowerEta = votingPowerEtaNEW
495511 let maxVotingPowerDiff = (votingPowerMaxNEW - votingPowerMax)
496512 let rest = asInt(surfResult[bFuncIdxRest])
497513 $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))
498514 }
499515
500516
501517
502518 @Callable(i)
503519 func walletInfoREADONLY (userAddressStrOpt) = {
504520 let addr = addressFromString(userAddressStrOpt)
505521 let balance = if (isDefined(addr))
506522 then wavesBalance(value(addr))
507523 else BalanceDetails(0, 0, 0, 0)
508524 let usdnLocked = getLockedOnRpd(userAddressStrOpt, neutrinoAssetIdString)
509525 let nsbtLockedOld = getLockedOnRpd(userAddressStrOpt, nsbtAssetIdStr)
510526 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStrOpt, 0, 0], nil))
511527 let nsbtData = asAnyList(gnsbtData[2])
512528 let nsbtUser = asInt(nsbtData[0])
513529 let nsbtTotal = asInt(nsbtData[1])
514530 let gNsbtFromNsbtUser = asInt(nsbtData[2])
515531 let gNsbtFromNsbtTotal = asInt(nsbtData[3])
516532 let surfData = asAnyList(gnsbtData[3])
517533 let surfUser = asInt(surfData[0])
518534 let surfTotal = asInt(surfData[1])
519535 let gNsbtFromSurfUser = asInt(surfData[2])
520536 let gNsbtFromSurfTotal = asInt(surfData[3])
521537 let availableUsdnToClaimFromSurf = 0
522538 let alreadyClaimedUsdnFromSurf = 0
523539 let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, 0], nil))
524540 let votingPower = asInt(gsnbtRestV2DATA[19])
525541 let votingPowerMax = asInt(gsnbtRestV2DATA[21])
526542 let votingPowerEta = asInt(gsnbtRestV2DATA[23])
527543 $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))
528544 }
529545
530546
531547
532548 @Callable(i)
533549 func mergedStakeREADONLY (amount1,height1,amount2,height2) = {
534550 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
535551 let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil))
536552 $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP))
537553 }
538554
539555
540556
541557 @Callable(i)
542558 func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = {
543559 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
544560 let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil))
545561 if ((a == a))
546562 then $Tuple2(nil, makeString(["%d", toString(a)], SEP))
547563 else throw("Strict value is not equal to itself.")
548564 }
549565
550566
551567
552568 @Callable(i)
553569 func unstakeComissionAmountByUserREADONLY (amount,userAddress) = {
554570 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
555571 let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height)
556572 let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil))
557573 if ((a == a))
558574 then $Tuple2(nil, makeString(["%d", toString(a)], SEP))
559575 else throw("Strict value is not equal to itself.")
560576 }
561577
562578
563579
564580 @Callable(i)
565581 func neutrinoStateREST () = {
566582 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
567583 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
568584 let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance])
569585 let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance])
570586 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
571587 let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn])
572588 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
573589 let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus])
574590 let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent])
575591 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
576592 let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
577593 let nsbtSupplyMax = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
578594 let surfSupply = asInt(neutrinoMetrics[nMetricIdxSurfSupply])
579595 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)], "__"))
580596 }
581597
582598
583599
584600 @Callable(i)
585601 func nsbtPriceREST () = {
586602 let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil))
587603 let nsbt2usdnPrice = asInt(prices[0])
588604 let nsbt2wavesPrice = asInt(prices[1])
589605 let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__")
590606 throw(restData)
591607 }
592608
593609
594610
595611 @Callable(i)
596612 func surfPriceREST () = {
597613 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
598614 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
599615 let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve])
600616 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
601617 let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply)
602618 let surfPriceInWaves = fraction(reservesInWaves, MULT8, neutrinoSupply)
603619 let restData = makeString(["startSurfPriceREST", toString(surfPriceInUsdn), toString(surfPriceInWaves), "endSurfPriceREST"], "__")
604620 throw(restData)
605621 }
606622
607623

github/deemru/w8io/026f985 
70.47 ms