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