tx · CePUTZTvs56AXPt8jQC7mg1eEnM2H6kcYvxf8grXP697

3MqAXcQCPvqvYZuVJhaXEeJZ3Rja1MUq2LY:  -0.01200000 Waves

2023.02.02 11:24 [2431757] smart account 3MqAXcQCPvqvYZuVJhaXEeJZ3Rja1MUq2LY > SELF 0.00000000 Waves

{ "type": 13, "id": "CePUTZTvs56AXPt8jQC7mg1eEnM2H6kcYvxf8grXP697", "fee": 1200000, "feeAssetId": null, "timestamp": 1675326292371, "version": 2, "chainId": 84, "sender": "3MqAXcQCPvqvYZuVJhaXEeJZ3Rja1MUq2LY", "senderPublicKey": "FfjixqhdoWY77CNzgw1CJPMaUJ1wBFaQSY4GrTetjwzH", "proofs": [ "4e37MTmNoRdhsjXjTztSVmHZT1o17afBbYXu5fi5Ez9gS9VN1T4teVaZyc9AZrvr2g5La3xgKawDjSTo597Fyvy7", "5KNANgsGXuM1jU22aRg3YPQNiCBqh92RLY1x6YgVPZ48onQ4meCTzQNX8RpwvVSPKSP8xUoAevnSeHsh6qHHTDX1" ], "script": "base64:BgImCAISBAoCCBgSABIAEgUKAwQBCBIAEgMKAQESAwoBARIAEgMKAQEpAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAMa1VTRE5BZGRyZXNzAhhzdGFraW5nX3VzZG5uc2J0X2FkZHJlc3MADGtFVVJOQWRkcmVzcwIUc3Rha2luZ19ldXJuX2FkZHJlc3MADGtMZWFzaW5nUG9vbAIPbGVhc2luZ19hZGRyZXNzAA5rTGVhc2luZ0Ftb3VudAIObGVhc2luZ19hbW91bnQACmtMZWFzaW5nSWQCCmxlYXNpbmdfaWQADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW5QdWJLZXkyAgthZG1pbl9wdWJfMgANa0FkbWluUHViS2V5MwILYWRtaW5fcHViXzMAEmtBZG1pbkludm9rZVB1Yktle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BQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIFE211bHRpU2lnbmVkQnlBZG1pbnOCFYaH", "height": 2431757, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GhCshDfsxTwi5RokbjULdcsNxrPm93YVPPCZL7T5NhDm Next: 6VnB59uX5TJyHJFhS7Z25GErASFiQMseFDexfjd8CCEz Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kActive = "active"
55
66 let kActiveGlob = "active_all_contracts"
77
88 let kCause = "shutdown_cause"
99
1010 let kUSDNAddress = "staking_usdnnsbt_address"
1111
1212 let kEURNAddress = "staking_eurn_address"
1313
1414 let kLeasingPool = "leasing_address"
1515
1616 let kLeasingAmount = "leasing_amount"
1717
1818 let kLeasingId = "leasing_id"
1919
2020 let kAdminPubKey1 = "admin_pub_1"
2121
2222 let kAdminPubKey2 = "admin_pub_2"
2323
2424 let kAdminPubKey3 = "admin_pub_3"
2525
2626 let kAdminInvokePubKey = "admin_invoke_pub"
2727
2828 let kCpmmContract = "cpmm_contract"
2929
3030 let kUSDNAssetId = "usdn_asset_id"
3131
3232 let kEURNAssetId = "eurn_asset_id"
3333
3434 let kStakingAssets = "staking_assets"
3535
3636 let kShareAssetId = "share_asset_id"
3737
3838 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
3939
4040 func getBase58FromOracle (key) = match getString(oracle, key) {
4141 case string: String =>
4242 fromBase58String(string)
4343 case nothing =>
4444 throw((key + "is empty"))
4545 }
4646
4747
4848 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
4949
5050 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
5151
5252 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
5353
5454 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
5555
5656 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
5757
5858 let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress))
5959
6060 let cpmmContract = Address(getBase58FromOracle(kCpmmContract))
6161
6262 let USDN = getBase58FromOracle(kUSDNAssetId)
6363
6464 let EURN = getBase58FromOracle(kEURNAssetId)
6565
6666 let stakingAssets = getStringValue(oracle, kStakingAssets)
6767
6868 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
6969
7070 let active = valueOrElse(getBoolean(this, kActive), true)
7171
7272 func isActive () = if (if (active)
7373 then activeGlob
7474 else false)
7575 then unit
7676 else throw("DApp is inactive at this moment")
7777
7878
7979 func isGlobalCaller (caller) = if ((caller == cpmmContract))
8080 then unit
8181 else throw("Only global Contract can invoke this function")
8282
8383
8484 func isAdminCall (callerPubKey) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], callerPubKey))
8585 then unit
8686 else throw("Only admin can call this function")
8787
8888
8989 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
9090
9191
9292 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
9393 then if ((assetId == USDN))
9494 then $Tuple2("lockNeutrino", stakingUSDNAddress)
9595 else $Tuple2("startStaking", stakingEURNAddress)
9696 else if ((assetId == USDN))
9797 then $Tuple2("unlockNeutrino", stakingUSDNAddress)
9898 else $Tuple2("stopStaking", stakingEURNAddress)
9999
100100
101101 func calcStakingParams (stake,amount,assetId) = if (stake)
102102 then {
103103 let $t025932659 = calcStakingFuncAndAddres(stake, assetId)
104104 let call = $t025932659._1
105105 let stakingAddr = $t025932659._2
106106 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
107107 }
108108 else {
109109 let $t027452811 = calcStakingFuncAndAddres(stake, assetId)
110110 let call = $t027452811._1
111111 let stakingAddr = $t027452811._2
112112 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
113113 }
114114
115115
116116 func collectPayments (acc,payment) = {
117117 let $t029733016 = acc
118118 let paymentAmounts = $t029733016._1
119119 let paymentAssetIds = $t029733016._2
120120 $Tuple2((paymentAmounts :+ payment.amount), (paymentAssetIds :+ (if ((payment.assetId == unit))
121121 then base58''
122122 else payment.assetId)))
123123 }
124124
125125
126126 func collectState (result,source) = match source {
127127 case e: Issue|Burn|Reissue|ScriptTransfer|BinaryEntry|BooleanEntry|StringEntry|IntegerEntry =>
128128 (result :+ e)
129129 case _ =>
130130 result
131131 }
132132
133133
134134 func collectData (result,source) = match source {
135135 case v: String =>
136136 (result :+ v)
137137 case v: Int =>
138138 (result :+ v)
139139 case v: Boolean =>
140140 (result :+ v)
141141 case v: ByteVector =>
142142 (result :+ v)
143143 case v: Unit =>
144144 (result :+ v)
145145 case _ =>
146146 throw()
147147 }
148148
149149
150150 func callCommon (funcName,caller,args,payments) = valueOrElse(isActive(), {
151151 let $t039364020 = {
152152 let $l = payments
153153 let $s = size($l)
154154 let $acc0 = $Tuple2(nil, nil)
155155 func $f0_1 ($a,$i) = if (($i >= $s))
156156 then $a
157157 else collectPayments($a, $l[$i])
158158
159159 func $f0_2 ($a,$i) = if (($i >= $s))
160160 then $a
161161 else throw("List size exceeds 10")
162162
163163 $f0_2($f0_1($f0_1($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), 9), 10)
164164 }
165165 let paymentAmounts = $t039364020._1
166166 let paymentAssetIds = $t039364020._2
167167 let lockPayment = if (if ((funcName == "replenishWithTwoTokens"))
168168 then (size(payments) == 3)
169169 else false)
170170 then [payments[2]]
171171 else if (if ((funcName == "replenishWithOneToken"))
172172 then (size(payments) == 2)
173173 else false)
174174 then [payments[1]]
175175 else nil
176176 let $t042494406 = {
177177 let @ = reentrantInvoke(cpmmContract, funcName, [caller, args, paymentAmounts, paymentAssetIds], lockPayment)
178178 if ($isInstanceOf(@, "(List[Any], List[Any])"))
179179 then @
180180 else throw(($getType(@) + " couldn't be cast to (List[Any], List[Any])"))
181181 }
182182 if (($t042494406 == $t042494406))
183183 then {
184184 let data = $t042494406._2
185185 let actions = $t042494406._1
186186 let mappedData = {
187187 let $l = data
188188 let $s = size($l)
189189 let $acc0 = nil
190190 func $f1_1 ($a,$i) = if (($i >= $s))
191191 then $a
192192 else collectData($a, $l[$i])
193193
194194 func $f1_2 ($a,$i) = if (($i >= $s))
195195 then $a
196196 else throw("List size exceeds 10")
197197
198198 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
199199 }
200200 let mappedActions = {
201201 let $l = actions
202202 let $s = size($l)
203203 let $acc0 = nil
204204 func $f2_1 ($a,$i) = if (($i >= $s))
205205 then $a
206206 else collectState($a, $l[$i])
207207
208208 func $f2_2 ($a,$i) = if (($i >= $s))
209209 then $a
210210 else throw("List size exceeds 15")
211211
212212 $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
213213 }
214214 $Tuple2(mappedActions, mappedData)
215215 }
216216 else throw("Strict value is not equal to itself.")
217217 })
218218
219219
220220 @Callable(i)
221221 func callFunction (funcName,args) = callCommon(funcName, i.caller.bytes, args, i.payments)
222222
223223
224224
225225 @Callable(i)
226226 func shutdown () = valueOrElse(isAdminCall(i.callerPublicKey), if (!(active))
227227 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
228228 else suspend("Paused by admin"))
229229
230230
231231
232232 @Callable(i)
233233 func activate () = valueOrElse(isAdminCall(i.callerPublicKey), if (active)
234234 then throw("DApp is already active")
235235 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
236236
237237
238238
239239 @Callable(i)
240240 func stakeUnstake (stake,amount,assetIdString) = valueOrElse(isGlobalCaller(i.caller), valueOrElse(isActive(), if ((assetIdString == "WAVES"))
241241 then {
242242 let pool = addressFromStringValue(valueOrErrorMessage(getString(oracle, kLeasingPool), "No leasing pool in oracle"))
243243 let leasingId = getBinary(this, kLeasingId)
244244 let leasingAmount = valueOrElse(getInteger(this, kLeasingAmount), 0)
245245 let newLeaseAmount = if (stake)
246246 then (leasingAmount + amount)
247247 else (leasingAmount - amount)
248248 let newLease = Lease(pool, newLeaseAmount)
249249 let newLeaseId = calculateLeaseId(newLease)
250250 let baseEtry = [newLease, BinaryEntry(kLeasingId, newLeaseId), IntegerEntry(kLeasingAmount, newLeaseAmount)]
251251 match leasingId {
252252 case lId: ByteVector =>
253253 ([LeaseCancel(lId)] ++ baseEtry)
254254 case _ =>
255255 baseEtry
256256 }
257257 }
258258 else {
259259 let $t063246427 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
260260 let call = $t063246427._1
261261 let addr = $t063246427._2
262262 let params = $t063246427._3
263263 let payments = $t063246427._4
264264 let inv = invoke(addr, call, params, payments)
265265 if ((inv == inv))
266266 then nil
267267 else throw("Strict value is not equal to itself.")
268268 }))
269269
270270
271271
272272 @Callable(i)
273273 func claimNetrinoRewards () = valueOrElse(isGlobalCaller(i.caller), valueOrElse(isActive(), {
274274 let inv = invoke(stakingUSDNAddress, "claimRewards", nil, nil)
275275 if ((inv == inv))
276276 then $Tuple2(nil, inv)
277277 else throw("Strict value is not equal to itself.")
278278 }))
279279
280280
281281
282282 @Callable(i)
283283 func reissueShareToken (amount) = valueOrElse(isGlobalCaller(i.caller), valueOrElse(isActive(), {
284284 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
285285 [Reissue(shareAssetId, amount, true), ScriptTransfer(i.caller, amount, shareAssetId)]
286286 }))
287287
288288
289289
290290 @Callable(i)
291291 func replenishWithTwoTokens (slippageTolerance) = callCommon("replenishWithTwoTokens", i.caller.bytes, ["false", "0"], i.payments)
292292
293293
294294
295295 @Callable(i)
296296 func withdraw () = callCommon("withdraw", i.caller.bytes, ["0"], i.payments)
297297
298298
299299
300300 @Callable(i)
301301 func exchange (minAmountToReceive) = callCommon("exchange", i.caller.bytes, [toString(minAmountToReceive)], i.payments)
302302
303303
304304 @Verifier(tx)
305305 func verify () = {
306306 let multiSignedByAdmins = {
307307 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
308308 then 1
309309 else 0
310310 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
311311 then 1
312312 else 0
313313 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
314314 then 1
315315 else 0
316316 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
317317 }
318318 multiSignedByAdmins
319319 }
320320

github/deemru/w8io/026f985 
41.31 ms