tx · C6B1me3ckcGDpGuc2g2E6HnqunrnMsdN8bCpepNqm1Di

3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh:  -0.02400000 Waves

2023.01.12 15:30 [2401738] smart account 3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh > SELF 0.00000000 Waves

{ "type": 13, "id": "C6B1me3ckcGDpGuc2g2E6HnqunrnMsdN8bCpepNqm1Di", "fee": 2400000, "feeAssetId": null, "timestamp": 1673526633580, "version": 2, "chainId": 84, "sender": "3NAfzeA3URU6oCV6HvtAiNwqGXsTs87ZpHh", "senderPublicKey": "HiTi1JT7GQRqLNxg4yZhD1mV42y1Mv2AYvRx92JQRbwX", "proofs": [ "nJjDnbDZB3NvwDjW8zEiu6QvCK1yZ269vtU1narDqUgYLexBcbNJX4tkgfdiKfGNiBvhjh9kvxeSXT78ftk327p" ], "script": "base64:BgJWCAISBAoCAQQSBQoDCAEBEgUKAwgBARIDCgEIEgMKAQgSBAoCCAESBQoDCAEIEgUKAwgBCBIFCgMIAQgSAwoBARIDCgEBEgQKAgEBEgMKAQESBAoCAQFyAAZFVUxFUjgA1onPgQEABU1VTFQ2AMCEPQAGTVVMVFg2CQC2AgEAwIQ9AAVNVUxUOACAwtcvAAZNVUxUWDgJALYCAQCAwtcvAAdNVUxUWDEwCQC2AgEAgMivoCUABk1VTFQxMgCAoJSljR0AB01VTFRYMTYJALYCAQCAgIT+pt7hEQAGTVVMVDE4CQC2AgEAgICQu7rWrfANAANTRVACAl9fABFERUZBVUxUU1dBUEZFRU4yVwCIJwARREVGQVVMVFNXQVBGRUVXMk4AoJwBAAtCUlBST1RFQ1RFRACgjQYAB1dBVkVTSUQJANkEAQIFV0FWRVMACURBWU1JTExJUwCAuJkpARJrZXlOZXV0cmlub0Fzc2V0SWQAAhFuZXV0cmlub19hc3NldF9pZAEOa2V5TnNidEFzc2V0SWQAAg1ib25kX2Fzc2V0X2lkAQ5rZXlTdXJmQXNzZXRJZAACDXN1cmZfYXNzZ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ljZVg2CQCUCgIFA25pbAkArAICAgQlZF9fCQCkAwEFA2FwcgCudVtP", "height": 2401738, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5FdSS9RqcRhx5ng65ePpcAARKSu7MER8U9nr7sFqKN1E Next: 5Q4sY49apvAUgv1caA55zV47WLFUbUVcHmoAVNLppp8r Diff:
OldNewDifferences
530530
531531
532532 @Callable(i)
533+func swapInfoV2READONLY (userAddressStrOrEmpty,amount,assetIdStr) = {
534+ let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
535+ let price = asInt(neutrinoMetrics[nMetricIdxPrice])
536+ let swapParamsTuple = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOrEmpty, 0], nil))
537+ let blcks2LmtReset = swapParamsTuple._3
538+ let limitMaxWaves = swapParamsTuple._6
539+ let limitMaxUsdn = swapParamsTuple._7
540+ let assetId = fromBase58String(assetIdStr)
541+ let swapType = if ((assetId == WAVESID))
542+ then "waves"
543+ else if ((assetId == neutrinoAssetId))
544+ then "neutrino"
545+ else throw(("Can't swap assetId=" + assetIdStr))
546+ let withdrawTuple = asWithdrawResultSTRUCT(invoke(neutrinoContract, "calcWithdrawResultSYSREADONLY", [swapType, amount, price], nil))
547+ let outNetAmount = withdrawTuple._1
548+ let outAssetId = withdrawTuple._2
549+ let outSurfAmt = withdrawTuple._3
550+ let inAmtToSurfPart = withdrawTuple._4
551+ let unleaseAmt = withdrawTuple._5
552+ let outFeeAmount = withdrawTuple._6
553+ let outAmtGross = withdrawTuple._7
554+ let withdrawPrice = withdrawTuple._8
555+ let basketStub = "WAVES:6500000:15590257:78343:318181_EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc:318700:35980614:179903:170454_52nvaZGa7ahqa21ER2PAMBVjMi7wC2nWYCNmLvj8QjHx:585395:19588520:97942:170454_9JXnfooQYnahr5L1dH7YksMmWPE8TZramFycXyYxv6Ef:49418611:232038:1160:170454_AMFteLfPzPhTsFc3NfvHG7fSRUnsp3tJXPH88G1PCisT:461400:248526696:1242633:170454"
556+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(outNetAmount), toString(outSurfAmt), toString(outFeeAmount), toString(withdrawPrice), toString(blcks2LmtReset), toString(limitMaxWaves), toString(limitMaxUsdn), toString(inAmtToSurfPart), basketStub], SEP))
557+ }
558+
559+
560+
561+@Callable(i)
533562 func usdnStakingAprREADONLY (days) = {
534563 let tmpDays = 1
535564 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
536565 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
537- let wavesIncome = (6000 * MULT8)
566+ let wavesIncome = (0 * MULT8)
538567 let incomeForPeriod = fraction(wavesIncome, currentPrice, MULT8)
539568 let apr = calcApr(rpdContract, tmpDays, incomeForPeriod, MULT6)
540569 $Tuple2(nil, ("%d__" + toString(apr)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let EULER8 = 271828182
55
66 let MULT6 = 1000000
77
88 let MULTX6 = toBigInt(1000000)
99
1010 let MULT8 = 100000000
1111
1212 let MULTX8 = toBigInt(100000000)
1313
1414 let MULTX10 = toBigInt(10000000000)
1515
1616 let MULT12 = 1000000000000
1717
1818 let MULTX16 = toBigInt(10000000000000000)
1919
2020 let MULT18 = toBigInt(1000000000000000000)
2121
2222 let SEP = "__"
2323
2424 let DEFAULTSWAPFEEN2W = 5000
2525
2626 let DEFAULTSWAPFEEW2N = 20000
2727
2828 let BRPROTECTED = 100000
2929
3030 let WAVESID = fromBase58String("WAVES")
3131
3232 let DAYMILLIS = 86400000
3333
3434 func keyNeutrinoAssetId () = "neutrino_asset_id"
3535
3636
3737 func keyNsbtAssetId () = "bond_asset_id"
3838
3939
4040 func keySurfAssetId () = "surf_asset_id"
4141
4242
4343 func keyBalanceLocked () = "balance_lock_"
4444
4545
4646 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
4747
4848
4949 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
5050
5151
5252 func keyMinWavesSwapAmount () = "min_waves_swap_amount"
5353
5454
5555 func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount"
5656
5757
5858 func keyWavesOutFeePart () = "wavesOut_swap_feePart"
5959
6060
6161 func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart"
6262
6363
6464 func keySwapAmountAParam () = "%s%s__config__swapAParam"
6565
6666
6767 func keySwapAmountBParam () = "%s%s__config__swapBParam"
6868
6969
7070 func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
7171
7272
7373 func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
7474
7575
7676 func keyNsbtLockContract () = "%s__nsbtLockContract"
7777
7878
7979 func keyMathContract () = "%s__mathContract"
8080
8181
8282 func keyBalanceWavesLockInterval () = "balance_waves_lock_interval"
8383
8484
8585 func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval"
8686
8787
8888 func keyPrice () = "price"
8989
9090
9191 func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP)
9292
9393
9494 func keyHalfLife () = "%s__halfLife"
9595
9696
9797 func keyMinLockAmount () = "%s__minLockAmount"
9898
9999
100100 func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy"
101101
102102
103103 func keyMinNsbtSell () = "min_nsbt_sell"
104104
105105
106106 func keyStatsDepositAmtByDay (timestamp) = makeString(["%s%s%d", "stats", "depositAmtByDay", toString(timestamp)], SEP)
107107
108108
109109 func toStartOfDay (timestamp) = ((timestamp / DAYMILLIS) * DAYMILLIS)
110110
111111
112112 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
113113
114114
115115 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
116116
117117
118118 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
119119
120120
121121 func getIntOrElse (address,key,defaultVal) = valueOrElse(getInteger(address, key), defaultVal)
122122
123123
124124 func getStrOrElse (address,key,defaultVal) = valueOrElse(getString(address, key), defaultVal)
125125
126126
127127 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
128128
129129
130130 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
131131
132132
133133 func asAnyList (val) = match val {
134134 case valAnyList: List[Any] =>
135135 valAnyList
136136 case _ =>
137137 throw("fail to cast into List[Any]")
138138 }
139139
140140
141141 func asInt (val) = match val {
142142 case valInt: Int =>
143143 valInt
144144 case _ =>
145145 throw("fail to cast into Int")
146146 }
147147
148148
149149 func asString (val) = match val {
150150 case valStr: String =>
151151 valStr
152152 case _ =>
153153 throw("fail to cast into String")
154154 }
155155
156156
157157 func asTuple2Ints (val) = match val {
158158 case v: (Int, Int) =>
159159 v
160160 case _ =>
161161 throw("fail to cast into Tuple2 ints")
162162 }
163163
164164
165165 func asSwapParamsSTRUCT (val) = match val {
166166 case struct: (Int, Int, Int, Int, Int, Int, Int) =>
167167 struct
168168 case _ =>
169169 throw("fail to cast into SwapParamsSTRUCT")
170170 }
171171
172172
173173 func asWithdrawResultSTRUCT (val) = match val {
174174 case struct: (Int, Unit, Int, Int, Int, Int, Int, Int)|(Int, ByteVector, Int, Int, Int, Int, Int, Int) =>
175175 struct
176176 case _ =>
177177 throw("fail to cast into WithdrawResult")
178178 }
179179
180180
181181 func toTimestamp (start) = if ((0 > start))
182182 then -1
183183 else match blockInfoByHeight(start) {
184184 case block: BlockInfo =>
185185 block.timestamp
186186 case _ =>
187187 -1
188188 }
189189
190190
191191 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
192192
193193
194194 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
195195
196196
197197 let nMetricIdxPrice = 0
198198
199199 let nMetricIdxUsdnLockedBalance = 1
200200
201201 let nMetricIdxWavesLockedBalance = 2
202202
203203 let nMetricIdxReserve = 3
204204
205205 let nMetricIdxReserveInUsdn = 4
206206
207207 let nMetricIdxUsdnSupply = 5
208208
209209 let nMetricIdxSurplus = 6
210210
211211 let nMetricIdxSurplusPercent = 7
212212
213213 let nMetricIdxBR = 8
214214
215215 let nMetricIdxNsbtSupply = 9
216216
217217 let nMetricIdxMaxNsbtSupply = 10
218218
219219 let nMetricIdxSurfSupply = 11
220220
221221 let IdxControlCfgNeutrinoDapp = 1
222222
223223 let IdxControlCfgAuctionDapp = 2
224224
225225 let IdxControlCfgRpdDapp = 3
226226
227227 let IdxControlCfgMathDapp = 4
228228
229229 let IdxControlCfgLiquidationDapp = 5
230230
231231 let IdxControlCfgRestDapp = 6
232232
233233 let IdxControlCfgNodeRegistryDapp = 7
234234
235235 let IdxControlCfgNsbtStakingDapp = 8
236236
237237 let IdxControlCfgMediatorDapp = 9
238238
239239 let IdxControlCfgSurfStakingDapp = 10
240240
241241 let IdxControlCfgGnsbtControllerDapp = 11
242242
243243 let bFuncIdxSurf = 0
244244
245245 let bFuncIdxWaves = 1
246246
247247 let bFuncIdxUsdn = 2
248248
249249 let bFuncIdxReserveStart = 3
250250
251251 let bFuncIdxSupplyStart = 4
252252
253253 let bFuncIdxBRStart = 5
254254
255255 let bFuncIdxReserveEnd = 6
256256
257257 let bFuncIdxSupplyEnd = 7
258258
259259 let bFuncIdxBREnd = 8
260260
261261 let bFuncIdxRest = 9
262262
263263 let bFuncIdxWavesPrice = 10
264264
265265 func keyControlAddress () = "%s%s__config__controlAddress"
266266
267267
268268 func keyControlCfg () = "%s__controlConfig"
269269
270270
271271 func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP)
272272
273273
274274 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
275275
276276
277277 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
278278
279279 let controlCfg = readControlCfgOrFail(controlContract)
280280
281281 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
282282
283283 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
284284
285285 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
286286
287287 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
288288
289289 let rpdContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
290290
291291 let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp)
292292
293293 let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
294294
295295 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
296296
297297 let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
298298
299299 let neutrinoAssetId = fromBase58String(neutrinoAssetIdString)
300300
301301 let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId())
302302
303303 let nsbtAssetId = fromBase58String(nsbtAssetIdStr)
304304
305305 let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId())
306306
307307 let surfAssetId = fromBase58String(surfAssetIdStr)
308308
309309 func readUsdnIncomeForDay (stakingAcc,startOfDayTimestamp,neutrinoMetrics) = {
310310 let amtByDayKEY = keyStatsDepositAmtByDay(startOfDayTimestamp)
311311 let incomeStr = getStrOrElse(stakingAcc, amtByDayKEY, "%s%s__0__0")
312312 let incomeArray = split(incomeStr, SEP)
313313 let wavesAmt = parseIntValue(incomeArray[1])
314314 let usdnAmt = parseIntValue(incomeArray[2])
315315 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
316316 let wavesAsUsdnAmt = fraction(wavesAmt, currentPrice, MULT8)
317317 (wavesAsUsdnAmt + usdnAmt)
318318 }
319319
320320
321321 func calcUsdnIncomeForPeriod (stakingAcc,days) = {
322322 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
323323 let currStartOfDay = toStartOfDay(lastBlock.timestamp)
324324 let startTimestamp = (currStartOfDay - (DAYMILLIS * (days + 1)))
325325 let endTimestamp = (currStartOfDay - DAYMILLIS)
326326 let startUsdnAmtTMP = readUsdnIncomeForDay(stakingAcc, startTimestamp, neutrinoMetrics)
327327 let endUsdnAmt = readUsdnIncomeForDay(stakingAcc, endTimestamp, neutrinoMetrics)
328328 let startUsdnAmt = if ((startUsdnAmtTMP == 0))
329329 then endUsdnAmt
330330 else startUsdnAmtTMP
331331 (endUsdnAmt - startUsdnAmt)
332332 }
333333
334334
335335 func calcApr (stakingAcc,periodInDays,incomeForPeriod,stakingAssetPriceToUsdnX6) = {
336336 let totalStaked = getIntOrElse(stakingAcc, "%s%s__stats__activeTotalLocked", 1)
337337 let totalStakedInUsdn = fraction(totalStaked, stakingAssetPriceToUsdnX6, MULT6)
338338 if ((0 > incomeForPeriod))
339339 then 0
340340 else fraction((incomeForPeriod * MULT6), 365, (totalStakedInUsdn * periodInDays))
341341 }
342342
343343
344344 @Callable(i)
345345 func reverseSwapLimitREADONLY (lim,isWavesSwap) = {
346346 let BR = asInt(asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))[nMetricIdxBR])
347347 let gNsbt = if ((0 >= lim))
348348 then 0
349349 else {
350350 let aParamX8 = toBigInt(getIntOrFail(mathContract, if (isWavesSwap)
351351 then keySwapAmountAParam()
352352 else keyUsdnSwapAmountAParam()))
353353 let bParamX16 = toBigInt(getIntOrFail(mathContract, if (isWavesSwap)
354354 then keySwapAmountBParam()
355355 else keyUsdnSwapAmountBParam()))
356356 let limDivAX8 = if (isWavesSwap)
357357 then fraction(toBigInt(lim), MULTX10, aParamX8)
358358 else fraction(fraction(toBigInt(lim), MULTX10, aParamX8), MULTX6, toBigInt(BR))
359359 let revBX16 = fraction(MULTX16, MULTX16, bParamX16)
360360 toInt(pow(limDivAX8, 8, revBX16, 16, 6, CEILING))
361361 }
362362 $Tuple2(nil, gNsbt)
363363 }
364364
365365
366366
367367 @Callable(i)
368368 func gnsbtInfoINTERNAL (userAddressStrOrEmpty,additionalNsbtToStakeOrZero,additionalSurfToStakeOrZero) = {
369369 let userAddressOrThis = if ((userAddressStrOrEmpty != ""))
370370 then addressFromStringValue(userAddressStrOrEmpty)
371371 else this
372372 let currentPrice = getIntegerValue(controlContract, keyPrice())
373373 let gnsbtFromNsbtDiff = additionalNsbtToStakeOrZero
374374 let gnsbtFromSurfDiff = asInt(invoke(surfStakingContract, "gnsbtFromSurfSYSREADONLY", [additionalSurfToStakeOrZero], nil))
375375 let gNsbtDiff = (gnsbtFromNsbtDiff + gnsbtFromSurfDiff)
376376 let swapParamsTuple = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOrEmpty, 0], nil))
377377 let blcks2LmtReset = swapParamsTuple._3
378378 let gnsbtAmt = swapParamsTuple._4
379379 let gnsbtAmtTotal = swapParamsTuple._5
380380 let limitMaxWaves = swapParamsTuple._6
381381 let limitMaxUsdn = swapParamsTuple._7
382382 let swapParamsTupleNEW = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOrEmpty, gNsbtDiff], nil))
383383 let blcks2LmtResetNEW = swapParamsTupleNEW._3
384384 let gnsbtAmtNEW = swapParamsTupleNEW._4
385385 let gnsbtAmtTotalNEW = swapParamsTupleNEW._5
386386 let limitMaxWavesNEW = swapParamsTupleNEW._6
387387 let limitMaxUsdnNEW = swapParamsTupleNEW._7
388388 let nsbtBalance = if ((userAddressStrOrEmpty != ""))
389389 then assetBalance(userAddressOrThis, nsbtAssetId)
390390 else 0
391391 let surfBalance = if ((userAddressStrOrEmpty != ""))
392392 then assetBalance(userAddressOrThis, surfAssetId)
393393 else 0
394394 let nsbtBalanceDiff = if ((additionalNsbtToStakeOrZero >= 0))
395395 then additionalNsbtToStakeOrZero
396396 else {
397397 let nsbtUnstakingData = asAnyList(invoke(nsbtStakingContract, "nsbtUnstakingSYSREADONLY", [userAddressStrOrEmpty, (-1 * additionalNsbtToStakeOrZero)], nil))
398398 let nsbtReceiveAmount = asInt(nsbtUnstakingData[2])
399399 let result = -(nsbtReceiveAmount)
400400 result
401401 }
402402 let nsbtBalanceNew = (nsbtBalance - nsbtBalanceDiff)
403403 let surfBalanceNew = (surfBalance - additionalSurfToStakeOrZero)
404404 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStrOrEmpty, additionalNsbtToStakeOrZero, additionalSurfToStakeOrZero], nil))
405405 let gnsbtUser = asInt(gnsbtData[0])
406406 let gnsbtTotal = asInt(gnsbtData[1])
407407 let nsbtData = asAnyList(gnsbtData[2])
408408 let surfData = asAnyList(gnsbtData[3])
409409 let vpEffectiveHeight = asInt(gnsbtData[4])
410410 let vpEffectiveHeightNEW = asInt(gnsbtData[5])
411411 let gnsbtAmtFromNsbt = asInt(nsbtData[2])
412412 let gnsbtAmtFromSurf = asInt(surfData[2])
413413 let gnsbtAmtFromNsbtNEW = (gnsbtAmtFromNsbt + gnsbtFromNsbtDiff)
414414 let gnsbtAmtFromSurfNEW = (gnsbtAmtFromSurf + gnsbtFromSurfDiff)
415415 let gnsbtFromNsbtTotal = asInt(nsbtData[3])
416416 let gnsbtFromSurfTotal = asInt(surfData[3])
417417 let gnsbtFromSurfActiveTotal = 0
418418 let gnsbtFromSurfFrozenTotal = gnsbtFromSurfTotal
419419 let gnsbtFromNsbtTotalNEW = (gnsbtFromNsbtTotal + gnsbtFromNsbtDiff)
420420 let gnsbtFromSurfTotalNEW = (gnsbtFromSurfTotal + gnsbtFromSurfDiff)
421421 let gnsbtFromSurfFrozenTotalNEW = gnsbtFromSurfTotalNEW
422422 let votingPower = fraction(gnsbtAmtFromNsbt, MULT8, (gnsbtFromNsbtTotal + gnsbtFromSurfActiveTotal))
423423 let votingPowerNew = fraction(gnsbtAmtFromNsbtNEW, MULT8, (gnsbtFromNsbtTotalNEW + gnsbtFromSurfActiveTotal))
424424 let votingPowerMax = fraction((gnsbtAmtFromNsbt + gnsbtAmtFromSurf), MULT8, ((gnsbtFromNsbtTotal + gnsbtFromSurfActiveTotal) + gnsbtFromSurfFrozenTotal))
425425 let votingPowerMaxNew = fraction((gnsbtAmtFromNsbtNEW + gnsbtAmtFromSurfNEW), MULT8, ((gnsbtFromNsbtTotalNEW + gnsbtFromSurfActiveTotal) + gnsbtFromSurfFrozenTotalNEW))
426426 let votingPowerEta = if ((vpEffectiveHeight == 0))
427427 then height
428428 else vpEffectiveHeight
429429 let votingPowerEtaNew = if ((vpEffectiveHeightNEW == 0))
430430 then height
431431 else vpEffectiveHeightNEW
432432 $Tuple2(nil, [0, nsbtBalance, surfBalance, nsbtBalanceNew, surfBalanceNew, gnsbtAmtFromNsbt, gnsbtAmtFromSurf, gnsbtAmtFromNsbtNEW, gnsbtAmtFromSurfNEW, gnsbtFromNsbtTotal, gnsbtFromSurfTotal, gnsbtFromNsbtTotalNEW, gnsbtFromSurfTotalNEW, limitMaxUsdn, limitMaxWaves, limitMaxUsdnNEW, limitMaxWavesNEW, blcks2LmtReset, blcks2LmtResetNEW, votingPower, votingPowerNew, votingPowerMax, votingPowerMaxNew, votingPowerEta, votingPowerEtaNew])
433433 }
434434
435435
436436
437437 @Callable(i)
438438 func gnsbtInfoREADONLY (userAddressStrOrEmpty,additionalNsbtToStakeOrZero,additionalSurfToStakeOrZero) = {
439439 let gnsbtInfoDATA = asAnyList(invoke(this, "gnsbtInfoINTERNAL", [userAddressStrOrEmpty, additionalNsbtToStakeOrZero, additionalSurfToStakeOrZero], nil))
440440 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(asInt(gnsbtInfoDATA[1])), toString(asInt(gnsbtInfoDATA[2])), toString(asInt(gnsbtInfoDATA[3])), toString(asInt(gnsbtInfoDATA[4])), toString(asInt(gnsbtInfoDATA[5])), toString(asInt(gnsbtInfoDATA[6])), toString(asInt(gnsbtInfoDATA[7])), toString(asInt(gnsbtInfoDATA[8])), toString(asInt(gnsbtInfoDATA[9])), toString(asInt(gnsbtInfoDATA[10])), toString(asInt(gnsbtInfoDATA[11])), toString(asInt(gnsbtInfoDATA[12])), toString(asInt(gnsbtInfoDATA[13])), toString(asInt(gnsbtInfoDATA[14])), toString(asInt(gnsbtInfoDATA[15])), toString(asInt(gnsbtInfoDATA[16])), toString(asInt(gnsbtInfoDATA[17])), toString(asInt(gnsbtInfoDATA[18])), toString(asInt(gnsbtInfoDATA[19])), toString(asInt(gnsbtInfoDATA[20])), toString(asInt(gnsbtInfoDATA[21])), toString(asInt(gnsbtInfoDATA[22])), toString(asInt(gnsbtInfoDATA[23])), toString(asInt(gnsbtInfoDATA[24]))], SEP))
441441 }
442442
443443
444444
445445 @Callable(i)
446446 func gnsbtEffectiveREADONLY (userAddressStrOrEmpty) = {
447447 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStrOrEmpty, 0, 0], nil))
448448 let nsbtData = asAnyList(gnsbtData[2])
449449 let userFromNsbt = asInt(nsbtData[2])
450450 let totalFromNsbt = asInt(nsbtData[3])
451451 let userMatureFromSurf = asInt(gnsbtData[9])
452452 let totalMatureFromSurf = asInt(gnsbtData[6])
453453 $Tuple2(nil, makeString(["%d%d", toString((totalFromNsbt + totalMatureFromSurf)), toString((userFromNsbt + userMatureFromSurf))], SEP))
454454 }
455455
456456
457457
458458 @Callable(i)
459459 func rewardInfoREADONLY (userAddressStrOrEmpty) = {
460460 let rewardsData = asAnyList(invoke(gnsbtControllerContract, "gnsbtRewardsSYSREADONLY", [userAddressStrOrEmpty], nil))
461461 let usdnRewards = asString(invoke(rpdContract, "unclaimedRewardsREADONLY", [userAddressStrOrEmpty], nil))
462462 $Tuple2(nil, makeString(["%s%s%s", asString(rewardsData[0]), asString(rewardsData[1]), usdnRewards], SEP))
463463 }
464464
465465
466466
467467 @Callable(i)
468468 func mergeNsbtREADONLY (userAddressMandatory,newAmount) = {
469469 let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressMandatory, newAmount], nil))
470470 let amount0 = asInt(nsbtData[0])
471471 let startHeight = if ((0 >= amount0))
472472 then -1
473473 else asInt(nsbtData[2])
474474 let startTimestamp = toTimestamp(startHeight)
475475 let startHeightNew = if ((0 >= newAmount))
476476 then startHeight
477477 else if ((0 >= amount0))
478478 then height
479479 else {
480480 let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife())
481481 asInt(invoke(mathContract, "mergeStakesREADONLY", [amount0, startHeight, newAmount, height, halfLife], nil))
482482 }
483483 let startTimestampNew = toTimestamp(startHeightNew)
484484 $Tuple2(nil, makeString(["%d%d%d%d", toString(startHeight), toString(startTimestamp), toString(startHeightNew), toString(startTimestampNew)], SEP))
485485 }
486486
487487
488488
489489 @Callable(i)
490490 func swapLimitCalculatorREADONLY (userAddressStrOpt,limitWanted,assetIdStr) = {
491491 let gNsbtCurrent = if ((userAddressStrOpt == ""))
492492 then 0
493493 else asInt(asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._4)
494494 let limitWantedUsdn = if ((assetIdStr == "WAVES"))
495495 then convertWavesToNeutrino(limitWanted, getIntegerValue(controlContract, keyPrice()))
496496 else limitWanted
497497 let gNsbtNeeded = asInt(invoke(this, "reverseSwapLimitREADONLY", [limitWantedUsdn, (assetIdStr == "WAVES")], nil))
498498 let gNsbtDelta = (gNsbtNeeded - gNsbtCurrent)
499499 $Tuple2(nil, makeString(["%s%s", toString(gNsbtCurrent), toString(gNsbtDelta)], SEP))
500500 }
501501
502502
503503
504504 @Callable(i)
505505 func swapInfoREADONLY (userAddressStrOrEmpty,amount,assetIdStr) = {
506506 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
507507 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
508508 let swapParamsTuple = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOrEmpty, 0], nil))
509509 let blcks2LmtReset = swapParamsTuple._3
510510 let limitMaxWaves = swapParamsTuple._6
511511 let limitMaxUsdn = swapParamsTuple._7
512512 let assetId = fromBase58String(assetIdStr)
513513 let swapType = if ((assetId == WAVESID))
514514 then "waves"
515515 else if ((assetId == neutrinoAssetId))
516516 then "neutrino"
517517 else throw(("Can't swap assetId=" + assetIdStr))
518518 let withdrawTuple = asWithdrawResultSTRUCT(invoke(neutrinoContract, "calcWithdrawResultSYSREADONLY", [swapType, amount, price], nil))
519519 let outNetAmount = withdrawTuple._1
520520 let outAssetId = withdrawTuple._2
521521 let outSurfAmt = withdrawTuple._3
522522 let inAmtToSurfPart = withdrawTuple._4
523523 let unleaseAmt = withdrawTuple._5
524524 let outFeeAmount = withdrawTuple._6
525525 let outAmtGross = withdrawTuple._7
526526 let withdrawPrice = withdrawTuple._8
527527 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(outNetAmount), toString(outSurfAmt), toString(outFeeAmount), toString(withdrawPrice), toString(blcks2LmtReset), toString(limitMaxWaves), toString(limitMaxUsdn), toString(inAmtToSurfPart)], SEP))
528528 }
529529
530530
531531
532532 @Callable(i)
533+func swapInfoV2READONLY (userAddressStrOrEmpty,amount,assetIdStr) = {
534+ let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
535+ let price = asInt(neutrinoMetrics[nMetricIdxPrice])
536+ let swapParamsTuple = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOrEmpty, 0], nil))
537+ let blcks2LmtReset = swapParamsTuple._3
538+ let limitMaxWaves = swapParamsTuple._6
539+ let limitMaxUsdn = swapParamsTuple._7
540+ let assetId = fromBase58String(assetIdStr)
541+ let swapType = if ((assetId == WAVESID))
542+ then "waves"
543+ else if ((assetId == neutrinoAssetId))
544+ then "neutrino"
545+ else throw(("Can't swap assetId=" + assetIdStr))
546+ let withdrawTuple = asWithdrawResultSTRUCT(invoke(neutrinoContract, "calcWithdrawResultSYSREADONLY", [swapType, amount, price], nil))
547+ let outNetAmount = withdrawTuple._1
548+ let outAssetId = withdrawTuple._2
549+ let outSurfAmt = withdrawTuple._3
550+ let inAmtToSurfPart = withdrawTuple._4
551+ let unleaseAmt = withdrawTuple._5
552+ let outFeeAmount = withdrawTuple._6
553+ let outAmtGross = withdrawTuple._7
554+ let withdrawPrice = withdrawTuple._8
555+ let basketStub = "WAVES:6500000:15590257:78343:318181_EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc:318700:35980614:179903:170454_52nvaZGa7ahqa21ER2PAMBVjMi7wC2nWYCNmLvj8QjHx:585395:19588520:97942:170454_9JXnfooQYnahr5L1dH7YksMmWPE8TZramFycXyYxv6Ef:49418611:232038:1160:170454_AMFteLfPzPhTsFc3NfvHG7fSRUnsp3tJXPH88G1PCisT:461400:248526696:1242633:170454"
556+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(outNetAmount), toString(outSurfAmt), toString(outFeeAmount), toString(withdrawPrice), toString(blcks2LmtReset), toString(limitMaxWaves), toString(limitMaxUsdn), toString(inAmtToSurfPart), basketStub], SEP))
557+ }
558+
559+
560+
561+@Callable(i)
533562 func usdnStakingAprREADONLY (days) = {
534563 let tmpDays = 1
535564 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
536565 let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice])
537- let wavesIncome = (6000 * MULT8)
566+ let wavesIncome = (0 * MULT8)
538567 let incomeForPeriod = fraction(wavesIncome, currentPrice, MULT8)
539568 let apr = calcApr(rpdContract, tmpDays, incomeForPeriod, MULT6)
540569 $Tuple2(nil, ("%d__" + toString(apr)))
541570 }
542571
543572
544573
545574 @Callable(i)
546575 func surfStakingAprREADONLY (days) = {
547576 let tmpDays = 3
548577 let incomeForPeriod = calcUsdnIncomeForPeriod(surfStakingContract, tmpDays)
549578 let surfPriceToUsdnX6 = 86400
550579 let apr = calcApr(surfStakingContract, tmpDays, incomeForPeriod, surfPriceToUsdnX6)
551580 $Tuple2(nil, ("%d__" + toString(apr)))
552581 }
553582
554583
555584
556585 @Callable(i)
557586 func surfStakingAprV2READONLY (days,surfUsdnPriceX6) = {
558587 let tmpDays = 3
559588 let incomeForPeriod = calcUsdnIncomeForPeriod(surfStakingContract, tmpDays)
560589 let apr = calcApr(surfStakingContract, tmpDays, incomeForPeriod, surfUsdnPriceX6)
561590 $Tuple2(nil, ("%d__" + toString(apr)))
562591 }
563592
564593
565594
566595 @Callable(i)
567596 func nsbtStakingAprREADONLY (days) = {
568597 let tmpDays = 3
569598 let nsbtPriceToUsdnX6 = 8000000
570599 let incomeForPeriod = calcUsdnIncomeForPeriod(nsbtStakingContract, tmpDays)
571600 let apr = calcApr(nsbtStakingContract, tmpDays, incomeForPeriod, nsbtPriceToUsdnX6)
572601 $Tuple2(nil, ("%d__" + toString(apr)))
573602 }
574603
575604
576605
577606 @Callable(i)
578607 func nsbtStakingAprV2READONLY (days,nsbtUsdnPriceX6) = {
579608 let tmpDays = 3
580609 let incomeForPeriod = calcUsdnIncomeForPeriod(nsbtStakingContract, tmpDays)
581610 let apr = calcApr(nsbtStakingContract, tmpDays, incomeForPeriod, nsbtUsdnPriceX6)
582611 $Tuple2(nil, ("%d__" + toString(apr)))
583612 }
584613
585614

github/deemru/w8io/026f985 
75.91 ms