tx · CjMbhy5f14Hmn2iKNrRryY45mFt9dNuRZi7M13fByn3k 3N9DJDtinaAjK3DAhVZn6drz1yGjFBi5pb7: -0.01400000 Waves 2022.02.01 00:46 [1903671] smart account 3N9DJDtinaAjK3DAhVZn6drz1yGjFBi5pb7 > SELF 0.00000000 Waves
{ "type": 13, "id": "CjMbhy5f14Hmn2iKNrRryY45mFt9dNuRZi7M13fByn3k", "fee": 1400000, "feeAssetId": null, "timestamp": 1643665612599, "version": 2, "chainId": 84, "sender": "3N9DJDtinaAjK3DAhVZn6drz1yGjFBi5pb7", "senderPublicKey": "73NMyMtVPbUD7s1DCVZ5F8Vqzvf5tYLHM6Coz1RRCUuf", "proofs": [ "2zh8zMetHnghAWKxjagocEH3JzZnghnNEbPc7D3YCrVKdKtjPkGGhz6eYvgGj1RxxgMRAccuAxK84Piton5jpTrE", "4zt3Cq1XcTfsumSMTYLfiRJXEaa9sPrk6XgtDQA7mYQHNVN2ESCFWQTtMj55jBNwPSHUR3sshAo37jiKfb2j1eA4" ], "script": "base64:AAIFAAAAAAAADmIIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgASBQoDBAEIEgAaFAoBQRIPa2V5QWRtaW5QdWJLZXkyGhQKAUISD2tleUFkbWluUHViS2V5MxoLCgFDEgZvcmFjbGUaEAoBRBILZ2V0QWRtaW5QdWIaEAoBRRILa2V5QWRtaW5QdWIaDAoBRhIHJG1hdGNoMBoLCgFHEgZzdHJpbmcaDAoBSBIHbm90aGluZxoRCgFJEgxhZG1pblB1YktleTEaEQoBShIMYWRtaW5QdWJLZXkyGhEKAUsSDGFkbWluUHViS2V5MxoZCgFMEhRhZG1pblB1YktleVN0YXJ0U3RvcBoXCgFNEhJhZG1pblB1YktleVN0YWtpbmcaEgoBThINd2FsbGV0QWRkcmVzcxoSCgFPEg12b3RpbmdBZGRyZXNzGgkKAVASBFVTRE4aCQoBURIETlNCVBoJCgFSEgRFVVJOGhIKAVMSDXN0YWtpbm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AUAAAACY3UAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJjdQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAUsGCQAB9AAAAAMIBQAAAAJjdQAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmN1AAAABnByb29mcwAAAAAAAAAAAAUAAAABTQMDAwMFAAAAAmNBBgUAAAACY0IGBQAAAAJjQwUAAAACY0QHBgUAAAACY3cFAAAAAmN3SsoLYA==", "height": 1903671, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EkNhma8FNVnvCfL7SSbYVdZTNcQ3XvvMz2Ja1PRbbbSe Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let keyVersion = "version" | |
7 | 7 | ||
8 | 8 | let keyActive = "active" | |
9 | 9 | ||
10 | 10 | let keyAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let keyAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let keyBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let keyBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let keyBalanceInitA = "A_asset_init" | |
19 | 19 | ||
20 | 20 | let keyBalanceInitB = "B_asset_init" | |
21 | 21 | ||
22 | 22 | let keyShareAssetId = "share_asset_id" | |
23 | 23 | ||
24 | 24 | let keyShareAssetSupply = "share_asset_supply" | |
25 | 25 | ||
26 | 26 | let keyCommission = "commission" | |
27 | 27 | ||
28 | 28 | let keyCommissionScaleDelimiter = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let keyCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let keyFirstHarvest = "first_harvest" | |
33 | 33 | ||
34 | 34 | let keyFirstHarvestHeight = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let kShareLimit = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let kBasePeriod = "base_period" | |
39 | 39 | ||
40 | 40 | let kPeriodLength = "period_length" | |
41 | 41 | ||
42 | 42 | let kStartHeight = "start_height" | |
43 | 43 | ||
44 | 44 | let keyUSDNNSBTAddress = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | 46 | let keyEURNAddress = "staking_eurn_address" | |
47 | 47 | ||
48 | 48 | let keyLeasingPool = "leasing_address" | |
49 | 49 | ||
50 | 50 | let keyLeasingAmount = "leasing_amount" | |
51 | 51 | ||
52 | 52 | let keyLeasingId = "leasing_id" | |
53 | 53 | ||
54 | 54 | let keyAdminPubKey1 = "admin_pub_1" | |
55 | 55 | ||
56 | 56 | let keyAdminPubKey2 = "admin_pub_2" | |
57 | 57 | ||
58 | 58 | let keyAdminPubKey3 = "admin_pub_3" | |
59 | 59 | ||
60 | 60 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
61 | 61 | ||
62 | 62 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
63 | 63 | case string: String => | |
64 | 64 | fromBase58String(string) | |
65 | 65 | case nothing => | |
66 | 66 | throw("Admin public key is empty") | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
71 | 71 | ||
72 | 72 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
73 | 73 | ||
74 | 74 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
75 | 75 | ||
76 | 76 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
77 | 77 | ||
78 | 78 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
79 | 79 | ||
80 | 80 | let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
81 | 81 | ||
82 | 82 | let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
83 | 83 | ||
84 | 84 | let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
85 | 85 | ||
86 | 86 | let NSBT = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
87 | 87 | ||
88 | 88 | let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
89 | 89 | ||
90 | 90 | let stakingAssets = ["WAVES", toBase58String(USDN), toBase58String(NSBT), toBase58String(EURN)] | |
91 | 91 | ||
92 | 92 | let stakingUSDNNSBTAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyUSDNNSBTAddress), "no usdn staking address"))) | |
93 | 93 | ||
94 | 94 | let stakingEURNAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyEURNAddress), "no eurn staking address"))) | |
95 | 95 | ||
96 | 96 | let USDNToWavesExchanger = Address(base58'3N8PGkzXhbtTvEwEQTtE2xiTJmsDEQ9XfoZ') | |
97 | 97 | ||
98 | 98 | let USDNToNSBTExchanger = Address(base58'3MqW1t2cxdYy2emEMk3YtZkRwQPhHaTfWRe') | |
99 | 99 | ||
100 | 100 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
101 | 101 | ||
102 | 102 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
103 | 103 | ||
104 | 104 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
105 | 105 | ||
106 | 106 | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
107 | 107 | ||
108 | 108 | let active = getBooleanValue(this, keyActive) | |
109 | 109 | ||
110 | 110 | let strAssetIdA = getStringValue(this, keyAssetIdA) | |
111 | 111 | ||
112 | 112 | let strAssetIdB = getStringValue(this, keyAssetIdB) | |
113 | 113 | ||
114 | 114 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
115 | 115 | then unit | |
116 | 116 | else fromBase58String(strAssetIdA) | |
117 | 117 | ||
118 | 118 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
119 | 119 | then unit | |
120 | 120 | else fromBase58String(strAssetIdB) | |
121 | 121 | ||
122 | 122 | let assetNameA = match assetIdA { | |
123 | 123 | case id: ByteVector => | |
124 | 124 | value(assetInfo(id)).name | |
125 | 125 | case waves: Unit => | |
126 | 126 | "WAVES" | |
127 | 127 | case _ => | |
128 | 128 | throw("Match error") | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | let assetNameB = match assetIdB { | |
132 | 132 | case id: ByteVector => | |
133 | 133 | value(assetInfo(id)).name | |
134 | 134 | case waves: Unit => | |
135 | 135 | "WAVES" | |
136 | 136 | case _ => | |
137 | 137 | throw("Match error") | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | let balanceA = getIntegerValue(this, keyBalanceA) | |
141 | 141 | ||
142 | 142 | let balanceB = getIntegerValue(this, keyBalanceB) | |
143 | 143 | ||
144 | 144 | let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId)) | |
145 | 145 | ||
146 | 146 | let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply) | |
147 | 147 | ||
148 | 148 | let commission = 3000 | |
149 | 149 | ||
150 | 150 | let commissionGovernance = 1200 | |
151 | 151 | ||
152 | 152 | let commissionScaleDelimiter = 1000000 | |
153 | 153 | ||
154 | 154 | let scaleValue3 = 1000 | |
155 | 155 | ||
156 | 156 | let scaleValue8 = 100000000 | |
157 | 157 | ||
158 | 158 | let slippageToleranceDelimiter = 1000 | |
159 | 159 | ||
160 | 160 | func accountBalance (assetId) = match assetId { | |
161 | 161 | case id: ByteVector => | |
162 | 162 | assetBalance(this, id) | |
163 | 163 | case waves: Unit => | |
164 | 164 | wavesBalance(this).available | |
165 | 165 | case _ => | |
166 | 166 | throw("Match error") | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func stakedAmount (assetId) = { | |
171 | 171 | let stakedAmountCalculated = match assetId { | |
172 | 172 | case aId: ByteVector => | |
173 | 173 | if (if ((aId == USDN)) | |
174 | 174 | then true | |
175 | 175 | else (aId == NSBT)) | |
176 | 176 | then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
177 | 177 | else if ((aId == EURN)) | |
178 | 178 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this))) | |
179 | 179 | else 0 | |
180 | 180 | case _: Unit => | |
181 | 181 | valueOrElse(getInteger(this, keyLeasingAmount), 0) | |
182 | 182 | case _ => | |
183 | 183 | throw("Match error") | |
184 | 184 | } | |
185 | 185 | match stakedAmountCalculated { | |
186 | 186 | case i: Int => | |
187 | 187 | i | |
188 | 188 | case _ => | |
189 | 189 | 0 | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | let stakedAmountA = stakedAmount(assetIdA) | |
195 | 195 | ||
196 | 196 | let stakedAmountB = stakedAmount(assetIdB) | |
197 | 197 | ||
198 | 198 | let assetInitA = getIntegerValue(this, keyBalanceInitA) | |
199 | 199 | ||
200 | 200 | let assetInitB = getIntegerValue(this, keyBalanceInitB) | |
201 | 201 | ||
202 | 202 | let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA) | |
203 | 203 | ||
204 | 204 | let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB) | |
205 | 205 | ||
206 | 206 | let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA)) | |
207 | 207 | then (accountBalanceWithStakedB >= balanceB) | |
208 | 208 | else false | |
209 | 209 | ||
210 | 210 | func getAssetInfo (assetId) = match assetId { | |
211 | 211 | case id: ByteVector => | |
212 | 212 | let stringId = toBase58String(id) | |
213 | 213 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
214 | 214 | $Tuple3(stringId, info.name, info.decimals) | |
215 | 215 | case waves: Unit => | |
216 | 216 | $Tuple3("WAVES", "WAVES", 8) | |
217 | 217 | case _ => | |
218 | 218 | throw("Match error") | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES")) | |
223 | 223 | then $Tuple3("WAVES", "WAVES", 8) | |
224 | 224 | else { | |
225 | 225 | let stringId = assetStr | |
226 | 226 | let id = fromBase58String(assetStr) | |
227 | 227 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
228 | 228 | $Tuple3(stringId, info.name, info.decimals) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
236 | 236 | then if ((assetId == USDN)) | |
237 | 237 | then $Tuple2("lockNeutrino", stakingUSDNNSBTAddress) | |
238 | 238 | else if ((assetId == NSBT)) | |
239 | 239 | then $Tuple2("lockNsbt", stakingUSDNNSBTAddress) | |
240 | 240 | else $Tuple2("startStaking", stakingEURNAddress) | |
241 | 241 | else if ((assetId == USDN)) | |
242 | 242 | then $Tuple2("unlockNeutrino", stakingUSDNNSBTAddress) | |
243 | 243 | else if ((assetId == NSBT)) | |
244 | 244 | then $Tuple2("unlockNsbt", stakingUSDNNSBTAddress) | |
245 | 245 | else $Tuple2("stopStaking", stakingEURNAddress) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func calcStakingParams (stake,amount,assetId) = if (stake) | |
249 | 249 | then { | |
250 | 250 | let $t069226988 = calcStakingFuncAndAddres(stake, assetId) | |
251 | 251 | let call = $t069226988._1 | |
252 | 252 | let stakingAddr = $t069226988._2 | |
253 | 253 | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
254 | 254 | } | |
255 | 255 | else { | |
256 | 256 | let $t070747140 = calcStakingFuncAndAddres(stake, assetId) | |
257 | 257 | let call = $t070747140._1 | |
258 | 258 | let stakingAddr = $t070747140._2 | |
259 | 259 | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo) = { | |
264 | 264 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
265 | 265 | let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter) | |
266 | 266 | let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter) | |
267 | 267 | if ((minAmountToReceive > amountWithFee)) | |
268 | 268 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
269 | 269 | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB)) | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func isActive () = if (active) | |
277 | 277 | then unit | |
278 | 278 | else throw("DApp is inactive at this moment") | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | @Callable(i) | |
282 | 282 | func init (firstHarvest) = { | |
283 | 283 | let $t083108387 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
284 | 284 | let pmtAmountA = $t083108387._1 | |
285 | 285 | let pmtAssetIdA = $t083108387._2 | |
286 | 286 | let $t083928469 = $Tuple2(i.payments[1].amount, i.payments[1].assetId) | |
287 | 287 | let pmtAmountB = $t083928469._1 | |
288 | 288 | let pmtAssetIdB = $t083928469._2 | |
289 | 289 | let $t084748551 = getAssetInfo(pmtAssetIdA) | |
290 | 290 | let pmtStrAssetIdA = $t084748551._1 | |
291 | 291 | let pmtAssetNameA = $t084748551._2 | |
292 | 292 | let pmtDecimalsA = $t084748551._3 | |
293 | 293 | let $t085568633 = getAssetInfo(pmtAssetIdB) | |
294 | 294 | let pmtStrAssetIdB = $t085568633._1 | |
295 | 295 | let pmtAssetNameB = $t085568633._2 | |
296 | 296 | let pmtDecimalsB = $t085568633._3 | |
297 | 297 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
298 | 298 | then throw("Only admin can call this function") | |
299 | 299 | else if (isDefined(getBoolean(this, keyActive))) | |
300 | 300 | then throw("DApp is already active") | |
301 | 301 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
302 | 302 | then throw("Assets must be different") | |
303 | 303 | else { | |
304 | 304 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
305 | 305 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
306 | 306 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
307 | 307 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
308 | 308 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
309 | 309 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
310 | 310 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
311 | 311 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
312 | 312 | let shareIssueId = calculateAssetId(shareIssue) | |
313 | 313 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
314 | 314 | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
315 | 315 | else 0 | |
316 | 316 | if ((stake1 == stake1)) | |
317 | 317 | then { | |
318 | 318 | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
319 | 319 | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
320 | 320 | else 0 | |
321 | 321 | if ((stake2 == stake2)) | |
322 | 322 | then { | |
323 | 323 | let baseEntry = [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)] | |
324 | 324 | if (firstHarvest) | |
325 | 325 | then (baseEntry ++ [BooleanEntry(keyFirstHarvest, firstHarvest), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]) | |
326 | 326 | else baseEntry | |
327 | 327 | } | |
328 | 328 | else throw("Strict value is not equal to itself.") | |
329 | 329 | } | |
330 | 330 | else throw("Strict value is not equal to itself.") | |
331 | 331 | } | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | ||
336 | 336 | @Callable(i) | |
337 | 337 | func initWithInitRatio (amtAssetA,amtAssetB,strAssetIdA,strAssetIdB,firstHarvest) = { | |
338 | 338 | let $t01122211309 = getAssetInfoFromString(strAssetIdA) | |
339 | 339 | let pmtStrAssetIdA = $t01122211309._1 | |
340 | 340 | let pmtAssetNameA = $t01122211309._2 | |
341 | 341 | let pmtDecimalsA = $t01122211309._3 | |
342 | 342 | let $t01131411401 = getAssetInfoFromString(strAssetIdB) | |
343 | 343 | let pmtStrAssetIdB = $t01131411401._1 | |
344 | 344 | let pmtAssetNameB = $t01131411401._2 | |
345 | 345 | let pmtDecimalsB = $t01131411401._3 | |
346 | 346 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
347 | 347 | then throw("Only admin can call this function") | |
348 | 348 | else if (isDefined(getBoolean(this, keyActive))) | |
349 | 349 | then throw("DApp is already active") | |
350 | 350 | else if ((strAssetIdA == strAssetIdB)) | |
351 | 351 | then throw("Assets must be different") | |
352 | 352 | else { | |
353 | 353 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
354 | 354 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
355 | 355 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
356 | 356 | let shareInitialSupply = 0 | |
357 | 357 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
358 | 358 | let shareIssueId = calculateAssetId(shareIssue) | |
359 | 359 | let baseEntry = [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceInitA, amtAssetA), IntegerEntry(keyBalanceInitB, amtAssetB), IntegerEntry(keyBalanceA, 0), IntegerEntry(keyBalanceB, 0), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply)] | |
360 | 360 | if (firstHarvest) | |
361 | 361 | then (baseEntry ++ [BooleanEntry(keyFirstHarvest, firstHarvest), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]) | |
362 | 362 | else baseEntry | |
363 | 363 | } | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(i) | |
369 | 369 | func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey))) | |
370 | 370 | then throw("Only admin can call this function") | |
371 | 371 | else [IntegerEntry(kShareLimit, shareLimit)]) | |
372 | 372 | ||
373 | 373 | ||
374 | 374 | ||
375 | 375 | @Callable(i) | |
376 | 376 | func replenishWithTwoTokens (slippageTolerance) = valueOrElse(isActive(), { | |
377 | 377 | let pmtAssetIdA = i.payments[0].assetId | |
378 | 378 | let pmtAssetIdB = i.payments[1].assetId | |
379 | 379 | let pmtAmountA = i.payments[0].amount | |
380 | 380 | let pmtAmountB = i.payments[1].amount | |
381 | 381 | let $t01386913946 = getAssetInfo(pmtAssetIdA) | |
382 | 382 | let pmtStrAssetIdA = $t01386913946._1 | |
383 | 383 | let pmtAssetNameA = $t01386913946._2 | |
384 | 384 | let pmtDecimalsA = $t01386913946._3 | |
385 | 385 | let $t01395114028 = getAssetInfo(pmtAssetIdB) | |
386 | 386 | let pmtStrAssetIdB = $t01395114028._1 | |
387 | 387 | let pmtAssetNameB = $t01395114028._2 | |
388 | 388 | let pmtDecimalsB = $t01395114028._3 | |
389 | 389 | let inital = if (if ((balanceA == 0)) | |
390 | 390 | then (balanceB == 0) | |
391 | 391 | else false) | |
392 | 392 | then true | |
393 | 393 | else false | |
394 | 394 | let tokenRatio = if (inital) | |
395 | 395 | then fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB)) | |
396 | 396 | else fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB)) | |
397 | 397 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
398 | 398 | let shareTokenToPayAmount = if (inital) | |
399 | 399 | then fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
400 | 400 | else fraction(min([fraction(pmtAmountA, scaleValue8, balanceA), fraction(pmtAmountB, scaleValue8, balanceB)]), shareAssetSupply, scaleValue8) | |
401 | 401 | if (if ((0 > slippageTolerance)) | |
402 | 402 | then true | |
403 | 403 | else (slippageTolerance > slippageToleranceDelimiter)) | |
404 | 404 | then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance))) | |
405 | 405 | else if ((size(i.payments) != 2)) | |
406 | 406 | then throw("Two attached assets expected") | |
407 | 407 | else if (if ((pmtAssetIdA != assetIdA)) | |
408 | 408 | then true | |
409 | 409 | else (pmtAssetIdB != assetIdB)) | |
410 | 410 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
411 | 411 | else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio)) | |
412 | 412 | then true | |
413 | 413 | else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter))) | |
414 | 414 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
415 | 415 | else if ((shareTokenToPayAmount == 0)) | |
416 | 416 | then throw("Too small amount to replenish") | |
417 | 417 | else if (!(hasEnoughBalance)) | |
418 | 418 | then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious()) | |
419 | 419 | else { | |
420 | 420 | let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA)) | |
421 | 421 | then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
422 | 422 | else 0 | |
423 | 423 | if ((stake1 == stake1)) | |
424 | 424 | then { | |
425 | 425 | let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB)) | |
426 | 426 | then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
427 | 427 | else 0 | |
428 | 428 | if ((stake2 == stake2)) | |
429 | 429 | then [Reissue(shareAssetId, shareTokenToPayAmount, true), IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)] | |
430 | 430 | else throw("Strict value is not equal to itself.") | |
431 | 431 | } | |
432 | 432 | else throw("Strict value is not equal to itself.") | |
433 | 433 | } | |
434 | 434 | }) | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | ||
438 | 438 | @Callable(i) | |
439 | 439 | func withdraw () = valueOrElse(isActive(), { | |
440 | 440 | let $t01683416909 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
441 | 441 | let pmtAmount = $t01683416909._1 | |
442 | 442 | let pmtAssetId = $t01683416909._2 | |
443 | 443 | let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply) | |
444 | 444 | let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply) | |
445 | 445 | if ((size(i.payments) != 1)) | |
446 | 446 | then throw("One attached payment expected") | |
447 | 447 | else if ((pmtAssetId != shareAssetId)) | |
448 | 448 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
449 | 449 | else if (!(hasEnoughBalance)) | |
450 | 450 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
451 | 451 | else { | |
452 | 452 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
453 | 453 | then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
454 | 454 | else 0 | |
455 | 455 | if ((stake1 == stake1)) | |
456 | 456 | then { | |
457 | 457 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
458 | 458 | then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
459 | 459 | else 0 | |
460 | 460 | if ((stake2 == stake2)) | |
461 | 461 | then [IntegerEntry(keyBalanceA, (balanceA - amountToPayA)), IntegerEntry(keyBalanceB, (balanceB - amountToPayB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply - pmtAmount)), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)] | |
462 | 462 | else throw("Strict value is not equal to itself.") | |
463 | 463 | } | |
464 | 464 | else throw("Strict value is not equal to itself.") | |
465 | 465 | } | |
466 | 466 | }) | |
467 | 467 | ||
468 | 468 | ||
469 | 469 | ||
470 | 470 | @Callable(i) | |
471 | 471 | func exchange (minAmountToReceive) = valueOrElse(isActive(), { | |
472 | 472 | let $t01821518290 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
473 | 473 | let pmtAmount = $t01821518290._1 | |
474 | 474 | let pmtAssetId = $t01821518290._2 | |
475 | 475 | if (if ((balanceA == 0)) | |
476 | 476 | then true | |
477 | 477 | else (balanceB == 0)) | |
478 | 478 | then throw("Can't exchange with zero balance") | |
479 | 479 | else if ((0 >= minAmountToReceive)) | |
480 | 480 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
481 | 481 | else if ((size(i.payments) != 1)) | |
482 | 482 | then throw("One attached payment expected") | |
483 | 483 | else if (!(hasEnoughBalance)) | |
484 | 484 | then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious()) | |
485 | 485 | else if ((pmtAssetId == assetIdA)) | |
486 | 486 | then { | |
487 | 487 | let assetIdSend = assetIdB | |
488 | 488 | let $t01884518967 = calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB) | |
489 | 489 | let amountWithoutFee = $t01884518967._1 | |
490 | 490 | let amountWithFee = $t01884518967._2 | |
491 | 491 | let governanceReward = $t01884518967._3 | |
492 | 492 | let newBalanceA = (balanceA + pmtAmount) | |
493 | 493 | let newBalanceB = ((balanceB - amountWithFee) - governanceReward) | |
494 | 494 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
495 | 495 | then invoke(this, "stakeUnstake", [true, pmtAmount, strAssetIdA], nil) | |
496 | 496 | else 0 | |
497 | 497 | if ((stake1 == stake1)) | |
498 | 498 | then { | |
499 | 499 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
500 | 500 | then invoke(this, "stakeUnstake", [false, (amountWithFee + governanceReward), strAssetIdB], nil) | |
501 | 501 | else 0 | |
502 | 502 | if ((stake2 == stake2)) | |
503 | 503 | then [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
504 | 504 | else throw("Strict value is not equal to itself.") | |
505 | 505 | } | |
506 | 506 | else throw("Strict value is not equal to itself.") | |
507 | 507 | } | |
508 | 508 | else if ((pmtAssetId == assetIdB)) | |
509 | 509 | then { | |
510 | 510 | let assetIdSend = assetIdA | |
511 | 511 | let $t01992220044 = calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA) | |
512 | 512 | let amountWithoutFee = $t01992220044._1 | |
513 | 513 | let amountWithFee = $t01992220044._2 | |
514 | 514 | let governanceReward = $t01992220044._3 | |
515 | 515 | let newBalanceA = ((balanceA - amountWithFee) - governanceReward) | |
516 | 516 | let newBalanceB = (balanceB + pmtAmount) | |
517 | 517 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
518 | 518 | then invoke(this, "stakeUnstake", [false, (amountWithFee + governanceReward), strAssetIdA], nil) | |
519 | 519 | else 0 | |
520 | 520 | if ((stake1 == stake1)) | |
521 | 521 | then { | |
522 | 522 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
523 | 523 | then invoke(this, "stakeUnstake", [true, pmtAmount, strAssetIdB], nil) | |
524 | 524 | else 0 | |
525 | 525 | if ((stake2 == stake2)) | |
526 | 526 | then [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)] | |
527 | 527 | else throw("Strict value is not equal to itself.") | |
528 | 528 | } | |
529 | 529 | else throw("Strict value is not equal to itself.") | |
530 | 530 | } | |
531 | 531 | else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
532 | 532 | }) | |
533 | 533 | ||
534 | 534 | ||
535 | 535 | ||
536 | 536 | @Callable(i) | |
537 | 537 | func shutdown () = if (!(active)) | |
538 | 538 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
539 | 539 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
540 | 540 | then throw("Only admin can call this function") | |
541 | 541 | else suspend("Paused by admin") | |
542 | 542 | ||
543 | 543 | ||
544 | 544 | ||
545 | 545 | @Callable(i) | |
546 | 546 | func activate () = if (active) | |
547 | 547 | then throw("DApp is already active") | |
548 | 548 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
549 | 549 | then throw("Only admin can call this function") | |
550 | 550 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
551 | 551 | ||
552 | 552 | ||
553 | 553 | ||
554 | 554 | @Callable(i) | |
555 | 555 | func takeIntoAccountExtraFunds () = valueOrElse(isActive(), { | |
556 | 556 | let amountEnrollA = (accountBalanceWithStakedA - balanceA) | |
557 | 557 | let amountEnrollB = (accountBalanceWithStakedB - balanceB) | |
558 | 558 | if ((i.caller != walletAddress)) | |
559 | 559 | then throw("Only the wallet can call this function") | |
560 | 560 | else if (if ((0 > amountEnrollA)) | |
561 | 561 | then true | |
562 | 562 | else (0 > amountEnrollB)) | |
563 | 563 | then suspend("Enroll amount negative") | |
564 | 564 | else if (if ((amountEnrollA == 0)) | |
565 | 565 | then (amountEnrollB == 0) | |
566 | 566 | else false) | |
567 | 567 | then throw("No money to take") | |
568 | 568 | else { | |
569 | 569 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
570 | 570 | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
571 | 571 | else 0 | |
572 | 572 | if ((stake1 == stake1)) | |
573 | 573 | then { | |
574 | 574 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
575 | 575 | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
576 | 576 | else 0 | |
577 | 577 | if ((stake2 == stake2)) | |
578 | 578 | then [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)] | |
579 | 579 | else throw("Strict value is not equal to itself.") | |
580 | 580 | } | |
581 | 581 | else throw("Strict value is not equal to itself.") | |
582 | 582 | } | |
583 | 583 | }) | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | ||
587 | 587 | @Callable(i) | |
588 | 588 | func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this)) | |
589 | 589 | then throw("Only contract itself can invoke this function") | |
590 | 590 | else if ((assetIdString == "WAVES")) | |
591 | 591 | then { | |
592 | 592 | let pool = addressFromStringValue(valueOrErrorMessage(getString(oracle, keyLeasingPool), "No leasing pool in oracle")) | |
593 | 593 | let leasingId = getBinary(this, keyLeasingId) | |
594 | 594 | let leasingAmount = valueOrElse(getInteger(this, keyLeasingAmount), 0) | |
595 | 595 | let newLeaseAmount = if (stake) | |
596 | 596 | then (leasingAmount + amount) | |
597 | 597 | else (leasingAmount - amount) | |
598 | 598 | let newLease = Lease(pool, newLeaseAmount) | |
599 | 599 | let newLeaseId = calculateLeaseId(newLease) | |
600 | 600 | let baseEtry = [newLease, BinaryEntry(keyLeasingId, newLeaseId), IntegerEntry(keyLeasingAmount, newLeaseAmount)] | |
601 | 601 | match leasingId { | |
602 | 602 | case lId: ByteVector => | |
603 | 603 | ([LeaseCancel(lId)] ++ baseEtry) | |
604 | 604 | case _ => | |
605 | 605 | baseEtry | |
606 | 606 | } | |
607 | 607 | } | |
608 | 608 | else { | |
609 | 609 | let $t02377823881 = calcStakingParams(stake, amount, fromBase58String(assetIdString)) | |
610 | 610 | let call = $t02377823881._1 | |
611 | 611 | let addr = $t02377823881._2 | |
612 | 612 | let params = $t02377823881._3 | |
613 | 613 | let payments = $t02377823881._4 | |
614 | 614 | let inv = invoke(addr, call, params, payments) | |
615 | 615 | if ((inv == inv)) | |
616 | 616 | then nil | |
617 | 617 | else throw("Strict value is not equal to itself.") | |
618 | 618 | } | |
619 | 619 | ||
620 | 620 | ||
621 | 621 | ||
622 | 622 | @Callable(i) | |
623 | 623 | func stakeAll () = valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
624 | 624 | then throw("Only admin can call this function") | |
625 | 625 | else { | |
626 | 626 | let stake1 = if (containsElement(stakingAssets, strAssetIdA)) | |
627 | 627 | then { | |
628 | 628 | let amountA = (balanceA - stakedAmountA) | |
629 | 629 | if ((amountA > 0)) | |
630 | 630 | then invoke(this, "stakeUnstake", [true, amountA, strAssetIdA], nil) | |
631 | 631 | else 0 | |
632 | 632 | } | |
633 | 633 | else 0 | |
634 | 634 | if ((stake1 == stake1)) | |
635 | 635 | then { | |
636 | 636 | let stake2 = if (containsElement(stakingAssets, strAssetIdB)) | |
637 | 637 | then { | |
638 | 638 | let amountB = (balanceB - stakedAmountB) | |
639 | 639 | if ((amountB > 0)) | |
640 | 640 | then invoke(this, "stakeUnstake", [true, amountB, strAssetIdB], nil) | |
641 | 641 | else 0 | |
642 | 642 | } | |
643 | 643 | else 0 | |
644 | 644 | if ((stake2 == stake2)) | |
645 | 645 | then nil | |
646 | 646 | else throw("Strict value is not equal to itself.") | |
647 | 647 | } | |
648 | 648 | else throw("Strict value is not equal to itself.") | |
649 | 649 | }) | |
650 | 650 | ||
651 | 651 | ||
652 | 652 | @Verifier(tx) | |
653 | 653 | func verify () = { | |
654 | 654 | let multiSignedByAdmins = { | |
655 | 655 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
656 | 656 | then 1 | |
657 | 657 | else 0 | |
658 | 658 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
659 | 659 | then 1 | |
660 | 660 | else 0 | |
661 | 661 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
662 | 662 | then 1 | |
663 | 663 | else 0 | |
664 | 664 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
665 | 665 | } | |
666 | 666 | match tx { | |
667 | 667 | case inv: InvokeScriptTransaction => | |
668 | 668 | let callTakeIntoAccount = if ((inv.dApp == this)) | |
669 | 669 | then (inv.function == "takeIntoAccountExtraFunds") | |
670 | 670 | else false | |
671 | 671 | let exchangeToWaves = if (if (if ((inv.dApp == USDNToWavesExchanger)) | |
672 | 672 | then (inv.function == "exchange") | |
673 | 673 | else false) | |
674 | 674 | then (assetIdA == USDN) | |
675 | 675 | else false) | |
676 | 676 | then true | |
677 | 677 | else if (if ((assetIdB == USDN)) | |
678 | 678 | then (size(inv.payments) == 1) | |
679 | 679 | else false) | |
680 | 680 | then (inv.payments[0].assetId == USDN) | |
681 | 681 | else false | |
682 | 682 | let exchangeToNSBTs = if (if (if ((inv.dApp == USDNToNSBTExchanger)) | |
683 | 683 | then (inv.function == "exchange") | |
684 | 684 | else false) | |
685 | 685 | then (assetIdA == NSBT) | |
686 | 686 | else false) | |
687 | 687 | then true | |
688 | 688 | else if (if ((assetIdB == NSBT)) | |
689 | 689 | then (size(inv.payments) == 1) | |
690 | 690 | else false) | |
691 | 691 | then (inv.payments[0].assetId == USDN) | |
692 | 692 | else false | |
693 | 693 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
694 | 694 | then true | |
695 | 695 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
696 | 696 | then true | |
697 | 697 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
698 | 698 | then true | |
699 | 699 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
700 | 700 | if (if (if (if (callTakeIntoAccount) | |
701 | 701 | then true | |
702 | 702 | else exchangeToWaves) | |
703 | 703 | then true | |
704 | 704 | else exchangeToNSBTs) | |
705 | 705 | then signedByAdmin | |
706 | 706 | else false) | |
707 | 707 | then true | |
708 | 708 | else multiSignedByAdmins | |
709 | 709 | case _ => | |
710 | 710 | multiSignedByAdmins | |
711 | 711 | } | |
712 | 712 | } | |
713 | 713 |
github/deemru/w8io/026f985 71.27 ms ◑