tx · 8ALAcrMXj7qSSTopDNd3iJunXv7TVx9FRQ732fU8T6Sy

3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH:  -0.01400000 Waves

2022.07.26 15:53 [2156787] smart account 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH > SELF 0.00000000 Waves

{ "type": 13, "id": "8ALAcrMXj7qSSTopDNd3iJunXv7TVx9FRQ732fU8T6Sy", "fee": 1400000, "feeAssetId": null, "timestamp": 1658840012230, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "5MYJDkQ7xxGxh6ZuxLxKtMxiDnnxg4HUkkeNQG8biM17sh4KTa8mKybn9fED9BgSyG8ifioiTsdinFACjVsWZC7Q" ], "script": "base64:BgIeCAISABIAEgASABIAEgASABIAEgASABIAEgASABIAHQAKdXNkdFVzZG5MUAEg202DNWRHG5bvnwwvoM991XmdkujhmzUPwT/MewJwKQsADXVzZHRVc2RuTFBUQ0kBIAqBzantQGEdmEq4Oth6BGhTCCbAyZjxYcEpfvod3iryAAh3eFVzZG5MUAEgG7mhj3vOTKXN+s5HyQsWjk32W97C65PB1sWo0bGqCxwAC3d4VXNkbkxQVENJASC37N3mGwJ72rYTh/1V0NY8tseiNz1LiL3Be29IRACYLwAKdXNkY1VzZG5MUAEgA2kB/BsKmAqIzY/+EVmFhSaRMrNakvwm6Uhd05/eXHYADXVzZGNVc2RuTFBUQ0kBIPYCN93Tn++GRS9cI0cPlV/ROm2hK8KntJtUQQdS9W7GAAp1c2RjVXNkdExQASDG+KR0G1ZIVhCfkH7CM/Qxa4sESiwr/ZlLh/WFm3zkjAANdXNkY1VzZHRMUFRDSQEgAsaFfARLM8fi74dnh1L7VYL9s9+EI7agWsU13c9XSv4ADHB1enpsZVVzZG5MUAEgwzPGdM4jqqQi30kk5cSZa3gEsHdWgnT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kCBRFrZXl3eFVzZG5Db21wb3VuZAAACQDMCAIFA3VwZAkAzAgCBQR1cGRLBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5nhL4Kg==", "height": 2156787, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: kfv1gVWWBbzHeKG2q6RcURQqeWHZWJmNfruMme1Cmuq Next: 4p27Ei2LgoqxkPStNyzyNjY31RfgTN88R341B365bt4U Diff:
OldNewDifferences
9898 let usdnUsdtStaked = valueOrElse(getInteger(this, keyStaked), 0)
9999 let forSingleTCI = fraction(usdnUsdtStaked, def, TCIAmount)
100100 let usdnLpToWithdraw = fraction(forSingleTCI, am, def)
101- let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", usdnLpToWithdraw], nil)
101+ let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", usdnLpToWithdraw], [payment])
102102 let fee = fraction(usdnLpToWithdraw, def, feePerc)
103103 let brn = Burn(usdtUsdnLPTCI, am)
104104 if ((brn == brn))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let usdtUsdnLP = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS'
55
66 let usdtUsdnLPTCI = base58'i1snzKxSEZVokh9TWj8hTJQEDBsocnL2hRWsSbsMPK7'
77
88 let wxUsdnLP = base58'2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib'
99
1010 let wxUsdnLPTCI = base58'DNy6WBfhPE4y82RonGdHhZEunNotEDzmNfrBomWnsyGi'
1111
1212 let usdcUsdnLP = base58'EK6N7S38xbtBT3SxAqoGdDLCiX6rojX6G169CnSyuE5'
1313
1414 let usdcUsdnLPTCI = base58'HZKFpNfyPG5gt4D6Nfy1zQSg2Ptmqv932GjNTCyBEeKP'
1515
1616 let usdcUsdtLP = base58'EPhdEfmQaNcHyvDmRGhnLhgcJtKZ2a4k3ZBmKWtAEWyH'
1717
1818 let usdcUsdtLPTCI = base58'BqPYkaiz7Le6fFu1rjZ54anrpT57EpvyugZCUqrsjXj'
1919
2020 let puzzleUsdnLP = base58'E8zHu33GfcNyGLypX77gZiUXfvuZQeaYmiEfsy7VYNwP'
2121
2222 let puzzleUsdnLPTCI = base58'Dh9QXSSABE5V6aRfu3mCbDAUokbpE7ER7pbZV6cvyg1A'
2323
2424 let wxId = base58'Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on'
2525
2626 let keySponsorship = "Sponsorship_in_lock"
2727
2828 let isStopped = false
2929
3030 let keyStaked = "STAKED_LP"
3131
3232 let keyCompound = "From_Compound"
3333
3434 let keywxUsdnCompound = "WX_USDN_compound"
3535
3636 let keyWXUSDN = "WX_USDN"
3737
3838 let keyUsdcUsdnCompound = "USDC_USDN_compound"
3939
4040 let keyUSDCUSDN = "USDC_USDN"
4141
4242 let keyUsdcUsdtCompound = "USDC_USDT_compound"
4343
4444 let keyUSDCUSDT = "USDC_USDT"
4545
4646 let keyPuzzleUsdnCompound = "PUZZLE_USDN_compound"
4747
4848 let keyPUZZLEUSDN = "PUZZLE_USDN"
4949
5050 let def = 100000000
5151
5252 let feePerc = 10000000000
5353
5454 let tw = base58'3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH'
5555
5656 let oracle = base58'3NAVBWBnqieKa3CdN39MAhToyTHShYxX1gB'
5757
5858 let stakePool = "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz"
5959
6060 func checkAddress (caller) = if ((caller != oracle))
6161 then false
6262 else true
6363
6464
6565 @Callable(i)
6666 func initUsdtUsdn () = {
6767 let pm = value(i.payments[0])
6868 let am = pm.amount
6969 if ((pm.assetId != usdtUsdnLP))
7070 then throw("Unexpected token")
7171 else {
7272 let s = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pm])
7373 if ((s == s))
7474 then {
7575 let upd = IntegerEntry(keyStaked, am)
7676 let updK = IntegerEntry(keyCompound, 0)
7777 [upd, updK]
7878 }
7979 else throw("Strict value is not equal to itself.")
8080 }
8181 }
8282
8383
8484
8585 @Callable(i)
8686 func withdraw () = {
8787 let payment = value(i.payments[0])
8888 let am = payment.amount
8989 let id = payment.assetId
9090 if ((id == usdtUsdnLPTCI))
9191 then {
9292 let TCIAmount = match assetInfo(usdtUsdnLPTCI) {
9393 case q: Asset =>
9494 q.quantity
9595 case _ =>
9696 0
9797 }
9898 let usdnUsdtStaked = valueOrElse(getInteger(this, keyStaked), 0)
9999 let forSingleTCI = fraction(usdnUsdtStaked, def, TCIAmount)
100100 let usdnLpToWithdraw = fraction(forSingleTCI, am, def)
101- let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", usdnLpToWithdraw], nil)
101+ let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", usdnLpToWithdraw], [payment])
102102 let fee = fraction(usdnLpToWithdraw, def, feePerc)
103103 let brn = Burn(usdtUsdnLPTCI, am)
104104 if ((brn == brn))
105105 then {
106106 let updateUsdnLpStaked = IntegerEntry(keyStaked, (usdnUsdtStaked - usdnLpToWithdraw))
107107 let usdnLpfeeTransfer = ScriptTransfer(Address(tw), fee, usdtUsdnLP)
108108 let transfer = ScriptTransfer(i.caller, (usdnLpToWithdraw - fee), usdtUsdnLP)
109109 [usdnLpfeeTransfer, transfer, updateUsdnLpStaked]
110110 }
111111 else throw("Strict value is not equal to itself.")
112112 }
113113 else if ((id == wxUsdnLPTCI))
114114 then {
115115 let wxTciAm = match assetInfo(wxUsdnLPTCI) {
116116 case q: Asset =>
117117 q.quantity
118118 case _ =>
119119 0
120120 }
121121 let wxUsdnStaked = valueOrElse(getInteger(this, keyWXUSDN), 0)
122122 let singleWXLP = fraction(wxUsdnStaked, def, wxTciAm)
123123 let wxLpToWithdraw = fraction(singleWXLP, am, def)
124124 let fee = fraction(wxLpToWithdraw, def, feePerc)
125125 let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", wxLpToWithdraw], nil)
126126 if ((unstake == unstake))
127127 then {
128128 let wxLpFeeTransfer = ScriptTransfer(Address(tw), fee, wxUsdnLP)
129129 let wxLpTransfer = ScriptTransfer(i.caller, (am - fee), wxUsdnLP)
130130 let updateWxLpStaked = IntegerEntry(keyWXUSDN, (wxUsdnStaked - wxLpToWithdraw))
131131 let burnWxLpTci = Burn(wxUsdnLP, am)
132132 if ((burnWxLpTci == burnWxLpTci))
133133 then [wxLpFeeTransfer, wxLpTransfer, updateWxLpStaked]
134134 else throw("Strict value is not equal to itself.")
135135 }
136136 else throw("Strict value is not equal to itself.")
137137 }
138138 else if ((id == usdcUsdnLPTCI))
139139 then {
140140 let usdcUsdnTCI = match assetInfo(usdcUsdnLPTCI) {
141141 case q: Asset =>
142142 q.quantity
143143 case _ =>
144144 0
145145 }
146146 let usdcUsdnStaked = valueOrElse(getInteger(this, keyUSDCUSDN), 0)
147147 let singleUsdcLP = fraction(usdcUsdnTCI, def, usdcUsdnStaked)
148148 let usdcLpToWithdraw = fraction(singleUsdcLP, am, def)
149149 let fee = fraction(usdcLpToWithdraw, def, feePerc)
150150 let usdcUsdnLPFee = ScriptTransfer(Address(tw), fee, usdcUsdnLP)
151151 let usdcUsdnTransfer = ScriptTransfer(i.caller, (am - fee), usdcUsdnLP)
152152 let updateUsdcUsdnLpStaked = IntegerEntry(keyUSDCUSDN, (usdcUsdnStaked - usdcLpToWithdraw))
153153 let burnUsdcUsdnLpTci = Burn(usdcUsdnLPTCI, am)
154154 if ((burnUsdcUsdnLpTci == burnUsdcUsdnLpTci))
155155 then [usdcUsdnLPFee, usdcUsdnTransfer, updateUsdcUsdnLpStaked]
156156 else throw("Strict value is not equal to itself.")
157157 }
158158 else if ((id == usdcUsdtLPTCI))
159159 then {
160160 let usdcUsdtTci = match assetInfo(usdcUsdnLPTCI) {
161161 case q: Asset =>
162162 q.quantity
163163 case _ =>
164164 0
165165 }
166166 let usdcUsdtStaked = valueOrElse(getInteger(this, keyUSDCUSDT), 0)
167167 let singleUsdcUsdt = fraction(usdcUsdtTci, def, usdcUsdtStaked)
168168 let usdcUsdtLpToWithdraw = fraction(singleUsdcUsdt, am, def)
169169 let fee = fraction(usdcUsdtLpToWithdraw, def, feePerc)
170170 let usdcUsdtLPFee = ScriptTransfer(Address(tw), fee, usdcUsdtLP)
171171 let usdcUsdtTransfer = ScriptTransfer(i.caller, (am - fee), usdcUsdtLP)
172172 let updateUsdcUsdtLpStaked = IntegerEntry(keyUSDCUSDT, (usdcUsdtStaked - usdcUsdtLpToWithdraw))
173173 let burnWxLpTci = Burn(usdcUsdnLPTCI, am)
174174 if ((burnWxLpTci == burnWxLpTci))
175175 then [usdcUsdtLPFee, usdcUsdtTransfer, updateUsdcUsdtLpStaked]
176176 else throw("Strict value is not equal to itself.")
177177 }
178178 else if ((id == puzzleUsdnLPTCI))
179179 then {
180180 let puzzleUsdnTci = match assetInfo(puzzleUsdnLPTCI) {
181181 case q: Asset =>
182182 q.quantity
183183 case _ =>
184184 0
185185 }
186186 let puzzleLPStaked = valueOrElse(getInteger(this, keyPUZZLEUSDN), 0)
187187 let singlePuzzleUsdn = fraction(puzzleUsdnTci, def, puzzleLPStaked)
188188 let puzzleUsdnWithdraw = fraction(singlePuzzleUsdn, am, def)
189189 let fee = fraction(puzzleUsdnWithdraw, def, feePerc)
190190 let puzzleUsdnLPFee = ScriptTransfer(Address(tw), fee, puzzleUsdnLP)
191191 let puzzleUsdnTransfer = ScriptTransfer(i.caller, (am - fee), puzzleUsdnLP)
192192 let updatePuzzleUsdnLpStaked = IntegerEntry(keyPUZZLEUSDN, (puzzleLPStaked - puzzleUsdnWithdraw))
193193 let burnPuzzleTCI = Burn(puzzleUsdnLPTCI, am)
194194 if ((burnPuzzleTCI == burnPuzzleTCI))
195195 then [puzzleUsdnLPFee, puzzleUsdnTransfer, updatePuzzleUsdnLpStaked]
196196 else throw("Strict value is not equal to itself.")
197197 }
198198 else throw("Invalid asset")
199199 }
200200
201201
202202
203203 @Callable(i)
204204 func depositWxUsdnLP () = {
205205 let pmt = value(i.payments[0])
206206 let pmtAmount = pmt.amount
207207 if ((pmt.assetId != wxUsdnLP))
208208 then throw("attach WXUSDNLP tokens only")
209209 else if (isStopped)
210210 then throw("smart contract is on lock")
211211 else {
212212 let tkStaked = valueOrElse(getInteger(this, keyWXUSDN), 0)
213213 let totalIssued = match assetInfo(wxUsdnLPTCI) {
214214 case asset: Asset =>
215215 asset.quantity
216216 case _ =>
217217 throw("Can't find asset")
218218 }
219219 let one = fraction(totalIssued, 100000000, tkStaked)
220220 let toIssue = fraction(pmtAmount, one, 100000000)
221221 let updateState = IntegerEntry(keyWXUSDN, (tkStaked + pmtAmount))
222222 let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
223223 if ((LPstake == LPstake))
224224 then {
225225 let LPIssue = Reissue(wxUsdnLPTCI, toIssue, true)
226226 let transfer = ScriptTransfer(i.caller, toIssue, wxUsdnLPTCI)
227227 [LPIssue, transfer, updateState]
228228 }
229229 else throw("Strict value is not equal to itself.")
230230 }
231231 }
232232
233233
234234
235235 @Callable(i)
236236 func depositUsdtUsdnLP () = {
237237 let pmt = value(i.payments[0])
238238 let pmtAmount = pmt.amount
239239 if ((pmt.assetId != usdtUsdnLP))
240240 then throw("attach USDTUSDNLP tokens only")
241241 else if (isStopped)
242242 then throw("smart contract is on lock")
243243 else {
244244 let tkStaked = valueOrElse(getInteger(this, keyStaked), 0)
245245 let totalIssued = match assetInfo(usdtUsdnLPTCI) {
246246 case asset: Asset =>
247247 asset.quantity
248248 case _ =>
249249 throw("Can't find asset")
250250 }
251251 let fromCompound = valueOrElse(getInteger(this, keyCompound), 0)
252252 let forOne = fraction(totalIssued, 100000000, tkStaked)
253253 let toIssue = fraction(pmtAmount, forOne, 100000000)
254254 let updateState = IntegerEntry(keyStaked, (tkStaked + pmtAmount))
255255 let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
256256 if ((LPstake == LPstake))
257257 then {
258258 let LPIssue = Reissue(usdtUsdnLPTCI, toIssue, true)
259259 let transfer = ScriptTransfer(i.caller, toIssue, usdtUsdnLPTCI)
260260 [LPIssue, transfer, updateState]
261261 }
262262 else throw("Strict value is not equal to itself.")
263263 }
264264 }
265265
266266
267267
268268 @Callable(i)
269269 func depositUsdcUsdnLP () = {
270270 let pmt = value(i.payments[0])
271271 let pmtAmount = pmt.amount
272272 if ((pmt.assetId != usdcUsdnLP))
273273 then throw("attach USDCUSDNLP tokens only")
274274 else if (isStopped)
275275 then throw("smart contract is on lock")
276276 else {
277277 let tkStaked = valueOrElse(getInteger(this, keyUSDCUSDN), 0)
278278 let totalIssued = match assetInfo(usdcUsdnLPTCI) {
279279 case asset: Asset =>
280280 asset.quantity
281281 case _ =>
282282 throw("Can't find asset")
283283 }
284284 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdnCompound), 0)
285285 let forOne = fraction(totalIssued, 100000000, tkStaked)
286286 let toIssue = fraction(pmtAmount, forOne, 100000000)
287287 let updateState = IntegerEntry(keyUSDCUSDN, (tkStaked + pmtAmount))
288288 let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
289289 if ((LPstake == LPstake))
290290 then {
291291 let LPIssue = Reissue(usdcUsdnLPTCI, toIssue, true)
292292 let transfer = ScriptTransfer(i.caller, toIssue, usdcUsdnLPTCI)
293293 [LPIssue, transfer, updateState]
294294 }
295295 else throw("Strict value is not equal to itself.")
296296 }
297297 }
298298
299299
300300
301301 @Callable(i)
302302 func depositUsdcUsdtLP () = {
303303 let pmt = value(i.payments[0])
304304 let pmtAmount = pmt.amount
305305 if ((pmt.assetId != usdcUsdtLP))
306306 then throw("attach USDCUSDTLP tokens only")
307307 else if (isStopped)
308308 then throw("smart contract is on lock")
309309 else {
310310 let tkStaked = valueOrElse(getInteger(this, keyUSDCUSDT), 0)
311311 let totalIssued = match assetInfo(usdcUsdtLPTCI) {
312312 case asset: Asset =>
313313 asset.quantity
314314 case _ =>
315315 throw("Can't find asset")
316316 }
317317 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdtCompound), 0)
318318 let forOne = fraction(totalIssued, 100000000, tkStaked)
319319 let toIssue = fraction(pmtAmount, forOne, 100000000)
320320 let updateState = IntegerEntry(keyUSDCUSDT, (tkStaked + pmtAmount))
321321 let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
322322 if ((LPstake == LPstake))
323323 then {
324324 let LPIssue = Reissue(usdcUsdtLPTCI, toIssue, true)
325325 let transfer = ScriptTransfer(i.caller, toIssue, usdcUsdtLPTCI)
326326 [LPIssue, transfer, updateState]
327327 }
328328 else throw("Strict value is not equal to itself.")
329329 }
330330 }
331331
332332
333333
334334 @Callable(i)
335335 func depositPuzzleUsdnLP () = {
336336 let pmt = value(i.payments[0])
337337 let pmtAmount = pmt.amount
338338 if ((pmt.assetId != puzzleUsdnLP))
339339 then throw("attach PUZZLEUDSNLP tokens only")
340340 else if (isStopped)
341341 then throw("smart contract is on lock")
342342 else {
343343 let tkStaked = valueOrElse(getInteger(this, keyPUZZLEUSDN), 0)
344344 let totalIssued = match assetInfo(puzzleUsdnLPTCI) {
345345 case asset: Asset =>
346346 asset.quantity
347347 case _ =>
348348 throw("Can't find asset")
349349 }
350350 let fromCompound = valueOrElse(getInteger(this, keyPuzzleUsdnCompound), 0)
351351 let forOne = fraction(totalIssued, 100000000, tkStaked)
352352 let toIssue = fraction(pmtAmount, forOne, 100000000)
353353 let updateState = IntegerEntry(keyPUZZLEUSDN, (tkStaked + pmtAmount))
354354 let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
355355 if ((LPstake == LPstake))
356356 then {
357357 let LPIssue = Reissue(puzzleUsdnLPTCI, toIssue, true)
358358 let transfer = ScriptTransfer(i.caller, toIssue, puzzleUsdnLPTCI)
359359 [LPIssue, transfer, updateState]
360360 }
361361 else throw("Strict value is not equal to itself.")
362362 }
363363 }
364364
365365
366366
367367 @Callable(i)
368368 func compoundWxUsdnLP () = {
369369 let compound = value(i.payments[0])
370370 let ca = compound.amount
371371 let isOracle = checkAddress(i.caller.bytes)
372372 if ((compound.assetId != wxUsdnLP))
373373 then throw("attach WXUSDNLP tokens only")
374374 else if (!(isOracle))
375375 then throw("You are not authotized to call this function")
376376 else {
377377 let fromCompound = valueOrElse(getInteger(this, keywxUsdnCompound), 0)
378378 let totalStaked = valueOrElse(getInteger(this, keyWXUSDN), 0)
379379 let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
380380 if ((stakeC == stakeC))
381381 then {
382382 let updateState = IntegerEntry(keyWXUSDN, (totalStaked + ca))
383383 let tc = IntegerEntry(keywxUsdnCompound, (fromCompound + ca))
384384 [updateState, tc]
385385 }
386386 else throw("Strict value is not equal to itself.")
387387 }
388388 }
389389
390390
391391
392392 @Callable(i)
393393 func compoundUsdtUsdnLP () = {
394394 let compound = value(i.payments[0])
395395 let ca = compound.amount
396396 let isOracle = checkAddress(i.caller.bytes)
397397 if ((compound.assetId != usdtUsdnLP))
398398 then throw("attach USDTUSDNLP tokens only")
399399 else if (!(isOracle))
400400 then throw("You are not authotized to call this function")
401401 else {
402402 let fromCompound = valueOrElse(getInteger(this, keyCompound), 0)
403403 let totalStaked = valueOrElse(getInteger(this, keyStaked), 0)
404404 let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
405405 if ((stakeC == stakeC))
406406 then {
407407 let updateState = IntegerEntry(keyStaked, (totalStaked + ca))
408408 let tc = IntegerEntry(keyCompound, (fromCompound + ca))
409409 [updateState, tc]
410410 }
411411 else throw("Strict value is not equal to itself.")
412412 }
413413 }
414414
415415
416416
417417 @Callable(i)
418418 func compoundUsdcUsdnLP () = {
419419 let compound = value(i.payments[0])
420420 let ca = compound.amount
421421 let isOracle = checkAddress(i.caller.bytes)
422422 if ((compound.assetId != usdcUsdnLP))
423423 then throw("attach USDCUSDNLP tokens only")
424424 else if (!(isOracle))
425425 then throw("You are not authotized to call this function")
426426 else {
427427 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdnCompound), 0)
428428 let totalStaked = valueOrElse(getInteger(this, keyUSDCUSDN), 0)
429429 let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
430430 if ((stakeC == stakeC))
431431 then {
432432 let updateState = IntegerEntry(keyUSDCUSDN, (totalStaked + ca))
433433 let tc = IntegerEntry(keyUsdcUsdnCompound, (fromCompound + ca))
434434 [updateState, tc]
435435 }
436436 else throw("Strict value is not equal to itself.")
437437 }
438438 }
439439
440440
441441
442442 @Callable(i)
443443 func compoundUsdcUsdtLP () = {
444444 let compound = value(i.payments[0])
445445 let ca = compound.amount
446446 let isOracle = checkAddress(i.caller.bytes)
447447 if ((compound.assetId != usdcUsdtLP))
448448 then throw("attach USDCUSDTLP tokens only")
449449 else if (!(isOracle))
450450 then throw("You are not authotized to call this function")
451451 else {
452452 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdtCompound), 0)
453453 let totalStaked = valueOrElse(getInteger(this, keyUSDCUSDT), 0)
454454 let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
455455 if ((stakeC == stakeC))
456456 then {
457457 let updateState = IntegerEntry(keyUSDCUSDT, (totalStaked + ca))
458458 let tc = IntegerEntry(keyUsdcUsdtCompound, (fromCompound + ca))
459459 [updateState, tc]
460460 }
461461 else throw("Strict value is not equal to itself.")
462462 }
463463 }
464464
465465
466466
467467 @Callable(i)
468468 func compoundPuzzleUsdnLP () = {
469469 let compound = value(i.payments[0])
470470 let ca = compound.amount
471471 let isOracle = checkAddress(i.caller.bytes)
472472 if ((compound.assetId != puzzleUsdnLP))
473473 then throw("attach PUZZLEUSDNLP tokens only")
474474 else if (!(isOracle))
475475 then throw("You are not authotized to call this function")
476476 else {
477477 let fromCompound = valueOrElse(getInteger(this, keyPuzzleUsdnCompound), 0)
478478 let totalStaked = valueOrElse(getInteger(this, keyPUZZLEUSDN), 0)
479479 let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
480480 if ((stakeC == stakeC))
481481 then {
482482 let updateState = IntegerEntry(keyPUZZLEUSDN, (totalStaked + ca))
483483 let tc = IntegerEntry(keyPuzzleUsdnCompound, (fromCompound + ca))
484484 [updateState, tc]
485485 }
486486 else throw("Strict value is not equal to itself.")
487487 }
488488 }
489489
490490
491491
492492 @Callable(i)
493493 func sponsorBoost () = {
494494 let pm = value(i.payments[0])
495495 let lockPeriod = 100
496496 if ((pm.assetId != wxId))
497497 then throw("Error")
498498 else {
499499 let sponsored = valueOrElse(getInteger(this, keySponsorship), 0)
500500 let lock = invoke(Address(base58'3PJL8Hn8LACaSBWLQ3UVhctA5cTQLBFwBAP'), "increaseLock", [lockPeriod], [pm])
501501 if ((lock == lock))
502502 then {
503503 let s = IntegerEntry(keySponsorship, (pm.amount + sponsored))
504504 [s]
505505 }
506506 else throw("Strict value is not equal to itself.")
507507 }
508508 }
509509
510510
511511
512512 @Callable(i)
513513 func initWX () = {
514514 let pm = value(i.payments[0])
515515 let am = pm.amount
516516 if ((pm.assetId != wxUsdnLP))
517517 then throw("Unexpected token")
518518 else {
519519 let s = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pm])
520520 if ((s == s))
521521 then {
522522 let upd = IntegerEntry(keyWXUSDN, am)
523523 let updK = IntegerEntry(keywxUsdnCompound, 0)
524524 [upd, updK]
525525 }
526526 else throw("Strict value is not equal to itself.")
527527 }
528528 }
529529
530530
531531 @Verifier(tx)
532532 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
533533

github/deemru/w8io/fabc49c 
47.96 ms