tx · 5VxCdrkmizEmZUs9VPXcDnfaeVj7jPf3ZcvSPgETpoGB

3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi:  -0.02300000 Waves

2023.01.07 11:32 [2394296] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves

{ "type": 13, "id": "5VxCdrkmizEmZUs9VPXcDnfaeVj7jPf3ZcvSPgETpoGB", "fee": 2300000, "feeAssetId": null, "timestamp": 1673080372862, "version": 2, "chainId": 84, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "3CrJQdhxhkhNUmHHmqBxtYDE5G2deFGxF8vRbPU2S8CMjuUeJhqwN3QgwR3pcGQwo8Fg5D16uUBj26C4XeLhMT8B", "5gBn8cDPMy9V6YXwgbtDYoazMedHSzVzSZGbzefZJpDCu87vze8HLdQzh8z61gmZxTtVMNF4bVrYLcqZc6kQyAzA", "2jabnE16fazZXWaKVLnq61xf5qAgfqSLfsiJC8jAPv9q2FYV6HQPS16rmt3c9SRSx79DD6U6DXXxGuWhS356SZ6t" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABtAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEA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/ABOJo=", "height": 2394296, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7aYrCD9kXqDKtmZqZEE3x51z4b8ScfMzfZBL3kRQXi6s Next: AJntcx3jaN6xUZFbDEvfFphUpr8eW19ng4Xf7KJenV1F Diff:
OldNewDifferences
6767
6868 let nMetricIdxSurfSupply = 11
6969
70+let nMetricUsdnUsdtPeg = 12
71+
72+let nMetricCurrentPriceAdj = 13
73+
7074 func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress"
7175
7276
8084
8185
8286 func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
87+
88+
89+func keyPriceAdjMinCoeff () = "%s%s__priceAdj__minCoefficient"
90+
91+
92+func keyPriceAdjArbRegulator () = "%s%s__priceAdj__arbRegulator"
8393
8494
8595 func keyNeutrinoAssetId () = "neutrino_asset_id"
165175 }
166176
167177
178+func asPriceSTRUCT (v) = match v {
179+ case struct: (Int, Int, Int, Int) =>
180+ struct
181+ case _ =>
182+ throw("fail to cast into PriceSTRUCT")
183+}
184+
185+
168186 let IdxControlCfgNeutrinoDapp = 1
169187
170188 let IdxControlCfgAuctionDapp = 2
182200 let IdxControlCfgNsbtStakingDapp = 8
183201
184202 let IdxControlCfgMediatorDapp = 9
203+
204+let IdxControlCfgSurfStakingDapp = 10
205+
206+let IdxControlCfgGnsbtControllerDapp = 11
207+
208+let IdxControlCfgRestV2Dapp = 12
209+
210+let IdxControlCfgGovernanceDapp = 13
211+
212+let IdxControlCfgPegProviderDapp = 14
185213
186214 func keyControlAddress () = "%s%s__config__controlAddress"
187215
207235
208236 let usdnStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
209237
238+let pegProviderContract = getContractAddressOrFail(controlCfg, IdxControlCfgPegProviderDapp)
239+
210240 let neutrinoAssetIdStr = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
211241
212242 let neutrinoAssetId = fromBase58String(neutrinoAssetIdStr)
231261
232262 func $f0_2 ($a,$i) = if (($i >= $s))
233263 then $a
234- else throw("List size exceeds 5")
264+ else throw("List size exceeds 7")
235265
236- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
266+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7)
237267 }
238268 }
239269
240270
271+func readCurrentAvgPeg () = asPriceSTRUCT(invoke(pegProviderContract, "price", [4], nil))._2
272+
273+
274+func adjustPrice (priceX6,usdnUsdtPegX6) = {
275+ let minCoeffX6 = valueOrElse(getInteger(this, keyPriceAdjMinCoeff()), 600000)
276+ let arbRegulatorX6 = valueOrElse(getInteger(this, keyPriceAdjArbRegulator()), 150000)
277+ let maxPriceCoeffX6 = max([minCoeffX6, fraction((MULT6 + arbRegulatorX6), usdnUsdtPegX6, MULT6)])
278+ let priceCoeffX6 = min([maxPriceCoeffX6, MULT6])
279+ fraction(priceX6, MULT6, priceCoeffX6)
280+ }
281+
282+
241283 let currentPrice = getIntegerValue(controlContract, keyPrice())
284+
285+let usdnUsdtPegX6 = readCurrentAvgPeg()
286+
287+let currentPriceAdj = adjustPrice(currentPrice, usdnUsdtPegX6)
242288
243289 let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
244290
391437 let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity
392438 let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId))
393439 let surfSupply = value(assetInfo(surfAssetId)).quantity
394- $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, neutrinoOutOfMarketSupply, neutrinoTotalSupply, BR, nsbtSupply, nsbtSupplyMAX, surfSupply])
440+ $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, neutrinoOutOfMarketSupply, neutrinoTotalSupply, BR, nsbtSupply, nsbtSupplyMAX, surfSupply, usdnUsdtPegX6, currentPriceAdj])
395441 }
396442
397443
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let revisionNum = ""
55
66 let MULTSCALE = 8
77
88 let SCALE16 = 16
99
1010 let SEP = "__"
1111
1212 let HALF8 = 50000000
1313
1414 let EULERX16 = toBigInt(27182818284590452)
1515
1616 let TWOX = toBigInt(2)
1717
1818 let MULT6 = 1000000
1919
2020 let MULTX6 = toBigInt(1000000)
2121
2222 let MULT8 = 100000000
2323
2424 let MULTX8 = toBigInt(100000000)
2525
2626 let MULTX10 = toBigInt(10000000000)
2727
2828 let MULTX16 = toBigInt(10000000000000000)
2929
3030 let WAVESID = fromBase58String("WAVES")
3131
3232 let kResultIdxA = 0
3333
3434 let kResultIdxPaulB = 1
3535
3636 let kResultIdxWReservesInUsdn = 2
3737
3838 let kResultIdxMultBR = 3
3939
4040 let kResultIdxMultPower = 4
4141
4242 let kResultIdxMultExpInPowerStr = 5
4343
4444 let kResultIdxMultKStr = 6
4545
4646 let nMetricIdxPrice = 0
4747
4848 let nMetricIdxUsdnLockedBalance = 1
4949
5050 let nMetricIdxWavesLockedBalance = 2
5151
5252 let nMetricIdxReserve = 3
5353
5454 let nMetricIdxReserveInUsdn = 4
5555
5656 let nMetricIdxUsdnSupply = 5
5757
5858 let nMetricIdxSurplus = 6
5959
6060 let nMetricIdxSurplusPercent = 7
6161
6262 let nMetricIdxBR = 8
6363
6464 let nMetricIdxNsbtSupply = 9
6565
6666 let nMetricIdxMaxNsbtSupply = 10
6767
6868 let nMetricIdxSurfSupply = 11
6969
70+let nMetricUsdnUsdtPeg = 12
71+
72+let nMetricCurrentPriceAdj = 13
73+
7074 func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress"
7175
7276
7377 func keySwapAmountAParam () = "%s%s__config__swapAParam"
7478
7579
7680 func keySwapAmountBParam () = "%s%s__config__swapBParam"
7781
7882
7983 func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
8084
8185
8286 func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
87+
88+
89+func keyPriceAdjMinCoeff () = "%s%s__priceAdj__minCoefficient"
90+
91+
92+func keyPriceAdjArbRegulator () = "%s%s__priceAdj__arbRegulator"
8393
8494
8595 func keyNeutrinoAssetId () = "neutrino_asset_id"
8696
8797
8898 func keyNsbtAssetId () = "bond_asset_id"
8999
90100
91101 func keySurfAssetId () = "surf_asset_id"
92102
93103
94104 func keyBalanceLocked () = "balance_lock_"
95105
96106
97107 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
98108
99109
100110 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
101111
102112
103113 func swapsTimeframeKEY () = "swaps_timeframe"
104114
105115
106116 func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", userAddress], SEP)
107117
108118
109119 func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", userAddress], SEP)
110120
111121
112122 func keyPrice () = "price"
113123
114124
115125 let RpdBalanceKey = "rpd_balance"
116126
117127 func rpdUserBalanceKey (owner,assetId) = makeString([RpdBalanceKey, assetId, owner], "_")
118128
119129
120130 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
121131
122132
123133 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
124134
125135
126136 func getNumberByKey (address,key) = valueOrElse(getInteger(address, key), 0)
127137
128138
129139 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
130140
131141
132142 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
133143
134144
135145 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
136146
137147
138148 func toX16 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULTX16, toBigInt(origScaleMult))
139149
140150
141151 func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16))
142152
143153
144154 func asAnyList (val) = match val {
145155 case valAnyLyst: List[Any] =>
146156 valAnyLyst
147157 case _ =>
148158 throw("fail to cast into List[Any]")
149159 }
150160
151161
152162 func asInt (val) = match val {
153163 case valInt: Int =>
154164 valInt
155165 case _ =>
156166 throw("fail to cast into Int")
157167 }
158168
159169
160170 func asString (val) = match val {
161171 case valStr: String =>
162172 valStr
163173 case _ =>
164174 throw("fail to cast into String")
165175 }
166176
167177
178+func asPriceSTRUCT (v) = match v {
179+ case struct: (Int, Int, Int, Int) =>
180+ struct
181+ case _ =>
182+ throw("fail to cast into PriceSTRUCT")
183+}
184+
185+
168186 let IdxControlCfgNeutrinoDapp = 1
169187
170188 let IdxControlCfgAuctionDapp = 2
171189
172190 let IdxControlCfgRpdDapp = 3
173191
174192 let IdxControlCfgMathDapp = 4
175193
176194 let IdxControlCfgLiquidationDapp = 5
177195
178196 let IdxControlCfgRestDapp = 6
179197
180198 let IdxControlCfgNodeRegistryDapp = 7
181199
182200 let IdxControlCfgNsbtStakingDapp = 8
183201
184202 let IdxControlCfgMediatorDapp = 9
203+
204+let IdxControlCfgSurfStakingDapp = 10
205+
206+let IdxControlCfgGnsbtControllerDapp = 11
207+
208+let IdxControlCfgRestV2Dapp = 12
209+
210+let IdxControlCfgGovernanceDapp = 13
211+
212+let IdxControlCfgPegProviderDapp = 14
185213
186214 func keyControlAddress () = "%s%s__config__controlAddress"
187215
188216
189217 func keyControlCfg () = "%s__controlConfig"
190218
191219
192220 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
193221
194222
195223 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
196224
197225
198226 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
199227
200228 let controlCfg = readControlCfgOrFail(controlContract)
201229
202230 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
203231
204232 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
205233
206234 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
207235
208236 let usdnStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
209237
238+let pegProviderContract = getContractAddressOrFail(controlCfg, IdxControlCfgPegProviderDapp)
239+
210240 let neutrinoAssetIdStr = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
211241
212242 let neutrinoAssetId = fromBase58String(neutrinoAssetIdStr)
213243
214244 let nsbtAssetId = fromBase58String(getStringValue(neutrinoContract, keyNsbtAssetId()))
215245
216246 let surfAssetId = fromBase58String(getStringValue(auctionContract, keySurfAssetId()))
217247
218248 func calcUsdnOutOfMarketSupply () = {
219249 let outOfMarketAddressList = valueOrElse(getString(controlContract, "%s%s__control__outOfMarketAddressList"), "")
220250 if ((outOfMarketAddressList == ""))
221251 then 0
222252 else {
223253 func balancesSUM (outOfMarketSupply,nextAddress) = ((outOfMarketSupply + valueOrElse(getInteger(usdnStakingContract, rpdUserBalanceKey(nextAddress, neutrinoAssetIdStr)), 0)) + assetBalance(addressFromStringValue(nextAddress), neutrinoAssetId))
224254
225255 let $l = split(outOfMarketAddressList, SEP)
226256 let $s = size($l)
227257 let $acc0 = 0
228258 func $f0_1 ($a,$i) = if (($i >= $s))
229259 then $a
230260 else balancesSUM($a, $l[$i])
231261
232262 func $f0_2 ($a,$i) = if (($i >= $s))
233263 then $a
234- else throw("List size exceeds 5")
264+ else throw("List size exceeds 7")
235265
236- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
266+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7)
237267 }
238268 }
239269
240270
271+func readCurrentAvgPeg () = asPriceSTRUCT(invoke(pegProviderContract, "price", [4], nil))._2
272+
273+
274+func adjustPrice (priceX6,usdnUsdtPegX6) = {
275+ let minCoeffX6 = valueOrElse(getInteger(this, keyPriceAdjMinCoeff()), 600000)
276+ let arbRegulatorX6 = valueOrElse(getInteger(this, keyPriceAdjArbRegulator()), 150000)
277+ let maxPriceCoeffX6 = max([minCoeffX6, fraction((MULT6 + arbRegulatorX6), usdnUsdtPegX6, MULT6)])
278+ let priceCoeffX6 = min([maxPriceCoeffX6, MULT6])
279+ fraction(priceX6, MULT6, priceCoeffX6)
280+ }
281+
282+
241283 let currentPrice = getIntegerValue(controlContract, keyPrice())
284+
285+let usdnUsdtPegX6 = readCurrentAvgPeg()
286+
287+let currentPriceAdj = adjustPrice(currentPrice, usdnUsdtPegX6)
242288
243289 let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
244290
245291 let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0)
246292
247293 let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance)
248294
249295 let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice)
250296
251297 let neutrinoOutOfMarketSupply = calcUsdnOutOfMarketSupply()
252298
253299 let neutrinoTotalSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId))
254300
255301 let neutrinoSupply = (neutrinoTotalSupply - neutrinoOutOfMarketSupply)
256302
257303 let BR = if ((neutrinoSupply == 0))
258304 then 0
259305 else fraction(reservesInUsdn, MULT6, neutrinoSupply)
260306
261307 @Callable(i)
262308 func constructor (neutrinoAddress,nsbtLockAddress,swapAmountAParam) = if ((i.caller != this))
263309 then throw("not authorized")
264310 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), IntegerEntry(keySwapAmountAParam(), swapAmountAParam)]
265311
266312
267313
268314 @Callable(i)
269315 func calcSwapLimitREADONLY (gNsbtAmount) = {
270316 let limitWavesInUsdn = if ((0 >= gNsbtAmount))
271317 then 0
272318 else {
273319 let aParamX8 = toBigInt(getIntOrFail(this, keySwapAmountAParam()))
274320 let bParamX16 = toBigInt(getIntOrFail(this, keySwapAmountBParam()))
275321 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
276322 toInt(fraction(aParamX8, powPartX8, MULTX10))
277323 }
278324 let limitWaves = convertNeutrinoToWaves(limitWavesInUsdn, currentPrice)
279325 let limitUsdn = if ((0 >= gNsbtAmount))
280326 then 0
281327 else {
282328 let aParamX8 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountAParam()))
283329 let bParamX16 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountBParam()))
284330 let brX6 = toBigInt(BR)
285331 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
286332 toInt(fraction(fraction(aParamX8, powPartX8, MULTX10), brX6, MULTX6))
287333 }
288334 $Tuple2(nil, [limitWavesInUsdn, limitWaves, limitUsdn])
289335 }
290336
291337
292338
293339 @Callable(i)
294340 func calculateKREADONLY (wRaw,uRaw,price,mRaw,sRaw) = {
295341 let EXP = toBigInt(2718281)
296342 let EXPSCALE = 6
297343 let a = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_a"), 3)
298344 let paulB = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_b"), ((3 * MULT6) / 10))
299345 let wReservesInUsdn = convertWavesToNeutrino(wRaw, price)
300346 let multBR = fraction(wReservesInUsdn, MULT8, uRaw)
301347 if ((multBR > 10678564816))
302348 then throw((("BR=" + toString(multBR)) + " > 10678.564816% will overflow exponent"))
303349 else {
304350 let multPower = (a * (multBR - MULT8))
305351 let multExpInPower = pow(EXP, EXPSCALE, toBigInt(multPower), MULTSCALE, SCALE16, DOWN)
306352 let multK = fraction(toBigInt(paulB), multExpInPower, MULTX6)
307353 $Tuple2(nil, [a, paulB, wReservesInUsdn, multBR, multPower, toString(multExpInPower), toString(multK)])
308354 }
309355 }
310356
311357
312358
313359 @Callable(i)
314360 func curveFunctionREADONLY (wavesPayRaw) = {
315361 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
316362 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
317363 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
318364 let uRaw = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
319365 let sRaw = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
320366 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
321367 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
322368 let multK = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
323369 let usdnPay = convertWavesToNeutrino(wavesPayRaw, price)
324370 let bigMaxNsbtSupply = toBigInt(mRaw)
325371 let bigNsbtSupply = toBigInt((mRaw - sRaw))
326372 let step1 = fraction(toBigInt(usdnPay), MULTX16, multK)
327373 let step2 = fraction(step1, bigNsbtSupply, bigMaxNsbtSupply)
328374 let step3 = toInt(fraction(bigNsbtSupply, bigMaxNsbtSupply, (step2 + bigMaxNsbtSupply)))
329375 let nsbtAmountRaw = ((mRaw - sRaw) - step3)
330376 $Tuple2(nil, [nsbtAmountRaw, usdnPay, wRaw, uRaw, mRaw, sRaw, asInt(kCalcArray[kResultIdxA]), asInt(kCalcArray[kResultIdxPaulB]), asInt(kCalcArray[kResultIdxWReservesInUsdn]), price, asInt(kCalcArray[kResultIdxMultBR]), asInt(kCalcArray[kResultIdxMultPower]), kCalcArray[kResultIdxMultExpInPowerStr], kCalcArray[kResultIdxMultKStr], toString(step1), toString(step2), step3])
331377 }
332378
333379
334380
335381 @Callable(i)
336382 func surfFunctionREADONLY (amount,assetId) = if ((0 > amount))
337383 then throw("amount should be positive")
338384 else {
339385 let price = currentPrice
340386 let priceBig = toBigInt(price)
341387 let reserveBig = toBigInt(reserve)
342388 let supply = neutrinoSupply
343389 let supplyBig = toBigInt(supply)
344390 if ((BR >= MULT6))
345391 then throw((("BR = " + toString(BR)) + ", cannot buy SURF"))
346392 else {
347393 let maxWavesPay = (fraction(supply, MULT8, price) - reserve)
348394 let maxUsdnPay = (supply - fraction(reserve, price, MULT8))
349395 let useAmount = if ((assetId == neutrinoAssetId))
350396 then if ((amount > maxUsdnPay))
351397 then maxUsdnPay
352398 else amount
353399 else if ((assetId == WAVESID))
354400 then if ((amount > maxWavesPay))
355401 then maxWavesPay
356402 else amount
357403 else 0
358404 let amountBig = toBigInt(useAmount)
359405 if ((assetId == neutrinoAssetId))
360406 then $Tuple2(nil, [toInt(fraction(fraction(amountBig, MULTX8, priceBig), (supplyBig - (amountBig / TWOX)), reserveBig)), 0, useAmount, reserve, supply, BR, reserve, (supply - useAmount), fraction(convertWavesToNeutrino(reserve, price), MULT6, (supply - useAmount)), (amount - useAmount), price])
361407 else if ((assetId == WAVESID))
362408 then $Tuple2(nil, [toInt(fraction(supplyBig, log(fraction((reserveBig + amountBig), MULTX16, reserveBig), 16, EULERX16, 16, 16, HALFUP), MULTX16)), useAmount, 0, reserve, supply, BR, (reserve + useAmount), supply, fraction(convertWavesToNeutrino((reserve + useAmount), price), MULT6, supply), (amount - useAmount), price])
363409 else throw("Unsupported asset")
364410 }
365411 }
366412
367413
368414
369415 @Callable(i)
370416 func calcContractNsbtPriceSYSREADONLY (nsbtSupplyDELTA) = {
371417 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
372418 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
373419 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
374420 let uRaw = (asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) - nsbtSupplyDELTA)
375421 let sRaw = (asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) + nsbtSupplyDELTA)
376422 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
377423 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
378424 let multKX16 = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
379425 let multStep1X16 = fraction(toBigInt(mRaw), MULTX16, toBigInt((mRaw - sRaw)))
380426 let multStep2X16 = fraction(multStep1X16, multStep1X16, MULTX16)
381427 let multNsbt2usdnPriceX16 = fraction(multKX16, multStep2X16, MULTX16)
382428 let nsbt2usdnPrice = toInt(fraction(multNsbt2usdnPriceX16, toBigInt(MULT6), MULTX16))
383429 let nsbt2wavesPrice = fraction(nsbt2usdnPrice, MULT6, price)
384430 $Tuple2(nil, [nsbt2usdnPrice, nsbt2wavesPrice])
385431 }
386432
387433
388434
389435 @Callable(i)
390436 func calcNeutinoMetricsREADONLY () = {
391437 let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity
392438 let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId))
393439 let surfSupply = value(assetInfo(surfAssetId)).quantity
394- $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, neutrinoOutOfMarketSupply, neutrinoTotalSupply, BR, nsbtSupply, nsbtSupplyMAX, surfSupply])
440+ $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, neutrinoOutOfMarketSupply, neutrinoTotalSupply, BR, nsbtSupply, nsbtSupplyMAX, surfSupply, usdnUsdtPegX6, currentPriceAdj])
395441 }
396442
397443
398444
399445 @Callable(i)
400446 func getUnstakeComissionAmountREADONLY (amount,startHeight,halfLife) = $Tuple2(nil, fraction(amount, pow(2, 0, fraction(-((height - startHeight)), MULT8, halfLife), 8, 8, HALFUP), MULT8))
401447
402448
403449
404450 @Callable(i)
405451 func mergeStakesREADONLY (amount1,height1,amount2,height2,halfLife) = {
406452 let w = fraction(amount2, pow(2, 0, fraction((height2 - height1), MULT8, halfLife), 8, 8, HALFUP), MULT8)
407453 let v = fraction((amount1 + amount2), MULT8, (amount1 + w))
408454 $Tuple2(nil, (height1 + ((HALF8 - (halfLife * log(v, 8, 2, 0, 8, HALFUP))) / MULT8)))
409455 }
410456
411457
412458 @Verifier(tx)
413459 func verify () = {
414460 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
415461 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
416462 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
417463 then 1
418464 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
419465 then 1
420466 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
421467 then 1
422468 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
423469 then 2
424470 else 0))
425471 (count >= 3)
426472 }
427473

github/deemru/w8io/026f985 
54.85 ms