tx · 2Lo8TBcCTixaLpG9K9HNdAaBwkzKiya3gLmPw2JBYaSn

3N5NAftzfcw3gAt8nc35bNr9UdPTVgC81fd:  -0.04000000 Waves

2022.07.29 14:05 [2161025] smart account 3N5NAftzfcw3gAt8nc35bNr9UdPTVgC81fd > SELF 0.00000000 Waves

{ "type": 13, "id": "2Lo8TBcCTixaLpG9K9HNdAaBwkzKiya3gLmPw2JBYaSn", "fee": 4000000, "feeAssetId": null, "timestamp": 1659092781248, "version": 1, "sender": "3N5NAftzfcw3gAt8nc35bNr9UdPTVgC81fd", "senderPublicKey": "CdnTmMHxT68Qa4MtHEnAiUhsdKTi2YkHPGn92ThinVNt", "proofs": [ "51ZoY9ubn9VatPBEoi3cQ4icmq1Yag1Z866BkBDeGiNsXBUrde3d76MB98UqoyFfdSLANpky9xfw6a9CavuXzFcU", "66EKGTy73VtiVPtsysjLQArCLUz8BwyYNqJqLiRxQSgvVZHANBevZVqeuXc4ypGmBR9azERXCubBCS2BL8TgVuwm", "4VFvfNss6AmMLx8EJzrWkoRwpSAJpqhTiCBq7EBHcQWDsKjv9H84eMm1RFWvxjR61doLXv7399hY6SshgymgLUFb" ], "script": "base64:AAIFAAAAAAAAADAIAhIFCgMIAQESBAoCAQESABIAEgMKAQgSABIAEgASABIFCgMBAQQSAwoBARIAEgAAAABtAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAAWZ2V0Qm9vbEJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5B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AAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAMAAAAAAAAAAAIAAAAAAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAANEW32h", "chainId": 84, "height": 2161025, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6RZsF65DgtCDhNMdqx7ALk8FrxViNV3WdQcVEpCrftij Next: 7Yt8cfWyR3x8VvYoev71V8gvNz1BPwjmjN21rCmuSbBT Diff:
OldNewDifferences
3535 func asInt (val) = match val {
3636 case valInt: Int =>
3737 valInt
38+ case _ =>
39+ throw("fail to cast into Int")
40+}
41+
42+
43+func asByte (val) = match val {
44+ case valByte: ByteVector =>
45+ valByte
3846 case _ =>
3947 throw("fail to cast into Int")
4048 }
106114
107115 let bFuncIdxWavesPrice = 10
108116
117+let IdxControlCfgNeutrinoDapp = 1
118+
119+let IdxControlCfgAuctionDapp = 2
120+
121+let IdxControlCfgRpdDapp = 3
122+
123+let IdxControlCfgMathDapp = 4
124+
125+let IdxControlCfgLiquidationDapp = 5
126+
127+let IdxControlCfgRestDapp = 6
128+
129+let IdxControlCfgNodeRegistryDapp = 7
130+
131+let IdxControlCfgNsbtStakingDapp = 8
132+
133+let IdxControlCfgMediatorDapp = 9
134+
135+let IdxControlCfgSurfStakingDapp = 10
136+
137+let IdxControlCfgGnsbtControllerDapp = 11
138+
139+func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
140+
141+
142+func keyControlAddress () = "%s%s__config__controlAddress"
143+
144+
145+func keyControlCfg () = "%s__controlConfig"
146+
147+
148+func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
149+
150+
151+func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
152+
153+
154+let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
155+
156+let controlCfg = readControlCfgOrFail(controlContract)
157+
158+let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
159+
160+let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
161+
162+let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
163+
109164 let PriceKey = "price"
110165
111166 let NsbtAssetIdKey = "bond_asset_id"
171226 func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16))
172227
173228
174-let neutrinoContract = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj')
229+let neutrinoAssetId = base58'GS9LAij4XVawr2RdLmBTuJ1mY51n93rL1mFUxqSZNicP'
175230
176-let controlContract = Address(base58'3MrwvfA9VRYwhHy4NuWPQGdxCtZdhH4LMMa')
177-
178-let liquidationContract = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N')
179-
180-let mathContract = addressFromStringValue(getStringByKey(MathContractKey))
181-
182-let neutrinoAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
183-
184-let nsbtAssetId = base58'F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z'
231+let nsbtAssetId = base58'EyZUuypQp3WWhxqLNx8Y6N6GsbT21f5UCr36Xd7gsGCk'
185232
186233 let isBlocked = getBoolByAddressAndKey(controlContract, "is_blocked")
187234
392439 else if ((rest > 0))
393440 then [ScriptTransfer(neutrinoContract, (amt - rest), neutrinoAssetId), ScriptTransfer(i.caller, rest, neutrinoAssetId)]
394441 else [ScriptTransfer(neutrinoContract, (amt - rest), neutrinoAssetId)]
395- let surfAssetId = fromBase58String(getStringValue(SurfAssetIdKey))
396- (transfer ++ [Reissue(surfAssetId, surfAmount, true), ScriptTransfer(i.caller, surfAmount, surfAssetId), surfData(surfResult)])
442+ let surfAssetId = asByte(invoke(this, "issueSurf", [surfAmount], nil))
443+ let surfAction = if (autoStake)
444+ then {
445+ let stakingInv = invoke(surfStakingContract, "stakeByOriginCaller", nil, [AttachedPayment(surfAssetId, surfAmount)])
446+ if ((stakingInv == stakingInv))
447+ then nil
448+ else throw("Strict value is not equal to itself.")
449+ }
450+ else [ScriptTransfer(i.caller, surfAmount, surfAssetId)]
451+ ((transfer ++ [surfData(surfResult)]) ++ surfAction)
397452 }
398453 }
399454 }
400455
401456
457+
458+@Callable(i)
459+func issueSurf (surfAmount) = {
460+ let surfAssetId = fromBase58String(getStringValue(SurfAssetIdKey))
461+ if ((i.caller != this))
462+ then throw("issueSurf - persmissions denied")
463+ else $Tuple2([Reissue(surfAssetId, surfAmount, true)], surfAssetId)
464+ }
465+
466+
467+
468+@Callable(i)
469+func updateReservesAndNeutrinoSupply () = {
470+ func getNumberByKeyInternal (key) = match getInteger(this, key) {
471+ case a: Int =>
472+ a
473+ case _ =>
474+ 0
475+ }
476+
477+ let nMetrix = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
478+ let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx")
479+ let newIdx = (idx + 1)
480+[IntegerEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), IntegerEntry("reserve", asInt(nMetrix[3])), IntegerEntry("neutrinoSupply", asInt(nMetrix[5])), IntegerEntry("reservesInUsdn", convertWavesToNeutrino(asInt(nMetrix[3]), asInt(nMetrix[0]))), IntegerEntry("deficit", -(asInt(nMetrix[6])))]
481+ }
482+
483+
484+
485+@Callable(i)
486+func wavesBalancesVsPayment () = {
487+ let b = wavesBalance(this)
488+[IntegerEntry("wavesBalance_available", b.available), IntegerEntry("wavesBalance_regular", b.regular), IntegerEntry("wavesBalance_generating", b.generating), IntegerEntry("wavesBalance_effective", b.effective), IntegerEntry("waves_payment", value(i.payments[0]).amount)]
489+ }
490+
491+
402492 @Verifier(tx)
403493 func verify () = {
404- let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"], SEP)
494+ let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
405495 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
406496 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
407497 then 1
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
55
66
77 func getStringByKey (key) = valueOrElse(getString(this, key), "")
88
99
1010 func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(address, key), false)
1111
1212
1313 func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "")
1414
1515
1616 func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(address, key), 0)
1717
1818
1919 func asAnyList (val) = match val {
2020 case valAnyLyst: List[Any] =>
2121 valAnyLyst
2222 case _ =>
2323 throw("fail to cast into List[Any]")
2424 }
2525
2626
2727 func asString (val) = match val {
2828 case valStr: String =>
2929 valStr
3030 case _ =>
3131 throw("fail to cast into String")
3232 }
3333
3434
3535 func asInt (val) = match val {
3636 case valInt: Int =>
3737 valInt
38+ case _ =>
39+ throw("fail to cast into Int")
40+}
41+
42+
43+func asByte (val) = match val {
44+ case valByte: ByteVector =>
45+ valByte
3846 case _ =>
3947 throw("fail to cast into Int")
4048 }
4149
4250
4351 let SEP = "__"
4452
4553 let MULT6 = 1000000
4654
4755 let MULT8 = 100000000
4856
4957 let MULTX10 = toBigInt(10000000000)
5058
5159 let MULTX12 = toBigInt(1000000000000)
5260
5361 let MULTX16 = toBigInt(10000000000000000)
5462
5563 let CANCELED = "canceled"
5664
5765 let NEW = "new"
5866
5967 let FILLED = "filled"
6068
6169 let WAVESID = fromBase58String("WAVES")
6270
6371 let nMetricIdxPrice = 0
6472
6573 let nMetricIdxUsdnLockedBalance = 1
6674
6775 let nMetricIdxWavesLockedBalance = 2
6876
6977 let nMetricIdxReserve = 3
7078
7179 let nMetricIdxReserveInUsdn = 4
7280
7381 let nMetricIdxUsdnSupply = 5
7482
7583 let nMetricIdxSurplus = 6
7684
7785 let nMetricIdxSurplusPercent = 7
7886
7987 let nMetricIdxBR = 8
8088
8189 let nMetricIdxNsbtSupply = 9
8290
8391 let nMetricIdxMaxNsbtSupply = 10
8492
8593 let nMetricIdxSurfSupply = 11
8694
8795 let bFuncIdxSurf = 0
8896
8997 let bFuncIdxWaves = 1
9098
9199 let bFuncIdxUsdn = 2
92100
93101 let bFuncIdxReserveStart = 3
94102
95103 let bFuncIdxSupplyStart = 4
96104
97105 let bFuncIdxBRStart = 5
98106
99107 let bFuncIdxReserveEnd = 6
100108
101109 let bFuncIdxSupplyEnd = 7
102110
103111 let bFuncIdxBREnd = 8
104112
105113 let bFuncIdxRest = 9
106114
107115 let bFuncIdxWavesPrice = 10
108116
117+let IdxControlCfgNeutrinoDapp = 1
118+
119+let IdxControlCfgAuctionDapp = 2
120+
121+let IdxControlCfgRpdDapp = 3
122+
123+let IdxControlCfgMathDapp = 4
124+
125+let IdxControlCfgLiquidationDapp = 5
126+
127+let IdxControlCfgRestDapp = 6
128+
129+let IdxControlCfgNodeRegistryDapp = 7
130+
131+let IdxControlCfgNsbtStakingDapp = 8
132+
133+let IdxControlCfgMediatorDapp = 9
134+
135+let IdxControlCfgSurfStakingDapp = 10
136+
137+let IdxControlCfgGnsbtControllerDapp = 11
138+
139+func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
140+
141+
142+func keyControlAddress () = "%s%s__config__controlAddress"
143+
144+
145+func keyControlCfg () = "%s__controlConfig"
146+
147+
148+func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
149+
150+
151+func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
152+
153+
154+let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
155+
156+let controlCfg = readControlCfgOrFail(controlContract)
157+
158+let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
159+
160+let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
161+
162+let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
163+
109164 let PriceKey = "price"
110165
111166 let NsbtAssetIdKey = "bond_asset_id"
112167
113168 let NeutrinoAssetIdKey = "neutrino_asset_id"
114169
115170 let SurfAssetIdKey = "surf_asset_id"
116171
117172 let BalanceLockedkKey = "balance_lock_"
118173
119174 let WavesLockedBalanceKey = (BalanceLockedkKey + "waves")
120175
121176 let NeutrinoLockedBalanceKey = (BalanceLockedkKey + "neutrino")
122177
123178 let FirstOrderKey = "order_first"
124179
125180 let MathContractKey = "math_contract"
126181
127182 let MinWavesForNsbtBuyKey = "min_waves_nsbt_buy"
128183
129184 let MinNsbtSellKey = "min_nsbt_sell"
130185
131186 let MinWavesForSurfBuyKey = "min_waves_surf_buy"
132187
133188 let MinUsdnForSurfBuyKey = "min_usdn_surf_buy"
134189
135190 func getRoiByOrderIdKey (orderId) = ("debug_order_roi_" + orderId)
136191
137192
138193 func getOrderPriceKey (orderId) = ("order_price_" + orderId)
139194
140195
141196 func getOrderTotalKey (orderId) = ("order_total_" + orderId)
142197
143198
144199 func getOrderOwnerKey (orderId) = ("order_owner_" + orderId)
145200
146201
147202 func getOrderHeightKey (orderId) = ("order_height_" + orderId)
148203
149204
150205 func getOrderStatusKey (orderId) = ("order_status_" + orderId)
151206
152207
153208 func getOrderFilledTotalKey (orderId) = ("order_filled_total_" + orderId)
154209
155210
156211 func getPrevOrderKey (orderId) = ("order_prev_" + orderId)
157212
158213
159214 func getNextOrderKey (orderId) = ("order_next_" + orderId)
160215
161216
162217 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
163218
164219
165220 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
166221
167222
168223 func toX16 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULTX16, toBigInt(origScaleMult))
169224
170225
171226 func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16))
172227
173228
174-let neutrinoContract = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj')
229+let neutrinoAssetId = base58'GS9LAij4XVawr2RdLmBTuJ1mY51n93rL1mFUxqSZNicP'
175230
176-let controlContract = Address(base58'3MrwvfA9VRYwhHy4NuWPQGdxCtZdhH4LMMa')
177-
178-let liquidationContract = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N')
179-
180-let mathContract = addressFromStringValue(getStringByKey(MathContractKey))
181-
182-let neutrinoAssetId = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
183-
184-let nsbtAssetId = base58'F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z'
231+let nsbtAssetId = base58'EyZUuypQp3WWhxqLNx8Y6N6GsbT21f5UCr36Xd7gsGCk'
185232
186233 let isBlocked = getBoolByAddressAndKey(controlContract, "is_blocked")
187234
188235 let minWavesAmountNsbtBuy = valueOrElse(getInteger(this, MinWavesForNsbtBuyKey), 1000000000)
189236
190237 let minNsbtSell = valueOrElse(getInteger(this, MinNsbtSellKey), 1000000)
191238
192239 let minWavesAmountSurfBuy = valueOrElse(getInteger(this, MinWavesForSurfBuyKey), 100000000)
193240
194241 let minUsdnAmountSurfBuy = valueOrElse(getInteger(this, MinUsdnForSurfBuyKey), 10000000)
195242
196243 let firstOrder = getStringByKey(FirstOrderKey)
197244
198245 func getOrderPrice (id) = getNumberByKey(getOrderPriceKey(id))
199246
200247
201248 func getOrderTotal (id) = getNumberByKey(getOrderTotalKey(id))
202249
203250
204251 func getOrderOwner (id) = getStringByKey(getOrderOwnerKey(id))
205252
206253
207254 func getOrderStatus (id) = getStringByKey(getOrderStatusKey(id))
208255
209256
210257 func getOrderFilledTotal (id) = getNumberByKey(getOrderFilledTotalKey(id))
211258
212259
213260 func getPrevOrder (id) = getStringByKey(getPrevOrderKey(id))
214261
215262
216263 func getNextOrder (id) = getStringByKey(getNextOrderKey(id))
217264
218265
219266 func getReversePrice (price) = ((MULT6 * MULT6) / price)
220267
221268
222269 func calcNsbt2WavesPriceRaw (spentWavesRaw,receivedNsbtRaw) = fraction(toBigInt(spentWavesRaw), toBigInt((MULT6 * MULT6)), toBigInt(receivedNsbtRaw))
223270
224271
225272 func orderData (orderId,totalWavelets,filledWavelets,owner,status,roi,price,currentPrice) = [StringEntry(getOrderPriceKey(orderId), toString(price)), IntegerEntry(getOrderTotalKey(orderId), totalWavelets), IntegerEntry(getOrderFilledTotalKey(orderId), filledWavelets), StringEntry(getOrderOwnerKey(orderId), owner), IntegerEntry(getOrderHeightKey(orderId), height), StringEntry(getOrderStatusKey(orderId), status), IntegerEntry(("debug_order_currentPrice_" + orderId), currentPrice), IntegerEntry(getRoiByOrderIdKey(orderId), roi)]
226273
227274
228275 func toStr (name,curveResult) = (((((((((((((((((((((((((((((((((((name + "[nsbtAmountRaw=") + toString(asInt(curveResult[0]))) + " usdnPayment=") + toString(asInt(curveResult[1]))) + " wRaw=") + toString(asInt(curveResult[2]))) + " uRaw=") + toString(asInt(curveResult[3]))) + " mRaw=") + toString(asInt(curveResult[4]))) + " sRaw=") + toString(asInt(curveResult[5]))) + " nsbtCurveParam_a=") + toString(asInt(curveResult[6]))) + " nsbtCurveParam_b=") + toString(asInt(curveResult[7]))) + " wReservesInUsdn=") + toString(asInt(curveResult[8]))) + " price=") + toString(asInt(curveResult[9]))) + " multBR=") + toString(asInt(curveResult[10]))) + " multPower=") + toString(asInt(curveResult[11]))) + " multExpInPower=") + asString(curveResult[12])) + " multK=") + asString(curveResult[13])) + " step1=") + asString(curveResult[14])) + " step2=") + asString(curveResult[15])) + " step3=") + toString(asInt(curveResult[16]))) + "]")
229276
230277
231278 func surfData (surfResult) = StringEntry("debug_surfResult", makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(asInt(surfResult[bFuncIdxSurf])), toString(asInt(surfResult[bFuncIdxWaves])), toString(asInt(surfResult[bFuncIdxUsdn])), toString(asInt(surfResult[bFuncIdxReserveStart])), toString(asInt(surfResult[bFuncIdxSupplyStart])), toString(asInt(surfResult[bFuncIdxBRStart])), toString(asInt(surfResult[bFuncIdxReserveEnd])), toString(asInt(surfResult[bFuncIdxSupplyEnd])), toString(asInt(surfResult[bFuncIdxBREnd])), toString(asInt(surfResult[bFuncIdxRest])), toString(asInt(surfResult[bFuncIdxWavesPrice]))], SEP))
232279
233280
234281 @Callable(i)
235282 func constructor (mathContractAddress,minWavesForNsbtBuy,minNsbtSell) = if ((i.caller != this))
236283 then throw("Permission denied")
237284 else [StringEntry(MathContractKey, mathContractAddress), IntegerEntry(MinNsbtSellKey, minNsbtSell), IntegerEntry(MinWavesForNsbtBuyKey, minWavesForNsbtBuy)]
238285
239286
240287
241288 @Callable(i)
242289 func constructorV2 (minWavesForSurfBuyKey,minUsdnForSurfBuyKey) = if ((i.caller != this))
243290 then throw("Permission denied")
244291 else {
245292 let issue = Issue("SURF", "Smart Utility Recapitalization Feature token", 0, 6, true, unit, 0)
246293 let assetId = calculateAssetId(issue)
247294 [issue, StringEntry(SurfAssetIdKey, toBase58String(assetId)), IntegerEntry(MinWavesForSurfBuyKey, minWavesForSurfBuyKey), IntegerEntry(MinUsdnForSurfBuyKey, minUsdnForSurfBuyKey)]
248295 }
249296
250297
251298
252299 @Callable(i)
253300 func buyNsbt () = {
254301 let pmt = value(i.payments[0])
255302 let pmtAmount = pmt.amount
256303 let wavesPay = pmtAmount
257304 if (isBlocked)
258305 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
259306 else if (isDefined(pmt.assetId))
260307 then throw("can use waves only")
261308 else if ((minWavesAmountNsbtBuy > pmtAmount))
262309 then throw((("min " + toString((minWavesAmountNsbtBuy / MULT8))) + " waves expected"))
263310 else {
264311 let ownerAddress = i.caller
265312 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
266313 let currentPrice = asInt(neutrinoMetrics[0])
267314 let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil))
268315 let nsbtAmount = asInt(curveResult[0])
269316 if ((0 >= nsbtAmount))
270317 then throw("nsbtAmount <= 0")
271318 else {
272319 let nsbt2WavesPriceRaw = calcNsbt2WavesPriceRaw(wavesPay, nsbtAmount)
273320 let roi = 0
274321 let amountLeased = invoke(neutrinoContract, "acceptWaves", nil, i.payments)
275322 if ((amountLeased == amountLeased))
276323 then $Tuple2((orderData(toBase58String(i.transactionId), pmtAmount, pmtAmount, toString(ownerAddress), FILLED, roi, nsbt2WavesPriceRaw, currentPrice) ++ [ScriptTransfer(ownerAddress, nsbtAmount, nsbtAssetId), StringEntry("debug_curveResult", toStr("curveResult", curveResult))]), nsbtAmount)
277324 else throw("Strict value is not equal to itself.")
278325 }
279326 }
280327 }
281328
282329
283330
284331 @Callable(i)
285332 func sellNsbt () = if (isBlocked)
286333 then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles")
287334 else {
288335 let pmt = value(i.payments[0])
289336 let pmtAmount = pmt.amount
290337 if ((pmt.assetId != nsbtAssetId))
291338 then throw("can use NSBT only")
292339 else if ((minNsbtSell > pmtAmount))
293340 then throw((("min " + toString((minNsbtSell / MULT6))) + " nsbt expected"))
294341 else {
295342 let newPrice = asInt(asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [-(pmtAmount)], nil))[0])
296343 if ((MULT6 > newPrice))
297344 then throw((("resulting nsbt price would be < 1 (" + toString(newPrice)) + " usdn)"))
298345 else {
299346 let transf = invoke(neutrinoContract, "transferUsdnToUser", [pmtAmount, toString(i.caller)], nil)
300347 if ((transf == transf))
301348 then $Tuple2(nil, newPrice)
302349 else throw("Strict value is not equal to itself.")
303350 }
304351 }
305352 }
306353
307354
308355
309356 @Callable(i)
310357 func cancelOrder (orderId) = {
311358 let owner = getOrderOwner(orderId)
312359 let amount = (getOrderTotal(orderId) - getOrderFilledTotal(orderId))
313360 let caller = toString(i.caller)
314361 let nextOrder = getNextOrder(orderId)
315362 let prevOrder = getPrevOrder(orderId)
316363 if ((getOrderStatus(orderId) != NEW))
317364 then throw("invalid order status")
318365 else [StringEntry(FirstOrderKey, if ((firstOrder == orderId))
319366 then nextOrder
320367 else firstOrder), StringEntry(getNextOrderKey(prevOrder), nextOrder), StringEntry(getPrevOrderKey(nextOrder), prevOrder), StringEntry(getOrderStatusKey(orderId), CANCELED), ScriptTransfer(i.caller, amount, unit)]
321368 }
322369
323370
324371
325372 @Callable(i)
326373 func minWavesAmountNsbtBuySYSREADONLY () = $Tuple2(nil, minWavesAmountNsbtBuy)
327374
328375
329376
330377 @Callable(i)
331378 func minNsbtAmountForSellSYSREADONLY () = $Tuple2(nil, minNsbtSell)
332379
333380
334381
335382 @Callable(i)
336383 func minWavesAmountSurfBuySYSREADONLY () = $Tuple2(nil, minWavesAmountSurfBuy)
337384
338385
339386
340387 @Callable(i)
341388 func minUsdnAmountSurfBuySYSREADONLY () = $Tuple2(nil, minUsdnAmountSurfBuy)
342389
343390
344391
345392 @Callable(i)
346393 func buySurf (averagePriceWanted,maxTolerancePerc,autoStake) = if ((size(i.payments) != 1))
347394 then throw("exactly 1 payment must be attached")
348395 else if ((0 >= averagePriceWanted))
349396 then throw("averagePriceWanted should be positive")
350397 else if ((0 >= maxTolerancePerc))
351398 then throw("maxTolerancePerc should be positive")
352399 else {
353400 let pmt = i.payments[0]
354401 let amt = pmt.amount
355402 let pmtAssetId = valueOrElse(pmt.assetId, WAVESID)
356403 if (if ((pmtAssetId != neutrinoAssetId))
357404 then (pmtAssetId != WAVESID)
358405 else false)
359406 then throw("Unsupported payment asset")
360407 else if (if ((pmtAssetId == neutrinoAssetId))
361408 then (minUsdnAmountSurfBuy > amt)
362409 else false)
363410 then throw((("min " + toString((minUsdnAmountSurfBuy / MULT6))) + " USDN expected"))
364411 else if (if ((pmtAssetId == WAVESID))
365412 then (minWavesAmountSurfBuy > amt)
366413 else false)
367414 then throw((("min " + toString((minWavesAmountSurfBuy / MULT8))) + " WAVES expected"))
368415 else {
369416 let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amt, pmtAssetId], nil))
370417 let spentWaves = asInt(surfResult[bFuncIdxWaves])
371418 let spentUsdn = asInt(surfResult[bFuncIdxUsdn])
372419 let surfAmount = asInt(surfResult[bFuncIdxSurf])
373420 let surfAmountX6 = toBigInt(surfAmount)
374421 let spentActualX18 = if ((pmtAssetId == WAVESID))
375422 then (toBigInt(spentWaves) * MULTX10)
376423 else (toBigInt(spentUsdn) * MULTX12)
377424 if ((spentActualX18 > ((toBigInt((maxTolerancePerc + MULT6)) * toBigInt(averagePriceWanted)) * surfAmountX6)))
378425 then throw((((((("Tolerance " + toString(maxTolerancePerc)) + " exceeded: spent ") + (if ((pmtAssetId == WAVESID))
379426 then (toString(spentWaves) + " WAVES")
380427 else (toString(spentUsdn) + " USDN"))) + " for ") + toString(surfAmount)) + " SURF"))
381428 else {
382429 let rest = asInt(surfResult[bFuncIdxRest])
383430 let transfer = if ((pmtAssetId == WAVESID))
384431 then {
385432 let wavesAmt = invoke(neutrinoContract, "acceptWaves", nil, [AttachedPayment(unit, (amt - rest))])
386433 if ((wavesAmt == wavesAmt))
387434 then if ((rest > 0))
388435 then [ScriptTransfer(i.caller, rest, unit)]
389436 else nil
390437 else throw("Strict value is not equal to itself.")
391438 }
392439 else if ((rest > 0))
393440 then [ScriptTransfer(neutrinoContract, (amt - rest), neutrinoAssetId), ScriptTransfer(i.caller, rest, neutrinoAssetId)]
394441 else [ScriptTransfer(neutrinoContract, (amt - rest), neutrinoAssetId)]
395- let surfAssetId = fromBase58String(getStringValue(SurfAssetIdKey))
396- (transfer ++ [Reissue(surfAssetId, surfAmount, true), ScriptTransfer(i.caller, surfAmount, surfAssetId), surfData(surfResult)])
442+ let surfAssetId = asByte(invoke(this, "issueSurf", [surfAmount], nil))
443+ let surfAction = if (autoStake)
444+ then {
445+ let stakingInv = invoke(surfStakingContract, "stakeByOriginCaller", nil, [AttachedPayment(surfAssetId, surfAmount)])
446+ if ((stakingInv == stakingInv))
447+ then nil
448+ else throw("Strict value is not equal to itself.")
449+ }
450+ else [ScriptTransfer(i.caller, surfAmount, surfAssetId)]
451+ ((transfer ++ [surfData(surfResult)]) ++ surfAction)
397452 }
398453 }
399454 }
400455
401456
457+
458+@Callable(i)
459+func issueSurf (surfAmount) = {
460+ let surfAssetId = fromBase58String(getStringValue(SurfAssetIdKey))
461+ if ((i.caller != this))
462+ then throw("issueSurf - persmissions denied")
463+ else $Tuple2([Reissue(surfAssetId, surfAmount, true)], surfAssetId)
464+ }
465+
466+
467+
468+@Callable(i)
469+func updateReservesAndNeutrinoSupply () = {
470+ func getNumberByKeyInternal (key) = match getInteger(this, key) {
471+ case a: Int =>
472+ a
473+ case _ =>
474+ 0
475+ }
476+
477+ let nMetrix = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
478+ let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx")
479+ let newIdx = (idx + 1)
480+[IntegerEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), IntegerEntry("reserve", asInt(nMetrix[3])), IntegerEntry("neutrinoSupply", asInt(nMetrix[5])), IntegerEntry("reservesInUsdn", convertWavesToNeutrino(asInt(nMetrix[3]), asInt(nMetrix[0]))), IntegerEntry("deficit", -(asInt(nMetrix[6])))]
481+ }
482+
483+
484+
485+@Callable(i)
486+func wavesBalancesVsPayment () = {
487+ let b = wavesBalance(this)
488+[IntegerEntry("wavesBalance_available", b.available), IntegerEntry("wavesBalance_regular", b.regular), IntegerEntry("wavesBalance_generating", b.generating), IntegerEntry("wavesBalance_effective", b.effective), IntegerEntry("waves_payment", value(i.payments[0]).amount)]
489+ }
490+
491+
402492 @Verifier(tx)
403493 func verify () = {
404- let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"], SEP)
494+ let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
405495 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
406496 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
407497 then 1
408498 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
409499 then 1
410500 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
411501 then 1
412502 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
413503 then 2
414504 else 0))
415505 (count >= 3)
416506 }
417507

github/deemru/w8io/026f985 
66.05 ms