tx · 4p27Ei2LgoqxkPStNyzyNjY31RfgTN88R341B365bt4U

3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH:  -0.01400000 Waves

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

{ "type": 13, "id": "4p27Ei2LgoqxkPStNyzyNjY31RfgTN88R341B365bt4U", "fee": 1400000, "feeAssetId": null, "timestamp": 1658840047020, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "5zFeFBtGSEDEURtSteBzuByjwPrjoE7icTJBXtn4Kycwxwq3pCjRaBcCHGGu2BPniLiqeYHXNdxyRHpy28JrPGoV" ], "script": "base64:BgIeCAISABIAEgASABIAEgASABIAEgASABIAEgASABIAHQAKdXNkdFVzZG5MUAEg202DNWRHG5bvnwwvoM991XmdkujhmzUPwT/MewJwKQsADXVzZHRVc2RuTFBUQ0kBIAqBzantQGEdmEq4Oth6BGhTCCbAyZjxYcEpfvod3iryAAh3eFVzZG5MUAEgG7mhj3vOTKXN+s5HyQsWjk32W97C65PB1sWo0bGqCxwAC3d4VXNkbkxQVENJASC37N3mGwJ72rYTh/1V0NY8tseiNz1LiL3Be29IRACYLwAKdXNkY1VzZG5MUAEgA2kB/BsKmAqIzY/+EVmFhSaRMrNakvwm6Uhd05/eXHYADXVzZGNVc2RuTFBUQ0kBIPYCN93Tn++GRS9cI0cPlV/ROm2hK8KntJtUQQdS9W7GAAp1c2RjVXNkdExQASDG+KR0G1ZIVhCfkH7CM/Qxa4sESiwr/ZlLh/WFm3zkjAANdXNkY1VzZHRMUFRDSQEgAsaFfARLM8fi74dnh1L7VYL9s9+EI7agWsU13c9XSv4ADHB1enpsZVVzZG5MUAEgwzPGdM4jqqQi30kk5cSZa3gEsHdWgnT/uNEdSo0c0Z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a2V5d3hVc2RuQ29tcG91bmQAAAkAzAgCBQN1cGQJAMwIAgUEdXBkSwUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tledUz9hc=", "height": 2156788, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8ALAcrMXj7qSSTopDNd3iJunXv7TVx9FRQ732fU8T6Sy Next: 8jKD68yjCcXXkBQjusT8gMB6KnkQ6rJKhpUGzSTeziA6 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], [payment])
101+ let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", usdnLpToWithdraw], nil)
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], [payment])
101+ let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", usdnLpToWithdraw], nil)
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/026f985 
79.68 ms