tx · DcGREuRf7iPdyFGm53cnAPfAEtpS8aDkfwUHA8CnnzMj 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi: -0.04000000 Waves 2022.10.13 12:13 [2270392] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves
{ "type": 13, "id": "DcGREuRf7iPdyFGm53cnAPfAEtpS8aDkfwUHA8CnnzMj", "fee": 4000000, "feeAssetId": null, "timestamp": 1665652462844, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "5XxFFpomZaxpt6ewpAMUBbuTyXJ44KNPsqrNcFFM2u4ngUdG99FxHNXLiQxz6XiQQxWqdPhdy1Ys1BGb91msjZXK" ], "script": "base64:AAIFAAAAAAAAAEMIAhIFCgMICAgSABIDCgEIEgQKAggBEgASAwoBARIFCgMIAQgSAwoBCBIGCgQBAQEBEgQKAgEBEgQKAgEIEgASABIAAAAAcQAAAAALcmV2aXNpb25OdW0CAAAAKDZhOTRiODQxYjM4N2U1ZDRiZDhiZThmOGVkNWY4MDA1N2VmODYxODYAAAAABkVVTEVSOAAAAAAAEDPE1gAAAAAFTVVMVDYAAAAAAAAPQkAAAAAABk1VTFRYNgkAATYAAAABAAAAAAAAD0JAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAGTVVMVFg4CQABNgAAAAEAAAAAAAX14QAAAAAABk1VTFQxMgAAAADo1KUQAAAAAAAGTVVMVDE4CQABNgAAAAEADeC2s6dkAAAAAAAAA1NFUAIAAAACX18AAAAAC0JSUFJPVEVDVEVEAAAAAAAAAYagAAAAAAdXQVZFU0lECQACWQAAAAECAAAABVdBVkVTAAAAAA9uTWV0cmljSWR4UHJpY2UAAAAAAAAAAAAAAAAAG25NZXRyaWNJZHhVc2RuTG9ja2VkQmFsYW5jZQAAAAAAAAAAAQAAAAAcbk1ld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pY0lkeFByaWNlBAAAAA9yZXNlcnZlc0luV2F2ZXMJAQAAAAVhc0ludAAAAAEJAAGRAAAAAgUAAAAPbmV1dHJpbm9NZXRyaWNzBQAAABFuTWV0cmljSWR4UmVzZXJ2ZQQAAAAObmV1dHJpbm9TdXBwbHkJAQAAAAVhc0ludAAAAAEJAAGRAAAAAgUAAAAPbmV1dHJpbm9NZXRyaWNzBQAAABRuTWV0cmljSWR4VXNkblN1cHBseQQAAAAPc3VyZlByaWNlSW5Vc2RuCQAAawAAAAMFAAAAD3Jlc2VydmVzSW5XYXZlcwUAAAAMY3VycmVudFByaWNlBQAAAA5uZXV0cmlub1N1cHBseQQAAAAQc3VyZlByaWNlSW5XYXZlcwkAAGsAAAADBQAAAA9yZXNlcnZlc0luV2F2ZXMFAAAABU1VTFQ4BQAAAA5uZXV0cmlub1N1cHBseQQAAAAIcmVzdERhdGEJAAS5AAAAAgkABEwAAAACAgAAABJzdGFydFN1cmZQcmljZVJFU1QJAARMAAAAAgkAAaQAAAABBQAAAA9zdXJmUHJpY2VJblVzZG4JAARMAAAAAgkAAaQAAAABBQAAABBzdXJmUHJpY2VJbldhdmVzCQAETAAAAAICAAAAEGVuZFN1cmZQcmljZVJFU1QFAAAAA25pbAIAAAACX18JAAACAAAAAQUAAAAIcmVzdERhdGEAAAAAue9jFA==", "chainId": 84, "height": 2270392, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3WwykDWxedFToY1qs6cx9cJhsbnVpZHgZa7rWjJrF9Bq Next: BnNugbQocfV479kCQXn6dT5HMX9osgXXx7msfU2cCtDK Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let revisionNum = "" | |
4 | + | let revisionNum = "6a94b841b387e5d4bd8be8f8ed5f80057ef86186" | |
5 | 5 | ||
6 | 6 | let EULER8 = 271828182 | |
7 | 7 | ||
398 | 398 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
399 | 399 | let nsbtAmt = gnsbtAmt | |
400 | 400 | let nsbtAmtNew = gnsbtAmtNEW | |
401 | - | let nsbtAmtStakedTotal = | |
402 | - | let nsbtAmtStakedTotalNew = | |
401 | + | let nsbtAmtStakedTotal = assetBalance(nsbtStakingContract, nsbtAssetId) | |
402 | + | let nsbtAmtStakedTotalNew = nsbtAmtStakedTotal | |
403 | 403 | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
404 | 404 | let isEmptyNsbtBalance = if ((gnsbtAmt == 0)) | |
405 | 405 | then (gnsbtAmtNEW == 0) | |
500 | 500 | ||
501 | 501 | ||
502 | 502 | @Callable(i) | |
503 | - | func walletInfoREADONLY (userAddressStr) = { | |
504 | - | let addr = addressFromStringValue(userAddressStr) | |
505 | - | let balance = wavesBalance(addr) | |
506 | - | let usdnLocked = getLockedOnRpd(userAddressStr, neutrinoAssetIdString) | |
507 | - | let nsbtLockedOld = getLockedOnRpd(userAddressStr, nsbtAssetIdStr) | |
508 | - | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil)) | |
503 | + | func walletInfoREADONLY (userAddressStrOpt) = { | |
504 | + | let addr = addressFromString(userAddressStrOpt) | |
505 | + | let balance = if (isDefined(addr)) | |
506 | + | then wavesBalance(value(addr)) | |
507 | + | else BalanceDetails(0, 0, 0, 0) | |
508 | + | let usdnLocked = getLockedOnRpd(userAddressStrOpt, neutrinoAssetIdString) | |
509 | + | let nsbtLockedOld = getLockedOnRpd(userAddressStrOpt, nsbtAssetIdStr) | |
510 | + | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStrOpt, 0, 0], nil)) | |
509 | 511 | let nsbtData = asAnyList(gnsbtData[2]) | |
510 | 512 | let nsbtUser = asInt(nsbtData[0]) | |
511 | 513 | let nsbtTotal = asInt(nsbtData[1]) | |
518 | 520 | let gNsbtFromSurfTotal = asInt(surfData[3]) | |
519 | 521 | let availableUsdnToClaimFromSurf = 0 | |
520 | 522 | let alreadyClaimedUsdnFromSurf = 0 | |
521 | - | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [ | |
523 | + | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, 0], nil)) | |
522 | 524 | let votingPower = asInt(gsnbtRestV2DATA[19]) | |
523 | 525 | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
524 | 526 | let votingPowerEta = asInt(gsnbtRestV2DATA[23]) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let revisionNum = "" | |
4 | + | let revisionNum = "6a94b841b387e5d4bd8be8f8ed5f80057ef86186" | |
5 | 5 | ||
6 | 6 | let EULER8 = 271828182 | |
7 | 7 | ||
8 | 8 | let MULT6 = 1000000 | |
9 | 9 | ||
10 | 10 | let MULTX6 = toBigInt(1000000) | |
11 | 11 | ||
12 | 12 | let MULT8 = 100000000 | |
13 | 13 | ||
14 | 14 | let MULTX8 = toBigInt(100000000) | |
15 | 15 | ||
16 | 16 | let MULT12 = 1000000000000 | |
17 | 17 | ||
18 | 18 | let MULT18 = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let SEP = "__" | |
21 | 21 | ||
22 | 22 | let BRPROTECTED = 100000 | |
23 | 23 | ||
24 | 24 | let WAVESID = fromBase58String("WAVES") | |
25 | 25 | ||
26 | 26 | let nMetricIdxPrice = 0 | |
27 | 27 | ||
28 | 28 | let nMetricIdxUsdnLockedBalance = 1 | |
29 | 29 | ||
30 | 30 | let nMetricIdxWavesLockedBalance = 2 | |
31 | 31 | ||
32 | 32 | let nMetricIdxReserve = 3 | |
33 | 33 | ||
34 | 34 | let nMetricIdxReserveInUsdn = 4 | |
35 | 35 | ||
36 | 36 | let nMetricIdxUsdnSupply = 5 | |
37 | 37 | ||
38 | 38 | let nMetricIdxSurplus = 6 | |
39 | 39 | ||
40 | 40 | let nMetricIdxSurplusPercent = 7 | |
41 | 41 | ||
42 | 42 | let nMetricIdxBR = 8 | |
43 | 43 | ||
44 | 44 | let nMetricIdxNsbtSupply = 9 | |
45 | 45 | ||
46 | 46 | let nMetricIdxMaxNsbtSupply = 10 | |
47 | 47 | ||
48 | 48 | let nMetricIdxSurfSupply = 11 | |
49 | 49 | ||
50 | 50 | let bFuncIdxSurf = 0 | |
51 | 51 | ||
52 | 52 | let bFuncIdxWaves = 1 | |
53 | 53 | ||
54 | 54 | let bFuncIdxUsdn = 2 | |
55 | 55 | ||
56 | 56 | let bFuncIdxReserveStart = 3 | |
57 | 57 | ||
58 | 58 | let bFuncIdxSupplyStart = 4 | |
59 | 59 | ||
60 | 60 | let bFuncIdxBRStart = 5 | |
61 | 61 | ||
62 | 62 | let bFuncIdxReserveEnd = 6 | |
63 | 63 | ||
64 | 64 | let bFuncIdxSupplyEnd = 7 | |
65 | 65 | ||
66 | 66 | let bFuncIdxBREnd = 8 | |
67 | 67 | ||
68 | 68 | let bFuncIdxRest = 9 | |
69 | 69 | ||
70 | 70 | let bFuncIdxWavesPrice = 10 | |
71 | 71 | ||
72 | 72 | func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyNeutrinoAssetId () = "neutrino_asset_id" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyNsbtAssetId () = "bond_asset_id" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keySurfAssetId () = "surf_asset_id" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyBalanceLocked () = "balance_lock_" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyWavesLockedBalance () = (keyBalanceLocked() + "waves") | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino") | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyMinWavesSwapAmount () = "min_waves_swap_amount" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyWavesOutFeePart () = "wavesOut_swap_feePart" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keySwapAmountAParam () = "%s%s__config__swapAParam" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keySwapAmountBParam () = "%s%s__config__swapBParam" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func keyNsbtLockContract () = "%s__nsbtLockContract" | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func keyMathContract () = "%s__mathContract" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func brProtectedKEY () = "min_BR_protection_level" | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func keyBalanceWavesLockInterval () = "balance_waves_lock_interval" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyPrice () = "price" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyHalfLife () = "%s__halfLife" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyMinLockAmount () = "%s__minLockAmount" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyMinNsbtSell () = "min_nsbt_sell" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyRpdContractBalanceKey (assetId) = ("rpd_balance_" + assetId) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func asAnyList (val) = match val { | |
169 | 169 | case valAnyList: List[Any] => | |
170 | 170 | valAnyList | |
171 | 171 | case _ => | |
172 | 172 | throw("fail to cast into List[Any]") | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func asInt (val) = match val { | |
177 | 177 | case valInt: Int => | |
178 | 178 | valInt | |
179 | 179 | case _ => | |
180 | 180 | throw("fail to cast into Int") | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func asString (val) = match val { | |
185 | 185 | case valStr: String => | |
186 | 186 | valStr | |
187 | 187 | case _ => | |
188 | 188 | throw("fail to cast into String") | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func asTuple2Ints (val) = match val { | |
193 | 193 | case v: (Int, Int) => | |
194 | 194 | v | |
195 | 195 | case _ => | |
196 | 196 | throw("fail to cast into Tuple2 ints") | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func asSwapParamsSTRUCT (val) = match val { | |
201 | 201 | case struct: (Int, Int, Int, Int, Int, Int, Int) => | |
202 | 202 | struct | |
203 | 203 | case _ => | |
204 | 204 | throw("fail to cast into SwapParamsSTRUCT") | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func toTimestamp (start) = if ((0 > start)) | |
209 | 209 | then -1 | |
210 | 210 | else match blockInfoByHeight(start) { | |
211 | 211 | case block: BlockInfo => | |
212 | 212 | block.timestamp | |
213 | 213 | case _ => | |
214 | 214 | -1 | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | let IdxControlCfgNeutrinoDapp = 1 | |
225 | 225 | ||
226 | 226 | let IdxControlCfgAuctionDapp = 2 | |
227 | 227 | ||
228 | 228 | let IdxControlCfgRpdDapp = 3 | |
229 | 229 | ||
230 | 230 | let IdxControlCfgMathDapp = 4 | |
231 | 231 | ||
232 | 232 | let IdxControlCfgLiquidationDapp = 5 | |
233 | 233 | ||
234 | 234 | let IdxControlCfgRestDapp = 6 | |
235 | 235 | ||
236 | 236 | let IdxControlCfgNodeRegistryDapp = 7 | |
237 | 237 | ||
238 | 238 | let IdxControlCfgNsbtStakingDapp = 8 | |
239 | 239 | ||
240 | 240 | let IdxControlCfgMediatorDapp = 9 | |
241 | 241 | ||
242 | 242 | let IdxControlCfgSurfStakingDapp = 10 | |
243 | 243 | ||
244 | 244 | let IdxControlCfgGnsbtControllerDapp = 11 | |
245 | 245 | ||
246 | 246 | let IdxControlCfgRestV2Dapp = 12 | |
247 | 247 | ||
248 | 248 | func keyControlAddress () = "%s%s__config__controlAddress" | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func keyControlCfg () = "%s__controlConfig" | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
261 | 261 | ||
262 | 262 | let controlCfg = readControlCfgOrFail(controlContract) | |
263 | 263 | ||
264 | 264 | let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp) | |
265 | 265 | ||
266 | 266 | let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp) | |
267 | 267 | ||
268 | 268 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
269 | 269 | ||
270 | 270 | let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp) | |
271 | 271 | ||
272 | 272 | let rpdContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp) | |
273 | 273 | ||
274 | 274 | let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp) | |
275 | 275 | ||
276 | 276 | let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp) | |
277 | 277 | ||
278 | 278 | let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp) | |
279 | 279 | ||
280 | 280 | let restV2Contract = getContractAddressOrFail(controlCfg, IdxControlCfgRestV2Dapp) | |
281 | 281 | ||
282 | 282 | let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId()) | |
283 | 283 | ||
284 | 284 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
285 | 285 | ||
286 | 286 | let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId()) | |
287 | 287 | ||
288 | 288 | let nsbtAssetId = fromBase58String(nsbtAssetIdStr) | |
289 | 289 | ||
290 | 290 | let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId()) | |
291 | 291 | ||
292 | 292 | let surfAssetId = fromBase58String(surfAssetIdStr) | |
293 | 293 | ||
294 | 294 | func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func minWavesForSurfBuy () = asInt(invoke(auctionContract, "minWavesAmountSurfBuySYSREADONLY", nil, nil)) | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func minUsdnForSurfBuy () = asInt(invoke(auctionContract, "minUsdnAmountSurfBuySYSREADONLY", nil, nil)) | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | func privateNsbtPriceREST () = { | |
307 | 307 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
308 | 308 | let nsbt2usdnPrice = asInt(prices[0]) | |
309 | 309 | let nsbt2wavesPrice = asInt(prices[1]) | |
310 | 310 | $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice)) | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func getLockedOnRpd (addrStr,assetIdStr) = { | |
315 | 315 | let key = makeString(["rpd_balance", assetIdStr, addrStr], "_") | |
316 | 316 | valueOrElse(getInteger(rpdContract, key), 0) | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | @Callable(i) | |
321 | 321 | func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this)) | |
322 | 322 | then throw("not authorized") | |
323 | 323 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)] | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | ||
327 | 327 | @Callable(i) | |
328 | 328 | func neutrinoStatsREADONLY () = { | |
329 | 329 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
330 | 330 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
331 | 331 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
332 | 332 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
333 | 333 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
334 | 334 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
335 | 335 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
336 | 336 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
337 | 337 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
338 | 338 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
339 | 339 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
340 | 340 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
341 | 341 | let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
342 | 342 | let nsbt2usdnPrice = asInt(prices[0]) | |
343 | 343 | let nsbt2wavesPrice = asInt(prices[1]) | |
344 | 344 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
345 | 345 | let minNsbtsell = minNsbtForSell() | |
346 | 346 | let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount()) | |
347 | 347 | let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves) | |
348 | 348 | let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn) | |
349 | 349 | let surfPriceInUsdn = BR | |
350 | 350 | let surfPriceInWaves = fraction(BR, MULT6, currentPrice) | |
351 | 351 | let totalUsdnStaked = valueOrElse(getInteger(rpdContract, keyRpdContractBalanceKey(neutrinoAssetIdString)), 0) | |
352 | 352 | $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)) | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | ||
357 | 357 | @Callable(i) | |
358 | 358 | func swapInfoREADONLY (userAddressStrOpt) = { | |
359 | 359 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
360 | 360 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
361 | 361 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
362 | 362 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
363 | 363 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
364 | 364 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
365 | 365 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
366 | 366 | let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
367 | 367 | let swapLimitMaxUsdn = swapParamsSTRUCT._1 | |
368 | 368 | let swapLimitSpentUsdn = swapParamsSTRUCT._2 | |
369 | 369 | let blcks2LmtReset = swapParamsSTRUCT._3 | |
370 | 370 | let wavesSwapLimitMax = swapParamsSTRUCT._6 | |
371 | 371 | let usdnSwapLimitMax = swapParamsSTRUCT._7 | |
372 | 372 | $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)) | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(i) | |
378 | 378 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
379 | 379 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
380 | 380 | let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
381 | 381 | let blcks2LmtReset = swapParams._3 | |
382 | 382 | let gnsbtAmt = swapParams._4 | |
383 | 383 | let gnsbtAmtTotal = swapParams._5 | |
384 | 384 | let limitMaxWaves = swapParams._6 | |
385 | 385 | let limitMaxUsdn = swapParams._7 | |
386 | 386 | let swapParamsNEW = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
387 | 387 | let blcks2LmtResetNEW = swapParamsNEW._3 | |
388 | 388 | let gnsbtAmtNEW = swapParamsNEW._4 | |
389 | 389 | let gnsbtAmtTotalNEW = swapParamsNEW._5 | |
390 | 390 | let limitMaxWavesNEW = swapParamsNEW._6 | |
391 | 391 | let limitMaxUsdnNEW = swapParamsNEW._7 | |
392 | 392 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
393 | 393 | then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal) | |
394 | 394 | else 0 | |
395 | 395 | let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0)) | |
396 | 396 | then fraction((gnsbtAmtNEW * 100), MULT12, gnsbtAmtTotalNEW) | |
397 | 397 | else 0 | |
398 | 398 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
399 | 399 | let nsbtAmt = gnsbtAmt | |
400 | 400 | let nsbtAmtNew = gnsbtAmtNEW | |
401 | - | let nsbtAmtStakedTotal = | |
402 | - | let nsbtAmtStakedTotalNew = | |
401 | + | let nsbtAmtStakedTotal = assetBalance(nsbtStakingContract, nsbtAssetId) | |
402 | + | let nsbtAmtStakedTotalNew = nsbtAmtStakedTotal | |
403 | 403 | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
404 | 404 | let isEmptyNsbtBalance = if ((gnsbtAmt == 0)) | |
405 | 405 | then (gnsbtAmtNEW == 0) | |
406 | 406 | else false | |
407 | 407 | let startHeight = if (isEmptyNsbtBalance) | |
408 | 408 | then height | |
409 | 409 | else asInt(nsbtData[2]) | |
410 | 410 | let startTimestamp = toTimestamp(startHeight) | |
411 | 411 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
412 | 412 | let startHeightNew = if (isEmptyNsbtBalance) | |
413 | 413 | then height | |
414 | 414 | else asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil)) | |
415 | 415 | let startTimestampNew = toTimestamp(startHeightNew) | |
416 | 416 | $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)) | |
417 | 417 | } | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | ||
421 | 421 | @Callable(i) | |
422 | 422 | func neutrinoConfigREADONLY () = { | |
423 | 423 | let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam()) | |
424 | 424 | let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam()) | |
425 | 425 | let usdnLimitParamA = getIntegerValue(mathContract, keyUsdnSwapAmountAParam()) | |
426 | 426 | let usdnLimitParamB = getIntegerValue(mathContract, keyUsdnSwapAmountBParam()) | |
427 | 427 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
428 | 428 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
429 | 429 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
430 | 430 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
431 | 431 | let brProtected = valueOrElse(getInteger(neutrinoContract, brProtectedKEY()), BRPROTECTED) | |
432 | 432 | let usdnSwapDelay = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
433 | 433 | let wavesSwapDelay = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
434 | 434 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
435 | 435 | let minNsbtsell = minNsbtForSell() | |
436 | 436 | let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount()) | |
437 | 437 | let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife()) | |
438 | 438 | let minWaves4SurfBuy = minWavesForSurfBuy() | |
439 | 439 | let minUsdn4SurfBuy = minUsdnForSurfBuy() | |
440 | 440 | let surfStakingCfg = asAnyList(invoke(surfStakingContract, "configSYSREADONLY", nil, nil)) | |
441 | 441 | let minSurfStakeAmt = asInt(surfStakingCfg[0]) | |
442 | 442 | let gnsbtFromSurfCoeff = asInt(surfStakingCfg[1]) | |
443 | 443 | let surfVotingPowerRestrictivePeriod = asInt(surfStakingCfg[2]) | |
444 | 444 | let brToStartSurfTransformation = asInt(surfStakingCfg[3]) | |
445 | 445 | let shutdown = valueOrElse(getBoolean(controlContract, "is_blocked"), false) | |
446 | 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)) | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(i) | |
452 | 452 | func buyNsbtREADONLY (wavesPay) = { | |
453 | 453 | let minWavesAmountNsbtBuy = minWavesForNsbtBuy() | |
454 | 454 | if ((minWavesAmountNsbtBuy > wavesPay)) | |
455 | 455 | then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected")) | |
456 | 456 | else { | |
457 | 457 | let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil)) | |
458 | 458 | if ((curveResult == curveResult)) | |
459 | 459 | then { | |
460 | 460 | let nsbtAmount = asInt(curveResult[0]) | |
461 | 461 | if ((0 >= nsbtAmount)) | |
462 | 462 | then throw("nsbtAmount <= 0") | |
463 | 463 | else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP)) | |
464 | 464 | } | |
465 | 465 | else throw("Strict value is not equal to itself.") | |
466 | 466 | } | |
467 | 467 | } | |
468 | 468 | ||
469 | 469 | ||
470 | 470 | ||
471 | 471 | @Callable(i) | |
472 | 472 | func buySurfREADONLY (userAddressStrOpt,amount,assetIdStr) = { | |
473 | 473 | let assetId = fromBase58String(assetIdStr) | |
474 | 474 | let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil)) | |
475 | 475 | let surfAmount = asInt(surfResult[bFuncIdxSurf]) | |
476 | 476 | let gNsbtAmount = asInt(invoke(surfStakingContract, "gnsbtFromSurfSYSREADONLY", [surfAmount], nil)) | |
477 | 477 | let swapParams = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
478 | 478 | let wavesLimit = swapParams._6 | |
479 | 479 | let usdnLimit = swapParams._7 | |
480 | 480 | let swapParamsNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil)) | |
481 | 481 | let wavesLimitNew = swapParamsNew._6 | |
482 | 482 | let usdnLimitNew = swapParamsNew._7 | |
483 | 483 | let price = asInt(surfResult[bFuncIdxWavesPrice]) | |
484 | 484 | let additionalLimitUsdn = (usdnLimitNew - usdnLimit) | |
485 | 485 | let additionalLimitWaves = (wavesLimitNew - wavesLimit) | |
486 | 486 | let br0 = asInt(surfResult[bFuncIdxBRStart]) | |
487 | 487 | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
488 | 488 | let priceSurf2Waves0 = fraction(br0, MULT6, price) | |
489 | 489 | let priceSurf2Waves1 = fraction(br1, MULT6, price) | |
490 | 490 | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil)) | |
491 | 491 | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
492 | 492 | let votingPowerMaxNEW = asInt(gsnbtRestV2DATA[22]) | |
493 | 493 | let votingPowerEtaNEW = asInt(gsnbtRestV2DATA[23]) | |
494 | 494 | let mergedVotingPowerEta = votingPowerEtaNEW | |
495 | 495 | let maxVotingPowerDiff = (votingPowerMaxNEW - votingPowerMax) | |
496 | 496 | let rest = asInt(surfResult[bFuncIdxRest]) | |
497 | 497 | $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)) | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | ||
502 | 502 | @Callable(i) | |
503 | - | func walletInfoREADONLY (userAddressStr) = { | |
504 | - | let addr = addressFromStringValue(userAddressStr) | |
505 | - | let balance = wavesBalance(addr) | |
506 | - | let usdnLocked = getLockedOnRpd(userAddressStr, neutrinoAssetIdString) | |
507 | - | let nsbtLockedOld = getLockedOnRpd(userAddressStr, nsbtAssetIdStr) | |
508 | - | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil)) | |
503 | + | func walletInfoREADONLY (userAddressStrOpt) = { | |
504 | + | let addr = addressFromString(userAddressStrOpt) | |
505 | + | let balance = if (isDefined(addr)) | |
506 | + | then wavesBalance(value(addr)) | |
507 | + | else BalanceDetails(0, 0, 0, 0) | |
508 | + | let usdnLocked = getLockedOnRpd(userAddressStrOpt, neutrinoAssetIdString) | |
509 | + | let nsbtLockedOld = getLockedOnRpd(userAddressStrOpt, nsbtAssetIdStr) | |
510 | + | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStrOpt, 0, 0], nil)) | |
509 | 511 | let nsbtData = asAnyList(gnsbtData[2]) | |
510 | 512 | let nsbtUser = asInt(nsbtData[0]) | |
511 | 513 | let nsbtTotal = asInt(nsbtData[1]) | |
512 | 514 | let gNsbtFromNsbtUser = asInt(nsbtData[2]) | |
513 | 515 | let gNsbtFromNsbtTotal = asInt(nsbtData[3]) | |
514 | 516 | let surfData = asAnyList(gnsbtData[3]) | |
515 | 517 | let surfUser = asInt(surfData[0]) | |
516 | 518 | let surfTotal = asInt(surfData[1]) | |
517 | 519 | let gNsbtFromSurfUser = asInt(surfData[2]) | |
518 | 520 | let gNsbtFromSurfTotal = asInt(surfData[3]) | |
519 | 521 | let availableUsdnToClaimFromSurf = 0 | |
520 | 522 | let alreadyClaimedUsdnFromSurf = 0 | |
521 | - | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [ | |
523 | + | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, 0], nil)) | |
522 | 524 | let votingPower = asInt(gsnbtRestV2DATA[19]) | |
523 | 525 | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
524 | 526 | let votingPowerEta = asInt(gsnbtRestV2DATA[23]) | |
525 | 527 | $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)) | |
526 | 528 | } | |
527 | 529 | ||
528 | 530 | ||
529 | 531 | ||
530 | 532 | @Callable(i) | |
531 | 533 | func mergedStakeREADONLY (amount1,height1,amount2,height2) = { | |
532 | 534 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
533 | 535 | let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil)) | |
534 | 536 | $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP)) | |
535 | 537 | } | |
536 | 538 | ||
537 | 539 | ||
538 | 540 | ||
539 | 541 | @Callable(i) | |
540 | 542 | func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = { | |
541 | 543 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
542 | 544 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
543 | 545 | if ((a == a)) | |
544 | 546 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
545 | 547 | else throw("Strict value is not equal to itself.") | |
546 | 548 | } | |
547 | 549 | ||
548 | 550 | ||
549 | 551 | ||
550 | 552 | @Callable(i) | |
551 | 553 | func unstakeComissionAmountByUserREADONLY (amount,userAddress) = { | |
552 | 554 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
553 | 555 | let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height) | |
554 | 556 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
555 | 557 | if ((a == a)) | |
556 | 558 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
557 | 559 | else throw("Strict value is not equal to itself.") | |
558 | 560 | } | |
559 | 561 | ||
560 | 562 | ||
561 | 563 | ||
562 | 564 | @Callable(i) | |
563 | 565 | func neutrinoStateREST () = { | |
564 | 566 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
565 | 567 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
566 | 568 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
567 | 569 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
568 | 570 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
569 | 571 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
570 | 572 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
571 | 573 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
572 | 574 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
573 | 575 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
574 | 576 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
575 | 577 | let nsbtSupplyMax = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
576 | 578 | let surfSupply = asInt(neutrinoMetrics[nMetricIdxSurfSupply]) | |
577 | 579 | 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)], "__")) | |
578 | 580 | } | |
579 | 581 | ||
580 | 582 | ||
581 | 583 | ||
582 | 584 | @Callable(i) | |
583 | 585 | func nsbtPriceREST () = { | |
584 | 586 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
585 | 587 | let nsbt2usdnPrice = asInt(prices[0]) | |
586 | 588 | let nsbt2wavesPrice = asInt(prices[1]) | |
587 | 589 | let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__") | |
588 | 590 | throw(restData) | |
589 | 591 | } | |
590 | 592 | ||
591 | 593 | ||
592 | 594 | ||
593 | 595 | @Callable(i) | |
594 | 596 | func surfPriceREST () = { | |
595 | 597 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
596 | 598 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
597 | 599 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
598 | 600 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
599 | 601 | let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply) | |
600 | 602 | let surfPriceInWaves = fraction(reservesInWaves, MULT8, neutrinoSupply) | |
601 | 603 | let restData = makeString(["startSurfPriceREST", toString(surfPriceInUsdn), toString(surfPriceInWaves), "endSurfPriceREST"], "__") | |
602 | 604 | throw(restData) | |
603 | 605 | } | |
604 | 606 | ||
605 | 607 |
github/deemru/w8io/169f3d6 439.22 ms ◑