tx · Ajom89W8cuwZjD2rJb91uyrTxnF149vusVg3H7cRstdv 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj: -0.04000000 Waves 2022.10.18 13:26 [2277712] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves
{ "type": 13, "id": "Ajom89W8cuwZjD2rJb91uyrTxnF149vusVg3H7cRstdv", "fee": 4000000, "feeAssetId": null, "timestamp": 1666088861647, "version": 1, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "4wxJTrPN5EUds1fTPoanqRexyxz4kh2VJobmNm7VMUGzPNUZX4QsGjQcskmH2ztrAfmjV6ijZinn7FktPSCKCHyd", "3CPjubERQdeK65h43urR5XVFsbYgzkBEWmgtpjqjcwjpkd5xNt9VeAeZ2fYro7mBHodjHJNdT8YYFV2eugW7Mfi1", "3EbBhwcHT3rkx5bwW14ec6BbGJC4Z4U386vi8gw7NCJaRUgNTCC3Byg9RxTkR31pbYNvDbnxCT3RvN6Vn2mJRuYW" ], "script": "base64:BgJXCAISDgoMCAgICAgIAQEBAQEBEgUKAwgIARIAEgASBQoDCAEIEgMKAQESBAoCAQgSABIFCgMIAQESBAoCAQESBAoCCAESBQoDCAEBEgYKBAgIAQESABIAqwEBD2dldFN0cmluZ09yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQVsY2FsYwEBbAkAuQgBBQFsAQ5nZXROdW1iZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQAAAQ5nZXRTdHJpbmdCeU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IBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAAAAAEAAAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAEAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAgABAAADCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwADCQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAADAAIAAAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIVU3BvbnNvckZlZVRyYW5zYWN0aW9uBAlzcG9uc29yVHgFByRtYXRjaDADCQEbY2hlY2tJc1ZhbGlkTWluU3BvbnNvcmVkRmVlAQUJc3BvbnNvclR4CQBnAgUFY291bnQAAwcJAGcCBQVjb3VudAADlw42pw==", "chainId": 84, "height": 2277712, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FBKpVvYZtNmJoLSRfrT4K54ipi1SzUzGcHGVAr44x6No Next: HfuG7NEucEjM7vF7E2obE6yPmbk9G5nSchDuNxQwBGCm Diff:
Old | New | Differences | |
---|---|---|---|
113 | 113 | ||
114 | 114 | let IdxControlCfgGnsbtControllerDapp = 11 | |
115 | 115 | ||
116 | + | let IdxControlCfgRestV2Dapp = 12 | |
117 | + | ||
118 | + | let IdxControlCfgGovernanceDapp = 13 | |
119 | + | ||
116 | 120 | func keyControlAddress () = "%s%s__config__controlAddress" | |
117 | 121 | ||
118 | 122 | ||
119 | 123 | func keyControlCfg () = "%s__controlConfig" | |
120 | 124 | ||
121 | 125 | ||
122 | - | func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP) | |
126 | + | func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP) | |
123 | 127 | ||
124 | 128 | ||
125 | 129 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
140 | 144 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
141 | 145 | ||
142 | 146 | let nodeRegistryContract = getContractAddressOrFail(controlCfg, IdxControlCfgNodeRegistryDapp) | |
147 | + | ||
148 | + | let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp) | |
143 | 149 | ||
144 | 150 | let NeutrinoAssetIdKey = "neutrino_asset_id" | |
145 | 151 | ||
778 | 784 | ||
779 | 785 | ||
780 | 786 | @Callable(i) | |
781 | - | func acceptWaves () = if ((i.caller != auctionContract)) | |
782 | - | then throw("Currently only auction contract is allowed to call") | |
787 | + | func acceptWaves () = if (if ((i.caller != auctionContract)) | |
788 | + | then (i.caller != governanceContract) | |
789 | + | else false) | |
790 | + | then throw("Currently only auction and governance contracts are allowed to call") | |
783 | 791 | else $Tuple2(prepareUnleaseAndLease(0), "success") | |
784 | 792 | ||
785 | 793 | ||
801 | 809 | if ((i.callerPublicKey != mngPub)) | |
802 | 810 | then throw("approveLeasings not authorized") | |
803 | 811 | else { | |
804 | - | let $ | |
805 | - | let nAddr0 = $ | |
806 | - | let lAmtKEY0 = $ | |
807 | - | let lAmt0 = $ | |
808 | - | let lIdKEY0 = $ | |
809 | - | let lId0 = $ | |
812 | + | let $t03469534757 = readNodeInfo(0) | |
813 | + | let nAddr0 = $t03469534757._1 | |
814 | + | let lAmtKEY0 = $t03469534757._2 | |
815 | + | let lAmt0 = $t03469534757._3 | |
816 | + | let lIdKEY0 = $t03469534757._4 | |
817 | + | let lId0 = $t03469534757._5 | |
810 | 818 | let newL0 = Lease(nAddr0, (lAmt0 - (lAmt * expCount))) | |
811 | 819 | let validation = invoke(nodeRegAddr, "validateAndApproveLeasings", [nListS], nil) | |
812 | 820 | if ((validation == validation)) | |
851 | 859 | then throw("rebalanceLeasings not authorized") | |
852 | 860 | else { | |
853 | 861 | let unleaseAmt = ((amount / size(nList)) + 1) | |
854 | - | let $ | |
855 | - | let nAddr0 = $ | |
856 | - | let lAmtKEY0 = $ | |
857 | - | let lAmt0 = $ | |
858 | - | let lIdKEY0 = $ | |
859 | - | let lId0 = $ | |
862 | + | let $t03599736059 = readNodeInfo(0) | |
863 | + | let nAddr0 = $t03599736059._1 | |
864 | + | let lAmtKEY0 = $t03599736059._2 | |
865 | + | let lAmt0 = $t03599736059._3 | |
866 | + | let lIdKEY0 = $t03599736059._4 | |
867 | + | let lId0 = $t03599736059._5 | |
860 | 868 | let newL0 = Lease(nAddr0, (lAmt0 + (unleaseAmt * size(nList)))) | |
861 | 869 | func forEachNodeDoUnlease (a,i) = { | |
862 | 870 | let node = nList[i] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func lcalc (l) = calculateLeaseId(l) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(address, key), 0) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func getStringByAddressAndKey (address,key) = valueOrElse(getString(addressFromStringValue(address), key), "") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(address, key), false) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func asAnyList (v) = match v { | |
29 | 29 | case l: List[Any] => | |
30 | 30 | l | |
31 | 31 | case _ => | |
32 | 32 | throw("fail to cast into List[Any]") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func asString (v) = match v { | |
37 | 37 | case s: String => | |
38 | 38 | s | |
39 | 39 | case _ => | |
40 | 40 | throw("fail to cast into String") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func asInt (v) = match v { | |
45 | 45 | case i: Int => | |
46 | 46 | i | |
47 | 47 | case _ => | |
48 | 48 | throw("fail to cast into Int") | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func asBytes (val) = match val { | |
53 | 53 | case valByte: ByteVector => | |
54 | 54 | valByte | |
55 | 55 | case _ => | |
56 | 56 | throw("fail to cast into ByteVector") | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func asPayment (v) = match v { | |
61 | 61 | case p: AttachedPayment => | |
62 | 62 | p | |
63 | 63 | case _ => | |
64 | 64 | throw("fail to cast into AttachedPayment") | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func asSwapParamsSTRUCT (v) = match v { | |
69 | 69 | case struct: (Int, Int, Int, Int, Int, Int, Int) => | |
70 | 70 | struct | |
71 | 71 | case _ => | |
72 | 72 | throw("fail to cast into Tuple5 ints") | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | let SEP = "__" | |
77 | 77 | ||
78 | 78 | let WAVELET = 100000000 | |
79 | 79 | ||
80 | 80 | let PAULI = 1000000 | |
81 | 81 | ||
82 | 82 | let PRICELET = 1000000 | |
83 | 83 | ||
84 | 84 | let DEFAULTSWAPFEE = 20000 | |
85 | 85 | ||
86 | 86 | let BRPROTECTED = 100000 | |
87 | 87 | ||
88 | 88 | let IdxNetAmount = 0 | |
89 | 89 | ||
90 | 90 | let IdxFeeAmount = 1 | |
91 | 91 | ||
92 | 92 | let IdxGrossAmount = 2 | |
93 | 93 | ||
94 | 94 | let IdxControlCfgNeutrinoDapp = 1 | |
95 | 95 | ||
96 | 96 | let IdxControlCfgAuctionDapp = 2 | |
97 | 97 | ||
98 | 98 | let IdxControlCfgRpdDapp = 3 | |
99 | 99 | ||
100 | 100 | let IdxControlCfgMathDapp = 4 | |
101 | 101 | ||
102 | 102 | let IdxControlCfgLiquidationDapp = 5 | |
103 | 103 | ||
104 | 104 | let IdxControlCfgRestDapp = 6 | |
105 | 105 | ||
106 | 106 | let IdxControlCfgNodeRegistryDapp = 7 | |
107 | 107 | ||
108 | 108 | let IdxControlCfgNsbtStakingDapp = 8 | |
109 | 109 | ||
110 | 110 | let IdxControlCfgMediatorDapp = 9 | |
111 | 111 | ||
112 | 112 | let IdxControlCfgSurfStakingDapp = 10 | |
113 | 113 | ||
114 | 114 | let IdxControlCfgGnsbtControllerDapp = 11 | |
115 | 115 | ||
116 | + | let IdxControlCfgRestV2Dapp = 12 | |
117 | + | ||
118 | + | let IdxControlCfgGovernanceDapp = 13 | |
119 | + | ||
116 | 120 | func keyControlAddress () = "%s%s__config__controlAddress" | |
117 | 121 | ||
118 | 122 | ||
119 | 123 | func keyControlCfg () = "%s__controlConfig" | |
120 | 124 | ||
121 | 125 | ||
122 | - | func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP) | |
126 | + | func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP) | |
123 | 127 | ||
124 | 128 | ||
125 | 129 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
126 | 130 | ||
127 | 131 | ||
128 | 132 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
129 | 133 | ||
130 | 134 | let controlCfg = readControlCfgOrFail(controlContract) | |
131 | 135 | ||
132 | 136 | let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp) | |
133 | 137 | ||
134 | 138 | let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp) | |
135 | 139 | ||
136 | 140 | let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp) | |
137 | 141 | ||
138 | 142 | let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp) | |
139 | 143 | ||
140 | 144 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
141 | 145 | ||
142 | 146 | let nodeRegistryContract = getContractAddressOrFail(controlCfg, IdxControlCfgNodeRegistryDapp) | |
147 | + | ||
148 | + | let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp) | |
143 | 149 | ||
144 | 150 | let NeutrinoAssetIdKey = "neutrino_asset_id" | |
145 | 151 | ||
146 | 152 | let BondAssetIdKey = "bond_asset_id" | |
147 | 153 | ||
148 | 154 | let AuctionContractKey = "auction_contract" | |
149 | 155 | ||
150 | 156 | let NsbtStakingContractKey = "nsbtStakingContract" | |
151 | 157 | ||
152 | 158 | let LiquidationContractKey = "liquidation_contract" | |
153 | 159 | ||
154 | 160 | let RPDContractKey = "rpd_contract" | |
155 | 161 | ||
156 | 162 | let ContolContractKey = "control_contract" | |
157 | 163 | ||
158 | 164 | let MathContractKey = "math_contract" | |
159 | 165 | ||
160 | 166 | let BalanceWavesLockIntervalKey = "balance_waves_lock_interval" | |
161 | 167 | ||
162 | 168 | let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval" | |
163 | 169 | ||
164 | 170 | let MinWavesSwapAmountKey = "min_waves_swap_amount" | |
165 | 171 | ||
166 | 172 | let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount" | |
167 | 173 | ||
168 | 174 | let NodeOracleProviderPubKeyKey = "node_oracle_provider" | |
169 | 175 | ||
170 | 176 | let NeutrinoOutFeePartKey = "neutrinoOut_swap_feePart" | |
171 | 177 | ||
172 | 178 | let WavesOutFeePartKey = "wavesOut_swap_feePart" | |
173 | 179 | ||
174 | 180 | func keyNodeRegistry (address) = ("%s__" + address) | |
175 | 181 | ||
176 | 182 | ||
177 | 183 | let PriceKey = "price" | |
178 | 184 | ||
179 | 185 | let PriceIndexKey = "price_index" | |
180 | 186 | ||
181 | 187 | let IsBlockedKey = "is_blocked" | |
182 | 188 | ||
183 | 189 | func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block)) | |
184 | 190 | ||
185 | 191 | ||
186 | 192 | func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index)) | |
187 | 193 | ||
188 | 194 | ||
189 | 195 | func getStakingNodeByIndex (idx) = getStringByKey(makeString(["%s%d%s", "lease", toString(idx), "nodeAddress"], SEP)) | |
190 | 196 | ||
191 | 197 | ||
192 | 198 | func getStakingNodeAddressByIndex (idx) = addressFromStringValue(getStakingNodeByIndex(idx)) | |
193 | 199 | ||
194 | 200 | ||
195 | 201 | func getReservedAmountForSponsorship () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], SEP)), (1000 * WAVELET)) | |
196 | 202 | ||
197 | 203 | ||
198 | 204 | func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner) | |
199 | 205 | ||
200 | 206 | ||
201 | 207 | func getLeaseIdKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "id"], SEP) | |
202 | 208 | ||
203 | 209 | ||
204 | 210 | func getLeaseIdByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "id"], SEP) | |
205 | 211 | ||
206 | 212 | ||
207 | 213 | func getLeaseAmountKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "amount"], SEP) | |
208 | 214 | ||
209 | 215 | ||
210 | 216 | func getLeaseAmountByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "amount"], SEP) | |
211 | 217 | ||
212 | 218 | ||
213 | 219 | func getLeaseGroupNodeListKey (groupNum) = makeString(["%s%d%s", "leaseGroup", toString(groupNum), "nodeList"], SEP) | |
214 | 220 | ||
215 | 221 | ||
216 | 222 | func minSwapAmountKEY (swapType) = (("min_" + swapType) + "_swap_amount") | |
217 | 223 | ||
218 | 224 | ||
219 | 225 | func totalLockedKEY (swapType) = ("balance_lock_" + swapType) | |
220 | 226 | ||
221 | 227 | ||
222 | 228 | func totalLockedByUserKEY (swapType,owner) = makeString(["balance_lock", swapType, owner], "_") | |
223 | 229 | ||
224 | 230 | ||
225 | 231 | func balanceLockIntervalKEY (swapType) = (("balance_" + swapType) + "_lock_interval") | |
226 | 232 | ||
227 | 233 | ||
228 | 234 | func nodeBalanceLockIntervalKEY () = "balance_node_lock_interval" | |
229 | 235 | ||
230 | 236 | ||
231 | 237 | func outFeePartKEY (swapType) = (swapType + "Out_swap_feePart") | |
232 | 238 | ||
233 | 239 | ||
234 | 240 | func swapsTimeframeKEY () = "swaps_timeframe" | |
235 | 241 | ||
236 | 242 | ||
237 | 243 | func brProtectedKEY () = "min_BR_protection_level" | |
238 | 244 | ||
239 | 245 | ||
240 | 246 | func minSwapAmountREAD (swapType) = valueOrElse(getInteger(this, minSwapAmountKEY(swapType)), 0) | |
241 | 247 | ||
242 | 248 | ||
243 | 249 | func swapsTimeframeREAD () = valueOrElse(getInteger(this, swapsTimeframeKEY()), 1440) | |
244 | 250 | ||
245 | 251 | ||
246 | 252 | func totalLockedREAD (swapType) = valueOrElse(getInteger(this, totalLockedKEY(swapType)), 0) | |
247 | 253 | ||
248 | 254 | ||
249 | 255 | func totalLockedByUserREAD (swapType,owner) = valueOrElse(getInteger(this, totalLockedByUserKEY(swapType, owner)), 0) | |
250 | 256 | ||
251 | 257 | ||
252 | 258 | func balanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, balanceLockIntervalKEY(swapType)), 1440) | |
253 | 259 | ||
254 | 260 | ||
255 | 261 | func nodeBalanceLockIntervalREAD () = valueOrElse(getInteger(this, nodeBalanceLockIntervalKEY()), 1) | |
256 | 262 | ||
257 | 263 | ||
258 | 264 | func keySwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "swapUserSpentInPeriod", userAddress], SEP) | |
259 | 265 | ||
260 | 266 | ||
261 | 267 | func keyUserLastSwapHeight (userAddress) = makeString(["%s%s", "userLastSwapHeight", userAddress], SEP) | |
262 | 268 | ||
263 | 269 | ||
264 | 270 | func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI) | |
265 | 271 | ||
266 | 272 | ||
267 | 273 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET) | |
268 | 274 | ||
269 | 275 | ||
270 | 276 | func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price) | |
271 | 277 | ||
272 | 278 | ||
273 | 279 | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
274 | 280 | ||
275 | 281 | ||
276 | 282 | func minSwapAmountFAIL (swapType,minSwapAmount) = throw(((("The specified amount in " + swapType) + " swap is less than the required minimum of ") + toString(minSwapAmount))) | |
277 | 283 | ||
278 | 284 | ||
279 | 285 | func emergencyShutdownFAIL () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
280 | 286 | ||
281 | 287 | ||
282 | 288 | func priceIndexFAIL (index,priceIndex,indexHeight,unlockHeight,prevIndexHeight) = throw(((((((((("invalid price history index: index=" + toString(index)) + " priceIndex=") + toString(priceIndex)) + " indexHeight=") + toString(indexHeight)) + " unlockHeight=") + toString(unlockHeight)) + " prevIndexHeight=") + toString(prevIndexHeight))) | |
283 | 289 | ||
284 | 290 | ||
285 | 291 | let neutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey)) | |
286 | 292 | ||
287 | 293 | let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey) | |
288 | 294 | ||
289 | 295 | let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey) | |
290 | 296 | ||
291 | 297 | let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey)) | |
292 | 298 | ||
293 | 299 | let bondAssetId = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z") | |
294 | 300 | ||
295 | 301 | let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF") | |
296 | 302 | ||
297 | 303 | let neutrinoContract = this | |
298 | 304 | ||
299 | 305 | let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey) | |
300 | 306 | ||
301 | 307 | func checkIsValidMinSponsoredFee (tx) = { | |
302 | 308 | let MINTRANSFERFEE = 100000 | |
303 | 309 | let SponsoredFeeUpperBound = 1000 | |
304 | 310 | let realNeutrinoFee = convertWavesToNeutrino(MINTRANSFERFEE, currentPrice) | |
305 | 311 | let minNeutrinoFee = (realNeutrinoFee * 2) | |
306 | 312 | let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100) | |
307 | 313 | let inputFee = value(tx.minSponsoredAssetFee) | |
308 | 314 | if (if ((inputFee >= minNeutrinoFee)) | |
309 | 315 | then (maxNeutrinoFee >= inputFee) | |
310 | 316 | else false) | |
311 | 317 | then (tx.assetId == neutrinoAssetId) | |
312 | 318 | else false | |
313 | 319 | } | |
314 | 320 | ||
315 | 321 | ||
316 | 322 | func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block)) | |
317 | 323 | ||
318 | 324 | ||
319 | 325 | func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index)) | |
320 | 326 | ||
321 | 327 | ||
322 | 328 | func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "amount"], SEP) | |
323 | 329 | ||
324 | 330 | ||
325 | 331 | let sIdxSwapType = 1 | |
326 | 332 | ||
327 | 333 | let sIdxStatus = 2 | |
328 | 334 | ||
329 | 335 | let sIdxInAmount = 3 | |
330 | 336 | ||
331 | 337 | let sIdxPrice = 4 | |
332 | 338 | ||
333 | 339 | let sIdxOutNetAmount = 5 | |
334 | 340 | ||
335 | 341 | let sIdxOutFeeAmount = 6 | |
336 | 342 | ||
337 | 343 | let sIdxStartHeight = 7 | |
338 | 344 | ||
339 | 345 | let sIdxStartTimestamp = 8 | |
340 | 346 | ||
341 | 347 | let sIdxEndHeight = 9 | |
342 | 348 | ||
343 | 349 | let sIdxEndTimestamp = 10 | |
344 | 350 | ||
345 | 351 | let sIdxSelfUnlockHeight = 11 | |
346 | 352 | ||
347 | 353 | let sIdxRandUnlockHeight = 12 | |
348 | 354 | ||
349 | 355 | let sIdxIndex = 13 | |
350 | 356 | ||
351 | 357 | let sIdxWithdrawTxId = 14 | |
352 | 358 | ||
353 | 359 | let sIdxMinRand = 15 | |
354 | 360 | ||
355 | 361 | let sIdxMaxRand = 16 | |
356 | 362 | ||
357 | 363 | let sIdxOutSurfAmount = 17 | |
358 | 364 | ||
359 | 365 | let sIdxBR = 18 | |
360 | 366 | ||
361 | 367 | func swapKEY (userAddress,txId) = makeString(["%s%s", userAddress, txId], SEP) | |
362 | 368 | ||
363 | 369 | ||
364 | 370 | func strSwapDATA (swapType,status,inAmount,price,outNetAmount,outFeeAmount,startHeight,startTimestamp,endHeight,endTimestamp,selfUnlockHeight,randUnlockHeight,index,withdrawTxId,randMin,randMax,outSurfAmt,br) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d", swapType, status, inAmount, price, outNetAmount, outFeeAmount, startHeight, startTimestamp, endHeight, endTimestamp, selfUnlockHeight, randUnlockHeight, index, withdrawTxId, randMin, randMax, outSurfAmt, br], SEP) | |
365 | 371 | ||
366 | 372 | ||
367 | 373 | func pendingSwapDATA (swapType,inAssetAmount,selfUnlockHeight) = strSwapDATA(swapType, "PENDING", toString(inAssetAmount), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(selfUnlockHeight), "0", "0", "NULL", "0", "0", "0", "0") | |
368 | 374 | ||
369 | 375 | ||
370 | 376 | func finishSwapDATA (dataArray,price,outNetAmount,outFeeAmount,randUnlockHeight,index,withdrawTxId,outSurfAmt,br) = strSwapDATA(dataArray[sIdxSwapType], "FINISHED", dataArray[sIdxInAmount], toString(price), toString(outNetAmount), toString(outFeeAmount), dataArray[sIdxStartHeight], dataArray[sIdxStartTimestamp], toString(height), toString(lastBlock.timestamp), dataArray[sIdxSelfUnlockHeight], toString(randUnlockHeight), toString(index), withdrawTxId, dataArray[sIdxMinRand], dataArray[sIdxMaxRand], toString(outSurfAmt), toString(br)) | |
371 | 377 | ||
372 | 378 | ||
373 | 379 | func swapDataFailOrREAD (userAddress,swapTxId) = { | |
374 | 380 | let swapKey = swapKEY(userAddress, swapTxId) | |
375 | 381 | split(valueOrErrorMessage(getString(this, swapKey), ("no swap data for " + swapKey)), SEP) | |
376 | 382 | } | |
377 | 383 | ||
378 | 384 | ||
379 | 385 | func applyFees (amountOutGross,inAmtToSURF,feePart) = { | |
380 | 386 | let feeAmount = fraction(amountOutGross, feePart, PAULI) | |
381 | 387 | [(amountOutGross - feeAmount), feeAmount] | |
382 | 388 | } | |
383 | 389 | ||
384 | 390 | ||
385 | 391 | func abs (x) = if ((0 > x)) | |
386 | 392 | then -(x) | |
387 | 393 | else x | |
388 | 394 | ||
389 | 395 | ||
390 | 396 | func selectNode (unleaseAmount) = { | |
391 | 397 | let amountToLease = ((wavesBalance(neutrinoContract).available - unleaseAmount) - getReservedAmountForSponsorship()) | |
392 | 398 | let oldLeased0 = getNumberByKey(getLeaseAmountKey(0)) | |
393 | 399 | let oldLeased1 = getNumberByKey(getLeaseAmountKey(1)) | |
394 | 400 | let newLeased0 = (amountToLease + oldLeased0) | |
395 | 401 | let newLeased1 = (amountToLease + oldLeased1) | |
396 | 402 | if (if ((newLeased0 > 0)) | |
397 | 403 | then true | |
398 | 404 | else (newLeased1 > 0)) | |
399 | 405 | then { | |
400 | 406 | let delta0 = abs((newLeased0 - oldLeased1)) | |
401 | 407 | let delta1 = abs((newLeased1 - oldLeased0)) | |
402 | 408 | if ((delta1 >= delta0)) | |
403 | 409 | then $Tuple2(0, newLeased0) | |
404 | 410 | else $Tuple2(1, newLeased1) | |
405 | 411 | } | |
406 | 412 | else $Tuple2(-1, 0) | |
407 | 413 | } | |
408 | 414 | ||
409 | 415 | ||
410 | 416 | func thisOnly (i) = if ((i.caller != this)) | |
411 | 417 | then throw("Permission denied: this contract only allowed") | |
412 | 418 | else true | |
413 | 419 | ||
414 | 420 | ||
415 | 421 | func prepareUnleaseAndLease (unleaseAmount) = { | |
416 | 422 | let nodeTuple = selectNode(unleaseAmount) | |
417 | 423 | let nodeIndex = nodeTuple._1 | |
418 | 424 | let newLeaseAmount = nodeTuple._2 | |
419 | 425 | if ((newLeaseAmount > 0)) | |
420 | 426 | then { | |
421 | 427 | let leaseIdKey = getLeaseIdKey(nodeIndex) | |
422 | 428 | let oldLease = getBinary(this, leaseIdKey) | |
423 | 429 | let unleaseOrEmpty = if (isDefined(oldLease)) | |
424 | 430 | then [LeaseCancel(value(oldLease))] | |
425 | 431 | else nil | |
426 | 432 | let leaseAmountKey = getLeaseAmountKey(nodeIndex) | |
427 | 433 | let lease = Lease(getStakingNodeAddressByIndex(nodeIndex), newLeaseAmount) | |
428 | 434 | (unleaseOrEmpty ++ [lease, BinaryEntry(leaseIdKey, lcalc(lease)), IntegerEntry(getLeaseAmountKey(nodeIndex), newLeaseAmount)]) | |
429 | 435 | } | |
430 | 436 | else nil | |
431 | 437 | } | |
432 | 438 | ||
433 | 439 | ||
434 | 440 | func readNodeInfo (nodeIdx) = { | |
435 | 441 | let nodeAddress = getStakingNodeAddressByIndex(nodeIdx) | |
436 | 442 | let leasedAmtKEY = getLeaseAmountKey(nodeIdx) | |
437 | 443 | let leasedAmt = getNumberByKey(leasedAmtKEY) | |
438 | 444 | let leaseIdKEY = getLeaseIdKey(nodeIdx) | |
439 | 445 | let leaseId = value(getBinary(this, leaseIdKEY)) | |
440 | 446 | $Tuple5(nodeAddress, leasedAmtKEY, leasedAmt, leaseIdKEY, leaseId) | |
441 | 447 | } | |
442 | 448 | ||
443 | 449 | ||
444 | 450 | func commonSwap (swapType,pmtAmount,userAddressStr,txId58,swapParamsByUserSYSREADONLY) = { | |
445 | 451 | let swapLimitSpent = swapParamsByUserSYSREADONLY._2 | |
446 | 452 | let blcks2LmtReset = swapParamsByUserSYSREADONLY._3 | |
447 | 453 | let wavesSwapLimitMax = swapParamsByUserSYSREADONLY._6 | |
448 | 454 | let usdnSwapLimitMax = swapParamsByUserSYSREADONLY._7 | |
449 | 455 | let minSwapAmount = minSwapAmountREAD(swapType) | |
450 | 456 | let totalLocked = totalLockedREAD(swapType) | |
451 | 457 | let totalLockedByUser = totalLockedByUserREAD(swapType, userAddressStr) | |
452 | 458 | let nodeAddress = getStakingNodeByIndex(0) | |
453 | 459 | let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex)) | |
454 | 460 | let isSwapByNode = (nodeAddress == userAddressStr) | |
455 | 461 | let balanceLockMaxInterval = if (isSwapByNode) | |
456 | 462 | then nodeBalanceLockIntervalREAD() | |
457 | 463 | else balanceLockIntervalREAD(swapType) | |
458 | 464 | let selfUnlockHeight = (height + balanceLockMaxInterval) | |
459 | 465 | let swapUsdnVolume = if ((swapType == "neutrino")) | |
460 | 466 | then pmtAmount | |
461 | 467 | else convertWavesToNeutrino(pmtAmount, priceByIndex) | |
462 | 468 | let swapLimitMax = if ((swapType == "neutrino")) | |
463 | 469 | then usdnSwapLimitMax | |
464 | 470 | else convertWavesToNeutrino(wavesSwapLimitMax, priceByIndex) | |
465 | 471 | if ((minSwapAmount > pmtAmount)) | |
466 | 472 | then minSwapAmountFAIL(swapType, minSwapAmount) | |
467 | 473 | else if (if (!(isSwapByNode)) | |
468 | 474 | then (swapLimitSpent > 0) | |
469 | 475 | else false) | |
470 | 476 | then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + blcks2LmtReset)))) | |
471 | 477 | else if (if (!(isSwapByNode)) | |
472 | 478 | then (swapUsdnVolume > swapLimitMax) | |
473 | 479 | else false) | |
474 | 480 | then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimitMax))) | |
475 | 481 | else if (isBlocked) | |
476 | 482 | then emergencyShutdownFAIL() | |
477 | 483 | else { | |
478 | 484 | let leasePart = if ((swapType == "waves")) | |
479 | 485 | then prepareUnleaseAndLease(0) | |
480 | 486 | else nil | |
481 | 487 | $Tuple2(([IntegerEntry(keySwapUserSpentInPeriod(userAddressStr), swapUsdnVolume), IntegerEntry(keyUserLastSwapHeight(userAddressStr), height), IntegerEntry(totalLockedByUserKEY(swapType, userAddressStr), (totalLockedByUser + pmtAmount)), IntegerEntry(getBalanceUnlockBlockKey(userAddressStr), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType), (totalLocked + pmtAmount)), StringEntry(swapKEY(userAddressStr, txId58), pendingSwapDATA(swapType, pmtAmount, selfUnlockHeight))] ++ leasePart), unit) | |
482 | 488 | } | |
483 | 489 | } | |
484 | 490 | ||
485 | 491 | ||
486 | 492 | let nMetricIdxPrice = 0 | |
487 | 493 | ||
488 | 494 | let nMetricIdxUsdnLockedBalance = 1 | |
489 | 495 | ||
490 | 496 | let nMetricIdxWavesLockedBalance = 2 | |
491 | 497 | ||
492 | 498 | let nMetricIdxReserve = 3 | |
493 | 499 | ||
494 | 500 | let nMetricIdxReserveInUsdn = 4 | |
495 | 501 | ||
496 | 502 | let nMetricIdxUsdnSupply = 5 | |
497 | 503 | ||
498 | 504 | let nMetricIdxSurplus = 6 | |
499 | 505 | ||
500 | 506 | let nMetricIdxSurplusPercent = 7 | |
501 | 507 | ||
502 | 508 | let nMetricIdxBR = 8 | |
503 | 509 | ||
504 | 510 | let nMetricIdxNsbtSupply = 9 | |
505 | 511 | ||
506 | 512 | let nMetricIdxMaxNsbtSupply = 10 | |
507 | 513 | ||
508 | 514 | let nMetricIdxSurfSupply = 11 | |
509 | 515 | ||
510 | 516 | let bFuncIdxSurf = 0 | |
511 | 517 | ||
512 | 518 | let bFuncIdxWaves = 1 | |
513 | 519 | ||
514 | 520 | let bFuncIdxUsdn = 2 | |
515 | 521 | ||
516 | 522 | let bFuncIdxReserveStart = 3 | |
517 | 523 | ||
518 | 524 | let bFuncIdxSupplyStart = 4 | |
519 | 525 | ||
520 | 526 | let bFuncIdxBRStart = 5 | |
521 | 527 | ||
522 | 528 | let bFuncIdxReserveEnd = 6 | |
523 | 529 | ||
524 | 530 | let bFuncIdxSupplyEnd = 7 | |
525 | 531 | ||
526 | 532 | let bFuncIdxBREnd = 8 | |
527 | 533 | ||
528 | 534 | let bFuncIdxRest = 9 | |
529 | 535 | ||
530 | 536 | let bFuncIdxWavesPrice = 10 | |
531 | 537 | ||
532 | 538 | func calcWithdrawW2U (wavesIn,price) = { | |
533 | 539 | let outAmtGross = convertWavesToNeutrino(wavesIn, price) | |
534 | 540 | $Tuple9(outAmtGross, neutrinoAssetId, 0, unit, 0, wavesIn, 0, 0, 0) | |
535 | 541 | } | |
536 | 542 | ||
537 | 543 | ||
538 | 544 | func calcWithdrawU2W (usdnIn,price,br,reservesInUsdn,usdnSupply) = { | |
539 | 545 | let brProtected = valueOrElse(getInteger(this, brProtectedKEY()), BRPROTECTED) | |
540 | 546 | let maxAllowedUsdnBeforeMinBr = if ((brProtected >= br)) | |
541 | 547 | then 0 | |
542 | 548 | else fraction((reservesInUsdn - fraction(brProtected, usdnSupply, PAULI)), PAULI, (PAULI - brProtected)) | |
543 | 549 | let allowedUsdnBeforeMinBr = if ((usdnIn > maxAllowedUsdnBeforeMinBr)) | |
544 | 550 | then maxAllowedUsdnBeforeMinBr | |
545 | 551 | else usdnIn | |
546 | 552 | let allowedUsdnAfterMinBr = if ((usdnIn > maxAllowedUsdnBeforeMinBr)) | |
547 | 553 | then fraction((usdnIn - maxAllowedUsdnBeforeMinBr), br, PAULI) | |
548 | 554 | else 0 | |
549 | 555 | let allowedUsdn = (allowedUsdnBeforeMinBr + allowedUsdnAfterMinBr) | |
550 | 556 | let usdn2SURF = (usdnIn - allowedUsdn) | |
551 | 557 | let outAmtGross = convertNeutrinoToWaves(allowedUsdn, price) | |
552 | 558 | $Tuple9(outAmtGross, unit, usdn2SURF, neutrinoAssetId, outAmtGross, allowedUsdn, maxAllowedUsdnBeforeMinBr, allowedUsdnBeforeMinBr, allowedUsdnAfterMinBr) | |
553 | 559 | } | |
554 | 560 | ||
555 | 561 | ||
556 | 562 | func calcWithdraw (swapType,inAmount,price,neutrinoMetrics) = { | |
557 | 563 | let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE) | |
558 | 564 | if (if ((0 > outFeePart)) | |
559 | 565 | then true | |
560 | 566 | else (outFeePart >= PAULI)) | |
561 | 567 | then throw(((("invalid outFeePart config for " + swapType) + " swap: outFeePart=") + toString(outFeePart))) | |
562 | 568 | else { | |
563 | 569 | let brProtected = valueOrElse(getInteger(this, brProtectedKEY()), BRPROTECTED) | |
564 | 570 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
565 | 571 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
566 | 572 | let usdnSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
567 | 573 | let outDataTuple = if ((swapType == "waves")) | |
568 | 574 | then calcWithdrawW2U(inAmount, price) | |
569 | 575 | else if ((swapType == "neutrino")) | |
570 | 576 | then calcWithdrawU2W(inAmount, price, BR, reservesInUsdn, usdnSupply) | |
571 | 577 | else throw(("Unsupported swap type " + swapType)) | |
572 | 578 | let outAmtGross = outDataTuple._1 | |
573 | 579 | let outAssetId = outDataTuple._2 | |
574 | 580 | let inAmtToSurfPart = outDataTuple._3 | |
575 | 581 | let inAssetId = outDataTuple._4 | |
576 | 582 | let unleaseAmt = outDataTuple._5 | |
577 | 583 | let payoutsArray = applyFees(outAmtGross, inAmtToSurfPart, outFeePart) | |
578 | 584 | let outNetAmt = payoutsArray[IdxNetAmount] | |
579 | 585 | let outFeeAmt = payoutsArray[IdxFeeAmount] | |
580 | 586 | let outSurfAmt = if ((0 >= inAmtToSurfPart)) | |
581 | 587 | then 0 | |
582 | 588 | else { | |
583 | 589 | let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [inAmtToSurfPart, inAssetId], nil)) | |
584 | 590 | asInt(surfResult[bFuncIdxSurf]) | |
585 | 591 | } | |
586 | 592 | $Tuple7(outNetAmt, outAssetId, outSurfAmt, inAmtToSurfPart, unleaseAmt, outFeeAmt, outAmtGross) | |
587 | 593 | } | |
588 | 594 | } | |
589 | 595 | ||
590 | 596 | ||
591 | 597 | func commonWithdraw (account,index,swapTxId,withdrawTxId,neutrinoMetrics) = { | |
592 | 598 | let userAddress = addressFromStringValue(account) | |
593 | 599 | let dataArray = swapDataFailOrREAD(account, swapTxId) | |
594 | 600 | let selfUnlockHeight = parseIntValue(dataArray[sIdxSelfUnlockHeight]) | |
595 | 601 | let swapType = dataArray[sIdxSwapType] | |
596 | 602 | let inAmount = parseIntValue(dataArray[sIdxInAmount]) | |
597 | 603 | let swapStatus = dataArray[sIdxStatus] | |
598 | 604 | let startHeight = parseIntValue(dataArray[sIdxStartHeight]) | |
599 | 605 | let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE) | |
600 | 606 | let totalLocked = totalLockedREAD(swapType) | |
601 | 607 | let totalLockedByUser = totalLockedByUserREAD(swapType, account) | |
602 | 608 | let unlockHeight = selfUnlockHeight | |
603 | 609 | let indexHeight = getHeightPriceByIndex(index) | |
604 | 610 | let prevIndexHeight = getHeightPriceByIndex((index - 1)) | |
605 | 611 | let priceByIndex = getPriceHistory(indexHeight) | |
606 | 612 | if (isBlocked) | |
607 | 613 | then emergencyShutdownFAIL() | |
608 | 614 | else if ((swapStatus != "PENDING")) | |
609 | 615 | then throw("swap has been already processed") | |
610 | 616 | else if ((unlockHeight > height)) | |
611 | 617 | then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw funds")) | |
612 | 618 | else if (if (if ((index > priceIndex)) | |
613 | 619 | then true | |
614 | 620 | else (unlockHeight > indexHeight)) | |
615 | 621 | then true | |
616 | 622 | else if ((prevIndexHeight != 0)) | |
617 | 623 | then (prevIndexHeight >= unlockHeight) | |
618 | 624 | else false) | |
619 | 625 | then priceIndexFAIL(index, priceIndex, indexHeight, unlockHeight, prevIndexHeight) | |
620 | 626 | else { | |
621 | 627 | let withdrawTuple = calcWithdraw(swapType, inAmount, priceByIndex, neutrinoMetrics) | |
622 | 628 | let outNetAmount = withdrawTuple._1 | |
623 | 629 | let outAssetId = withdrawTuple._2 | |
624 | 630 | let outSurfAmt = withdrawTuple._3 | |
625 | 631 | let inAmtToSurfPart = withdrawTuple._4 | |
626 | 632 | let unleaseAmt = withdrawTuple._5 | |
627 | 633 | let outFeeAmount = withdrawTuple._6 | |
628 | 634 | let outAmtGross = withdrawTuple._7 | |
629 | 635 | if ((0 >= outAmtGross)) | |
630 | 636 | then throw("balance equals zero") | |
631 | 637 | else { | |
632 | 638 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
633 | 639 | let state = [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAssetId), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, priceByIndex, outNetAmount, outFeeAmount, unlockHeight, index, withdrawTxId, outSurfAmt, BR))] | |
634 | 640 | let surfCondition = if ((outSurfAmt > 0)) | |
635 | 641 | then { | |
636 | 642 | let issueResult = invoke(auctionContract, "issueSurf", [outSurfAmt, account], nil) | |
637 | 643 | if ((issueResult == issueResult)) | |
638 | 644 | then 0 | |
639 | 645 | else throw("Strict value is not equal to itself.") | |
640 | 646 | } | |
641 | 647 | else 0 | |
642 | 648 | if ((surfCondition == surfCondition)) | |
643 | 649 | then $Tuple3(state, AttachedPayment(outAssetId, outFeeAmount), unleaseAmt) | |
644 | 650 | else throw("Strict value is not equal to itself.") | |
645 | 651 | } | |
646 | 652 | } | |
647 | 653 | } | |
648 | 654 | ||
649 | 655 | ||
650 | 656 | @Callable(i) | |
651 | 657 | func constructor (neutrinoAssetIdPrm,bondAssetIdPrm,auctionContractPrm,liquidationContractPrm,rpdContractPrm,nodeOracleProviderPubKeyPrm,balanceWavesLockIntervalPrm,balanceNeutrinoLockIntervalPrm,minWavesSwapAmountPrm,minNeutrinoSwapAmountPrm,neutrinoOutFeePartPrm,wavesOutFeePartPrm) = { | |
652 | 658 | let checkCaller = thisOnly(i) | |
653 | 659 | if ((checkCaller == checkCaller)) | |
654 | 660 | then if ((size(i.payments) != 0)) | |
655 | 661 | then throw("no payments allowed") | |
656 | 662 | else [StringEntry(NeutrinoAssetIdKey, neutrinoAssetIdPrm), StringEntry(BondAssetIdKey, bondAssetIdPrm), StringEntry(AuctionContractKey, auctionContractPrm), StringEntry(LiquidationContractKey, liquidationContractPrm), StringEntry(RPDContractKey, rpdContractPrm), StringEntry(NodeOracleProviderPubKeyKey, nodeOracleProviderPubKeyPrm), IntegerEntry(BalanceWavesLockIntervalKey, balanceWavesLockIntervalPrm), IntegerEntry(BalanceNeutrinoLockIntervalKey, balanceNeutrinoLockIntervalPrm), IntegerEntry(MinWavesSwapAmountKey, minWavesSwapAmountPrm), IntegerEntry(MinNeutrinoSwapAmountKey, minNeutrinoSwapAmountPrm), IntegerEntry(NeutrinoOutFeePartKey, neutrinoOutFeePartPrm), IntegerEntry(WavesOutFeePartKey, wavesOutFeePartPrm)] | |
657 | 663 | else throw("Strict value is not equal to itself.") | |
658 | 664 | } | |
659 | 665 | ||
660 | 666 | ||
661 | 667 | ||
662 | 668 | @Callable(i) | |
663 | 669 | func constructorV2 (mathContract,nsbtStakingContract,swapsTimeframeBlocks) = { | |
664 | 670 | let checkCaller = thisOnly(i) | |
665 | 671 | if ((checkCaller == checkCaller)) | |
666 | 672 | then if ((size(i.payments) != 0)) | |
667 | 673 | then throw("no payments allowed") | |
668 | 674 | else [StringEntry(MathContractKey, mathContract), StringEntry(NsbtStakingContractKey, nsbtStakingContract), IntegerEntry(swapsTimeframeKEY(), swapsTimeframeBlocks)] | |
669 | 675 | else throw("Strict value is not equal to itself.") | |
670 | 676 | } | |
671 | 677 | ||
672 | 678 | ||
673 | 679 | ||
674 | 680 | @Callable(i) | |
675 | 681 | func swapWavesToNeutrino () = if ((size(i.payments) != 1)) | |
676 | 682 | then throw("swapWavesToNeutrino require only one payment") | |
677 | 683 | else { | |
678 | 684 | let pmt = value(i.payments[0]) | |
679 | 685 | if (isDefined(pmt.assetId)) | |
680 | 686 | then throw("Only Waves token is allowed for swapping.") | |
681 | 687 | else { | |
682 | 688 | let userAddress = toString(i.caller) | |
683 | 689 | let txId58 = toBase58String(i.transactionId) | |
684 | 690 | let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil)) | |
685 | 691 | let commonSwapResult = commonSwap("waves", pmt.amount, userAddress, txId58, swapParamsSTRUCT) | |
686 | 692 | commonSwapResult | |
687 | 693 | } | |
688 | 694 | } | |
689 | 695 | ||
690 | 696 | ||
691 | 697 | ||
692 | 698 | @Callable(i) | |
693 | 699 | func swapNeutrinoToWaves () = if ((size(i.payments) != 1)) | |
694 | 700 | then throw("swapNeutrinoToWaves require only one payment") | |
695 | 701 | else { | |
696 | 702 | let pmt = value(i.payments[0]) | |
697 | 703 | if ((pmt.assetId != neutrinoAssetId)) | |
698 | 704 | then throw("Only appropriate Neutrino tokens are allowed for swapping.") | |
699 | 705 | else { | |
700 | 706 | let userAddress = toString(i.caller) | |
701 | 707 | let txId58 = toBase58String(i.transactionId) | |
702 | 708 | let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil)) | |
703 | 709 | let commonSwapResult = commonSwap("neutrino", pmt.amount, userAddress, txId58, swapParamsSTRUCT) | |
704 | 710 | commonSwapResult | |
705 | 711 | } | |
706 | 712 | } | |
707 | 713 | ||
708 | 714 | ||
709 | 715 | ||
710 | 716 | @Callable(i) | |
711 | 717 | func withdraw (account,index,swapTxId) = { | |
712 | 718 | let txId = toBase58String(i.transactionId) | |
713 | 719 | if ((size(i.payments) != 0)) | |
714 | 720 | then throw("no payments allowed") | |
715 | 721 | else { | |
716 | 722 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
717 | 723 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
718 | 724 | let commonTuple = commonWithdraw(account, index, swapTxId, txId, neutrinoMetrics) | |
719 | 725 | let state = commonTuple._1 | |
720 | 726 | let fee = commonTuple._2 | |
721 | 727 | let unleaseAmt = commonTuple._3 | |
722 | 728 | let unleaseInvOrEmpty = invoke(this, "internalUnleaseAndLease", [unleaseAmt], nil) | |
723 | 729 | if ((unleaseInvOrEmpty == unleaseInvOrEmpty)) | |
724 | 730 | then { | |
725 | 731 | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil)) | |
726 | 732 | let gnsbtAmtTotal = asInt(gnsbtData[1]) | |
727 | 733 | let gnsbtAmtFromSurfTotal = asInt(asAnyList(gnsbtData[3])[3]) | |
728 | 734 | let surfFeeAmt1 = if ((gnsbtAmtTotal != 0)) | |
729 | 735 | then fraction(fee.amount, gnsbtAmtFromSurfTotal, gnsbtAmtTotal) | |
730 | 736 | else 0 | |
731 | 737 | let surfFeeAmt2 = if ((gnsbtAmtTotal != 0)) | |
732 | 738 | then fraction(fee.amount, (PAULI - BR), PAULI) | |
733 | 739 | else 0 | |
734 | 740 | let surfFeeAmt = max([surfFeeAmt1, surfFeeAmt2]) | |
735 | 741 | let nsbtFeeAmt = (fee.amount - surfFeeAmt) | |
736 | 742 | let surfDeposit = if ((surfFeeAmt > 0)) | |
737 | 743 | then { | |
738 | 744 | let surfInv = invoke(surfStakingContract, "deposit", nil, [AttachedPayment(fee.assetId, surfFeeAmt)]) | |
739 | 745 | if ((surfInv == surfInv)) | |
740 | 746 | then nil | |
741 | 747 | else throw("Strict value is not equal to itself.") | |
742 | 748 | } | |
743 | 749 | else nil | |
744 | 750 | if ((surfDeposit == surfDeposit)) | |
745 | 751 | then { | |
746 | 752 | let nsbtDeposit = if ((nsbtFeeAmt > 0)) | |
747 | 753 | then { | |
748 | 754 | let nsbtInv = invoke(nsbtStakingContract, "deposit", nil, [AttachedPayment(fee.assetId, nsbtFeeAmt)]) | |
749 | 755 | if ((nsbtInv == nsbtInv)) | |
750 | 756 | then nil | |
751 | 757 | else throw("Strict value is not equal to itself.") | |
752 | 758 | } | |
753 | 759 | else nil | |
754 | 760 | if ((nsbtDeposit == nsbtDeposit)) | |
755 | 761 | then state | |
756 | 762 | else throw("Strict value is not equal to itself.") | |
757 | 763 | } | |
758 | 764 | else throw("Strict value is not equal to itself.") | |
759 | 765 | } | |
760 | 766 | else throw("Strict value is not equal to itself.") | |
761 | 767 | } | |
762 | 768 | } | |
763 | 769 | ||
764 | 770 | ||
765 | 771 | ||
766 | 772 | @Callable(i) | |
767 | 773 | func internalUnleaseAndLease (unleaseAmount) = if ((i.caller != this)) | |
768 | 774 | then throw("internalUnleaseAndLease is not public method") | |
769 | 775 | else prepareUnleaseAndLease(unleaseAmount) | |
770 | 776 | ||
771 | 777 | ||
772 | 778 | ||
773 | 779 | @Callable(i) | |
774 | 780 | func transferUsdnToUser (amount,addr) = if ((i.caller != auctionContract)) | |
775 | 781 | then throw("Only auction contract is authorized") | |
776 | 782 | else [ScriptTransfer(addressFromStringValue(addr), amount, neutrinoAssetId)] | |
777 | 783 | ||
778 | 784 | ||
779 | 785 | ||
780 | 786 | @Callable(i) | |
781 | - | func acceptWaves () = if ((i.caller != auctionContract)) | |
782 | - | then throw("Currently only auction contract is allowed to call") | |
787 | + | func acceptWaves () = if (if ((i.caller != auctionContract)) | |
788 | + | then (i.caller != governanceContract) | |
789 | + | else false) | |
790 | + | then throw("Currently only auction and governance contracts are allowed to call") | |
783 | 791 | else $Tuple2(prepareUnleaseAndLease(0), "success") | |
784 | 792 | ||
785 | 793 | ||
786 | 794 | ||
787 | 795 | @Callable(i) | |
788 | 796 | func approveLeasings (nListS,groupNum,lAmt) = { | |
789 | 797 | let nIdxs = [0, 1, 2, 3, 4, 5, 6, 7] | |
790 | 798 | let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
791 | 799 | let mngPub = fromBase58String(mngPubS) | |
792 | 800 | let nodeRegAddrStr = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE") | |
793 | 801 | let nodeRegAddr = addressFromStringValue(nodeRegAddrStr) | |
794 | 802 | let lGroupNodeListKEY = getLeaseGroupNodeListKey(groupNum) | |
795 | 803 | let lGrNodeOpt = getString(this, lGroupNodeListKEY) | |
796 | 804 | if (isDefined(lGrNodeOpt)) | |
797 | 805 | then throw((("group " + toString(groupNum)) + " already initialized")) | |
798 | 806 | else { | |
799 | 807 | let nList = split(nListS, SEP) | |
800 | 808 | let expCount = size(nIdxs) | |
801 | 809 | if ((i.callerPublicKey != mngPub)) | |
802 | 810 | then throw("approveLeasings not authorized") | |
803 | 811 | else { | |
804 | - | let $ | |
805 | - | let nAddr0 = $ | |
806 | - | let lAmtKEY0 = $ | |
807 | - | let lAmt0 = $ | |
808 | - | let lIdKEY0 = $ | |
809 | - | let lId0 = $ | |
812 | + | let $t03469534757 = readNodeInfo(0) | |
813 | + | let nAddr0 = $t03469534757._1 | |
814 | + | let lAmtKEY0 = $t03469534757._2 | |
815 | + | let lAmt0 = $t03469534757._3 | |
816 | + | let lIdKEY0 = $t03469534757._4 | |
817 | + | let lId0 = $t03469534757._5 | |
810 | 818 | let newL0 = Lease(nAddr0, (lAmt0 - (lAmt * expCount))) | |
811 | 819 | let validation = invoke(nodeRegAddr, "validateAndApproveLeasings", [nListS], nil) | |
812 | 820 | if ((validation == validation)) | |
813 | 821 | then { | |
814 | 822 | func forEachNodeValidateAndGenerateLease (a,i) = { | |
815 | 823 | let node = nList[i] | |
816 | 824 | let la = Lease(addressFromStringValue(node), lAmt) | |
817 | 825 | (a ++ [la, BinaryEntry(getLeaseIdByAddressKey(node), lcalc(la)), IntegerEntry(getLeaseAmountByAddressKey(node), lAmt)]) | |
818 | 826 | } | |
819 | 827 | ||
820 | 828 | ([StringEntry(lGroupNodeListKEY, nListS), BinaryEntry(lIdKEY0, lcalc(newL0)), IntegerEntry(lAmtKEY0, newL0.amount), LeaseCancel(lId0), newL0] ++ { | |
821 | 829 | let $l = nIdxs | |
822 | 830 | let $s = size($l) | |
823 | 831 | let $acc0 = nil | |
824 | 832 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
825 | 833 | then $a | |
826 | 834 | else forEachNodeValidateAndGenerateLease($a, $l[$i]) | |
827 | 835 | ||
828 | 836 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
829 | 837 | then $a | |
830 | 838 | else throw("List size exceeds 8") | |
831 | 839 | ||
832 | 840 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
833 | 841 | }) | |
834 | 842 | } | |
835 | 843 | else throw("Strict value is not equal to itself.") | |
836 | 844 | } | |
837 | 845 | } | |
838 | 846 | } | |
839 | 847 | ||
840 | 848 | ||
841 | 849 | ||
842 | 850 | @Callable(i) | |
843 | 851 | func rebalanceLeasings (amount,groupNum) = { | |
844 | 852 | let nIdxs = [0, 1, 2, 3, 4, 5, 6, 7] | |
845 | 853 | let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
846 | 854 | let mngPub = fromBase58String(mngPubS) | |
847 | 855 | let lGroupNodeListKEY = getLeaseGroupNodeListKey(groupNum) | |
848 | 856 | let nListS = getStringOrFail(this, lGroupNodeListKEY) | |
849 | 857 | let nList = split(nListS, SEP) | |
850 | 858 | if ((i.callerPublicKey != mngPub)) | |
851 | 859 | then throw("rebalanceLeasings not authorized") | |
852 | 860 | else { | |
853 | 861 | let unleaseAmt = ((amount / size(nList)) + 1) | |
854 | - | let $ | |
855 | - | let nAddr0 = $ | |
856 | - | let lAmtKEY0 = $ | |
857 | - | let lAmt0 = $ | |
858 | - | let lIdKEY0 = $ | |
859 | - | let lId0 = $ | |
862 | + | let $t03599736059 = readNodeInfo(0) | |
863 | + | let nAddr0 = $t03599736059._1 | |
864 | + | let lAmtKEY0 = $t03599736059._2 | |
865 | + | let lAmt0 = $t03599736059._3 | |
866 | + | let lIdKEY0 = $t03599736059._4 | |
867 | + | let lId0 = $t03599736059._5 | |
860 | 868 | let newL0 = Lease(nAddr0, (lAmt0 + (unleaseAmt * size(nList)))) | |
861 | 869 | func forEachNodeDoUnlease (a,i) = { | |
862 | 870 | let node = nList[i] | |
863 | 871 | let lIdKEY = getLeaseIdByAddressKey(node) | |
864 | 872 | let lId = getBinaryValue(this, lIdKEY) | |
865 | 873 | let lAmtKEY = getLeaseAmountByAddressKey(node) | |
866 | 874 | let lAmt = getIntegerValue(this, lAmtKEY) | |
867 | 875 | let ula = LeaseCancel(value(lId)) | |
868 | 876 | let la = Lease(addressFromStringValue(node), (lAmt - unleaseAmt)) | |
869 | 877 | (a ++ [LeaseCancel(value(lId)), la, BinaryEntry(lIdKEY, lcalc(la)), IntegerEntry(lAmtKEY, la.amount)]) | |
870 | 878 | } | |
871 | 879 | ||
872 | 880 | ({ | |
873 | 881 | let $l = nIdxs | |
874 | 882 | let $s = size($l) | |
875 | 883 | let $acc0 = nil | |
876 | 884 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
877 | 885 | then $a | |
878 | 886 | else forEachNodeDoUnlease($a, $l[$i]) | |
879 | 887 | ||
880 | 888 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
881 | 889 | then $a | |
882 | 890 | else throw("List size exceeds 8") | |
883 | 891 | ||
884 | 892 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
885 | 893 | } ++ [BinaryEntry(lIdKEY0, lcalc(newL0)), IntegerEntry(lAmtKEY0, newL0.amount), LeaseCancel(lId0), newL0]) | |
886 | 894 | } | |
887 | 895 | } | |
888 | 896 | ||
889 | 897 | ||
890 | 898 | ||
891 | 899 | @Callable(i) | |
892 | 900 | func swapParamsByUserSYSREADONLY (userAddressStr,gnsbtDiff) = { | |
893 | 901 | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil)) | |
894 | 902 | let gnsbtAmt = (asInt(gnsbtData[0]) + gnsbtDiff) | |
895 | 903 | let gnsbtAmtTotal = (asInt(gnsbtData[1]) + gnsbtDiff) | |
896 | 904 | let swapLimitData = asAnyList(invoke(mathContract, "calcSwapLimitREADONLY", [gnsbtAmt], nil)) | |
897 | 905 | let wavesSwapLimitInUsdnMax = asInt(swapLimitData[0]) | |
898 | 906 | let wavesSwapLimitMax = asInt(swapLimitData[1]) | |
899 | 907 | let usdnSwapLimitMax = asInt(swapLimitData[2]) | |
900 | 908 | let lastSwapHeight = valueOrElse(getInteger(this, keyUserLastSwapHeight(userAddressStr)), 0) | |
901 | 909 | let swapLimitTimelifeBlocks = swapsTimeframeREAD() | |
902 | 910 | let passedBlocksAfterLastSwap = (height - lastSwapHeight) | |
903 | 911 | let isSwapTimelifeNew = (passedBlocksAfterLastSwap >= swapLimitTimelifeBlocks) | |
904 | 912 | let swapLimitSpentInUsdn = if (isSwapTimelifeNew) | |
905 | 913 | then 0 | |
906 | 914 | else valueOrElse(getInteger(this, keySwapUserSpentInPeriod(userAddressStr)), 0) | |
907 | 915 | let blcks2LmtReset = if (isSwapTimelifeNew) | |
908 | 916 | then 0 | |
909 | 917 | else (swapLimitTimelifeBlocks - passedBlocksAfterLastSwap) | |
910 | 918 | $Tuple2(nil, $Tuple7(wavesSwapLimitInUsdnMax, swapLimitSpentInUsdn, blcks2LmtReset, gnsbtAmt, gnsbtAmtTotal, wavesSwapLimitMax, usdnSwapLimitMax)) | |
911 | 919 | } | |
912 | 920 | ||
913 | 921 | ||
914 | 922 | ||
915 | 923 | @Callable(i) | |
916 | 924 | func calcWithdrawResultSYSREADONLY (swapType,inAmount,price) = { | |
917 | 925 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
918 | 926 | $Tuple2(nil, calcWithdraw(swapType, inAmount, price, neutrinoMetrics)) | |
919 | 927 | } | |
920 | 928 | ||
921 | 929 | ||
922 | 930 | ||
923 | 931 | @Callable(i) | |
924 | 932 | func replaceCommunityNode (oldAddrStr,newAddrStr,groupNum,penaltyAmount) = { | |
925 | 933 | let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur") | |
926 | 934 | let mngPub = fromBase58String(mngPubS) | |
927 | 935 | if ((i.callerPublicKey != mngPub)) | |
928 | 936 | then throw("replaceCommunityNode not authorized") | |
929 | 937 | else { | |
930 | 938 | let groupKey = getLeaseGroupNodeListKey(groupNum) | |
931 | 939 | let groupNodeListS = getStringOrFail(this, groupKey) | |
932 | 940 | if (!(contains(groupNodeListS, oldAddrStr))) | |
933 | 941 | then throw(((("Group " + toString(groupNum)) + " does not contain address ") + oldAddrStr)) | |
934 | 942 | else { | |
935 | 943 | let doReplace = invoke(nodeRegistryContract, "replaceApprovedNode", [oldAddrStr, newAddrStr, groupNum, penaltyAmount], nil) | |
936 | 944 | if ((doReplace == doReplace)) | |
937 | 945 | then { | |
938 | 946 | let oldLeaseIdKey = getLeaseIdByAddressKey(oldAddrStr) | |
939 | 947 | let oldLeaseAmtKey = getLeaseAmountByAddressKey(oldAddrStr) | |
940 | 948 | let leaseAmt = getIntegerValue(oldLeaseAmtKey) | |
941 | 949 | let newLeaseIdKey = getLeaseIdByAddressKey(oldAddrStr) | |
942 | 950 | let newLeaseAmtKey = getLeaseAmountByAddressKey(oldAddrStr) | |
943 | 951 | let newLease = Lease(addressFromStringValue(newAddrStr), leaseAmt) | |
944 | 952 | let updatedGroupNodeListS = makeString(split(groupNodeListS, oldAddrStr), newAddrStr) | |
945 | 953 | $Tuple2([LeaseCancel(getBinaryValue(oldLeaseIdKey)), DeleteEntry(oldLeaseIdKey), DeleteEntry(oldLeaseAmtKey), StringEntry(groupKey, updatedGroupNodeListS), newLease, BinaryEntry(newLeaseIdKey, lcalc(newLease)), IntegerEntry(newLeaseAmtKey, leaseAmt)], unit) | |
946 | 954 | } | |
947 | 955 | else throw("Strict value is not equal to itself.") | |
948 | 956 | } | |
949 | 957 | } | |
950 | 958 | } | |
951 | 959 | ||
952 | 960 | ||
953 | 961 | ||
954 | 962 | @Callable(i) | |
955 | 963 | func updateReservesAndNeutrinoSupply () = { | |
956 | 964 | func getNumberByKeyInternal (key) = match getInteger(this, key) { | |
957 | 965 | case a: Int => | |
958 | 966 | a | |
959 | 967 | case _ => | |
960 | 968 | 0 | |
961 | 969 | } | |
962 | 970 | ||
963 | 971 | let nMetrix = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
964 | 972 | let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx") | |
965 | 973 | let newIdx = (idx + 1) | |
966 | 974 | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), IntegerEntry("reserve", asInt(nMetrix[3])), IntegerEntry("neutrinoSupply", asInt(nMetrix[5])), IntegerEntry("reservesInUsdn", convertWavesToNeutrino(asInt(nMetrix[3]), asInt(nMetrix[0]))), IntegerEntry("surplus", asInt(nMetrix[6])), IntegerEntry("deficit", -(asInt(nMetrix[6])))] | |
967 | 975 | } | |
968 | 976 | ||
969 | 977 | ||
970 | 978 | ||
971 | 979 | @Callable(i) | |
972 | 980 | func wavesBalancesVsPayment () = { | |
973 | 981 | let b = wavesBalance(this) | |
974 | 982 | [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)] | |
975 | 983 | } | |
976 | 984 | ||
977 | 985 | ||
978 | 986 | @Verifier(tx) | |
979 | 987 | func verify () = { | |
980 | 988 | let id = toBase58String(tx.id) | |
981 | 989 | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
982 | 990 | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
983 | 991 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
984 | 992 | then 1 | |
985 | 993 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
986 | 994 | then 1 | |
987 | 995 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
988 | 996 | then 1 | |
989 | 997 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
990 | 998 | then 2 | |
991 | 999 | else 0)) | |
992 | 1000 | match tx { | |
993 | 1001 | case sponsorTx: SponsorFeeTransaction => | |
994 | 1002 | if (checkIsValidMinSponsoredFee(sponsorTx)) | |
995 | 1003 | then (count >= 3) | |
996 | 1004 | else false | |
997 | 1005 | case _ => | |
998 | 1006 | (count >= 3) | |
999 | 1007 | } | |
1000 | 1008 | } | |
1001 | 1009 |
github/deemru/w8io/026f985 114.83 ms ◑