tx · 2C5tJiNySGYfUooFr18h2CsTMoT1EUeP4CgNnLr2W4Mg

3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH:  -0.01400000 Waves

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

{ "type": 13, "id": "2C5tJiNySGYfUooFr18h2CsTMoT1EUeP4CgNnLr2W4Mg", "fee": 1400000, "feeAssetId": null, "timestamp": 1658837741978, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "4QVWdg7ezSZpJ5BA6ZQib68ZcpcGqvC69ouwpuwXjgreQk5oXbUX2XaRC2ouinqG7PpU6LDGBAsFAY6Px8ZpSgVP" ], "script": "base64:BgIeCAISABIAEgASABIAEgASABIAEgASABIAEgASABIAHQAKdXNkdFVzZG5MUAEg202DNWRHG5bvnwwvoM991XmdkujhmzUPwT/MewJwKQsADXVzZHRVc2RuTFBUQ0kBIAqBzantQGEdmEq4Oth6BGhTCCbAyZjxYcEpfvod3iryAAh3eFVzZG5MUAEgG7mhj3vOTKXN+s5HyQsWjk32W97C65PB1sWo0bGqCxwAC3d4VXNkbkxQVENJASC37N3mGwJ72rYTh/1V0NY8tseiNz1LiL3Be29IRACYLwAKdXNkY1VzZG5MUAEgA2kB/BsKmAqIzY/+EVmFhSaRMrNakvwm6Uhd05/eXHYADXVzZGNVc2RuTFBUQ0kBIPYCN93Tn++GRS9cI0cPlV/ROm2hK8KntJtUQQdS9W7GAAp1c2RjVXNkdExQASDG+KR0G1ZIVhCfkH7CM/Qxa4sESiwr/ZlLh/WFm3zkjAANdXNkY1VzZHRMUFRDSQEgAsaFfARLM8fi74dnh1L7VYL9s9+EI7agWsU13c9XSv4ADHB1enpsZVVzZG5MUAEgwzPGdM4jqqQi30kk5cSZa3gEsHdW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wDCQAAAgUBcwUBcwQDdXBkCQEMSW50ZWdlckVudHJ5AgUJa2V5V1hVU0ROBQJhbQQEdXBkSwkBDEludGVnZXJFbnRyeQIFEWtleXd4VXNkbkNvbXBvdW5kAAAJAMwIAgUDdXBkCQDMCAIFBHVwZEsFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXn51pKA", "height": 2156750, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 81FMM2p8CUY4QDTGX3neMeFiQ83nsttiA1JjMmLbDGRe Next: 7yGNSCk7JCbvdRGw4o3pq7gtn1CAwWYYakMhhWwhQTvn Diff:
OldNewDifferences
287287 let forOne = fraction(totalIssued, 100000000, tkStaked)
288288 let toIssue = fraction(pmtAmount, forOne, 100000000)
289289 let updateState = IntegerEntry(keyUSDCUSDN, (tkStaked + pmtAmount))
290- let LPstake = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [pmt])
290+ let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
291291 if ((LPstake == LPstake))
292292 then {
293293 let LPIssue = Reissue(usdcUsdnLPTCI, toIssue, true)
320320 let forOne = fraction(totalIssued, 100000000, tkStaked)
321321 let toIssue = fraction(pmtAmount, forOne, 100000000)
322322 let updateState = IntegerEntry(keyUSDCUSDT, (tkStaked + pmtAmount))
323- let LPstake = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [pmt])
323+ let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
324324 if ((LPstake == LPstake))
325325 then {
326326 let LPIssue = Reissue(usdcUsdtLPTCI, toIssue, true)
353353 let forOne = fraction(totalIssued, 100000000, tkStaked)
354354 let toIssue = fraction(pmtAmount, forOne, 100000000)
355355 let updateState = IntegerEntry(keyPUZZLEUSDN, (tkStaked + pmtAmount))
356- let LPstake = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [pmt])
356+ let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
357357 if ((LPstake == LPstake))
358358 then {
359359 let LPIssue = Reissue(puzzleUsdnLPTCI, toIssue, true)
378378 else {
379379 let fromCompound = valueOrElse(getInteger(this, keywxUsdnCompound), 0)
380380 let totalStaked = valueOrElse(getInteger(this, keyWXUSDN), 0)
381- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
381+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
382382 if ((stakeC == stakeC))
383383 then {
384384 let updateState = IntegerEntry(keyWXUSDN, (totalStaked + ca))
403403 else {
404404 let fromCompound = valueOrElse(getInteger(this, keyCompound), 0)
405405 let totalStaked = valueOrElse(getInteger(this, keyStaked), 0)
406- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
406+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
407407 if ((stakeC == stakeC))
408408 then {
409409 let updateState = IntegerEntry(keyStaked, (totalStaked + ca))
428428 else {
429429 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdnCompound), 0)
430430 let totalStaked = valueOrElse(getInteger(this, keyUSDCUSDN), 0)
431- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
431+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
432432 if ((stakeC == stakeC))
433433 then {
434434 let updateState = IntegerEntry(keyUSDCUSDN, (totalStaked + ca))
453453 else {
454454 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdtCompound), 0)
455455 let totalStaked = valueOrElse(getInteger(this, keyUSDCUSDT), 0)
456- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
456+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
457457 if ((stakeC == stakeC))
458458 then {
459459 let updateState = IntegerEntry(keyUSDCUSDT, (totalStaked + ca))
478478 else {
479479 let fromCompound = valueOrElse(getInteger(this, keyPuzzleUsdnCompound), 0)
480480 let totalStaked = valueOrElse(getInteger(this, keyPUZZLEUSDN), 0)
481- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
481+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
482482 if ((stakeC == stakeC))
483483 then {
484484 let updateState = IntegerEntry(keyPUZZLEUSDN, (totalStaked + ca))
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'3P6phwFZFQtZFuc9dvdXsgvtg8JEFVgECPA'
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 == usdtUsdnLP))
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)
101101 let fee = fraction(usdnLpToWithdraw, def, feePerc)
102102 let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", am], [payment])
103103 if ((unstake == unstake))
104104 then {
105105 let usdnLpfeeTransfer = ScriptTransfer(Address(tw), fee, usdtUsdnLP)
106106 let transfer = ScriptTransfer(i.caller, (usdnLpToWithdraw - fee), usdtUsdnLP)
107107 let updateUsdnLpStaked = IntegerEntry(keyStaked, (usdnUsdtStaked - usdnLpToWithdraw))
108108 let brn = Burn(usdtUsdnLPTCI, am)
109109 if ((brn == brn))
110110 then [usdnLpfeeTransfer, transfer, updateUsdnLpStaked]
111111 else throw("Strict value is not equal to itself.")
112112 }
113113 else throw("Strict value is not equal to itself.")
114114 }
115115 else if ((id == wxUsdnLPTCI))
116116 then {
117117 let wxTciAm = match assetInfo(wxUsdnLPTCI) {
118118 case q: Asset =>
119119 q.quantity
120120 case _ =>
121121 0
122122 }
123123 let wxUsdnStaked = valueOrElse(getInteger(this, keyWXUSDN), 0)
124124 let singleWXLP = fraction(wxUsdnStaked, def, wxTciAm)
125125 let wxLpToWithdraw = fraction(singleWXLP, am, def)
126126 let fee = fraction(wxLpToWithdraw, def, feePerc)
127127 let unstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", am], [payment])
128128 if ((unstake == unstake))
129129 then {
130130 let wxLpFeeTransfer = ScriptTransfer(Address(tw), fee, wxUsdnLP)
131131 let wxLpTransfer = ScriptTransfer(i.caller, (am - fee), wxUsdnLP)
132132 let updateWxLpStaked = IntegerEntry(keyWXUSDN, (wxUsdnStaked - wxLpToWithdraw))
133133 let burnWxLpTci = Burn(wxUsdnLP, am)
134134 if ((burnWxLpTci == burnWxLpTci))
135135 then [wxLpFeeTransfer, wxLpTransfer, updateWxLpStaked]
136136 else throw("Strict value is not equal to itself.")
137137 }
138138 else throw("Strict value is not equal to itself.")
139139 }
140140 else if ((id == usdcUsdnLPTCI))
141141 then {
142142 let usdcUsdnTCI = match assetInfo(usdcUsdnLPTCI) {
143143 case q: Asset =>
144144 q.quantity
145145 case _ =>
146146 0
147147 }
148148 let usdcUsdnStaked = valueOrElse(getInteger(this, keyUSDCUSDN), 0)
149149 let singleUsdcLP = fraction(usdcUsdnTCI, def, usdcUsdnStaked)
150150 let usdcLpToWithdraw = fraction(singleUsdcLP, am, def)
151151 let fee = fraction(usdcLpToWithdraw, def, feePerc)
152152 let usdcUsdnLPFee = ScriptTransfer(Address(tw), fee, usdcUsdnLP)
153153 let usdcUsdnTransfer = ScriptTransfer(i.caller, (am - fee), usdcUsdnLP)
154154 let updateUsdcUsdnLpStaked = IntegerEntry(keyUSDCUSDN, (usdcUsdnStaked - usdcLpToWithdraw))
155155 let burnUsdcUsdnLpTci = Burn(usdcUsdnLPTCI, am)
156156 if ((burnUsdcUsdnLpTci == burnUsdcUsdnLpTci))
157157 then [usdcUsdnLPFee, usdcUsdnTransfer, updateUsdcUsdnLpStaked]
158158 else throw("Strict value is not equal to itself.")
159159 }
160160 else if ((id == usdcUsdtLPTCI))
161161 then {
162162 let usdcUsdtTci = match assetInfo(usdcUsdnLPTCI) {
163163 case q: Asset =>
164164 q.quantity
165165 case _ =>
166166 0
167167 }
168168 let usdcUsdtStaked = valueOrElse(getInteger(this, keyUSDCUSDT), 0)
169169 let singleUsdcUsdt = fraction(usdcUsdtTci, def, usdcUsdtStaked)
170170 let usdcUsdtLpToWithdraw = fraction(singleUsdcUsdt, am, def)
171171 let fee = fraction(usdcUsdtLpToWithdraw, def, feePerc)
172172 let usdcUsdtLPFee = ScriptTransfer(Address(tw), fee, usdcUsdtLP)
173173 let usdcUsdtTransfer = ScriptTransfer(i.caller, (am - fee), usdcUsdtLP)
174174 let updateUsdcUsdtLpStaked = IntegerEntry(keyUSDCUSDT, (usdcUsdtStaked - usdcUsdtLpToWithdraw))
175175 let burnWxLpTci = Burn(usdcUsdnLPTCI, am)
176176 if ((burnWxLpTci == burnWxLpTci))
177177 then [usdcUsdtLPFee, usdcUsdtTransfer, updateUsdcUsdtLpStaked]
178178 else throw("Strict value is not equal to itself.")
179179 }
180180 else if ((id == puzzleUsdnLPTCI))
181181 then {
182182 let puzzleUsdnTci = match assetInfo(puzzleUsdnLPTCI) {
183183 case q: Asset =>
184184 q.quantity
185185 case _ =>
186186 0
187187 }
188188 let puzzleLPStaked = valueOrElse(getInteger(this, keyPUZZLEUSDN), 0)
189189 let singlePuzzleUsdn = fraction(puzzleUsdnTci, def, puzzleLPStaked)
190190 let puzzleUsdnWithdraw = fraction(singlePuzzleUsdn, am, def)
191191 let fee = fraction(puzzleUsdnWithdraw, def, feePerc)
192192 let puzzleUsdnLPFee = ScriptTransfer(Address(tw), fee, puzzleUsdnLP)
193193 let puzzleUsdnTransfer = ScriptTransfer(i.caller, (am - fee), puzzleUsdnLP)
194194 let updatePuzzleUsdnLpStaked = IntegerEntry(keyPUZZLEUSDN, (puzzleLPStaked - puzzleUsdnWithdraw))
195195 let burnPuzzleTCI = Burn(puzzleUsdnLPTCI, am)
196196 if ((burnPuzzleTCI == burnPuzzleTCI))
197197 then [puzzleUsdnLPFee, puzzleUsdnTransfer, updatePuzzleUsdnLpStaked]
198198 else throw("Strict value is not equal to itself.")
199199 }
200200 else throw("Invalid asset")
201201 }
202202
203203
204204
205205 @Callable(i)
206206 func depositWxUsdnLP () = {
207207 let pmt = value(i.payments[0])
208208 let pmtAmount = pmt.amount
209209 if ((pmt.assetId != wxUsdnLP))
210210 then throw("attach WXUSDNLP tokens only")
211211 else if (isStopped)
212212 then throw("smart contract is on lock")
213213 else {
214214 let tkStaked = valueOrElse(getInteger(this, keyWXUSDN), 0)
215215 let totalIssued = match assetInfo(wxUsdnLPTCI) {
216216 case asset: Asset =>
217217 asset.quantity
218218 case _ =>
219219 throw("Can't find asset")
220220 }
221221 let one = fraction(totalIssued, 100000000, tkStaked)
222222 let toIssue = fraction(pmtAmount, one, 100000000)
223223 let updateState = IntegerEntry(keyWXUSDN, (tkStaked + pmtAmount))
224224 let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
225225 if ((LPstake == LPstake))
226226 then {
227227 let LPIssue = Reissue(wxUsdnLPTCI, toIssue, true)
228228 let transfer = ScriptTransfer(i.caller, toIssue, wxUsdnLPTCI)
229229 [LPIssue, transfer, updateState]
230230 }
231231 else throw("Strict value is not equal to itself.")
232232 }
233233 }
234234
235235
236236
237237 @Callable(i)
238238 func depositUsdtUsdnLP () = {
239239 let pmt = value(i.payments[0])
240240 let pmtAmount = pmt.amount
241241 if ((pmt.assetId != usdtUsdnLP))
242242 then throw("attach USDTUSDNLP tokens only")
243243 else if (isStopped)
244244 then throw("smart contract is on lock")
245245 else {
246246 let tkStaked = valueOrElse(getInteger(this, keyStaked), 0)
247247 let totalIssued = match assetInfo(usdtUsdnLPTCI) {
248248 case asset: Asset =>
249249 asset.quantity
250250 case _ =>
251251 throw("Can't find asset")
252252 }
253253 let fromCompound = valueOrElse(getInteger(this, keyCompound), 0)
254254 let forOne = fraction(totalIssued, 100000000, tkStaked)
255255 let toIssue = fraction(pmtAmount, forOne, 100000000)
256256 let updateState = IntegerEntry(keyStaked, (tkStaked + pmtAmount))
257257 let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
258258 if ((LPstake == LPstake))
259259 then {
260260 let LPIssue = Reissue(usdtUsdnLPTCI, toIssue, true)
261261 let transfer = ScriptTransfer(i.caller, toIssue, usdtUsdnLPTCI)
262262 [LPIssue, transfer, updateState]
263263 }
264264 else throw("Strict value is not equal to itself.")
265265 }
266266 }
267267
268268
269269
270270 @Callable(i)
271271 func depositUsdcUsdnLP () = {
272272 let pmt = value(i.payments[0])
273273 let pmtAmount = pmt.amount
274274 if ((pmt.assetId != usdcUsdnLP))
275275 then throw("attach USDCUSDNLP tokens only")
276276 else if (isStopped)
277277 then throw("smart contract is on lock")
278278 else {
279279 let tkStaked = valueOrElse(getInteger(this, keyUSDCUSDN), 0)
280280 let totalIssued = match assetInfo(usdcUsdnLPTCI) {
281281 case asset: Asset =>
282282 asset.quantity
283283 case _ =>
284284 throw("Can't find asset")
285285 }
286286 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdnCompound), 0)
287287 let forOne = fraction(totalIssued, 100000000, tkStaked)
288288 let toIssue = fraction(pmtAmount, forOne, 100000000)
289289 let updateState = IntegerEntry(keyUSDCUSDN, (tkStaked + pmtAmount))
290- let LPstake = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [pmt])
290+ let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
291291 if ((LPstake == LPstake))
292292 then {
293293 let LPIssue = Reissue(usdcUsdnLPTCI, toIssue, true)
294294 let transfer = ScriptTransfer(i.caller, toIssue, usdcUsdnLPTCI)
295295 [LPIssue, transfer, updateState]
296296 }
297297 else throw("Strict value is not equal to itself.")
298298 }
299299 }
300300
301301
302302
303303 @Callable(i)
304304 func depositUsdcUsdtLP () = {
305305 let pmt = value(i.payments[0])
306306 let pmtAmount = pmt.amount
307307 if ((pmt.assetId != usdcUsdtLP))
308308 then throw("attach USDCUSDTLP tokens only")
309309 else if (isStopped)
310310 then throw("smart contract is on lock")
311311 else {
312312 let tkStaked = valueOrElse(getInteger(this, keyUSDCUSDT), 0)
313313 let totalIssued = match assetInfo(usdcUsdtLPTCI) {
314314 case asset: Asset =>
315315 asset.quantity
316316 case _ =>
317317 throw("Can't find asset")
318318 }
319319 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdtCompound), 0)
320320 let forOne = fraction(totalIssued, 100000000, tkStaked)
321321 let toIssue = fraction(pmtAmount, forOne, 100000000)
322322 let updateState = IntegerEntry(keyUSDCUSDT, (tkStaked + pmtAmount))
323- let LPstake = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [pmt])
323+ let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
324324 if ((LPstake == LPstake))
325325 then {
326326 let LPIssue = Reissue(usdcUsdtLPTCI, toIssue, true)
327327 let transfer = ScriptTransfer(i.caller, toIssue, usdcUsdtLPTCI)
328328 [LPIssue, transfer, updateState]
329329 }
330330 else throw("Strict value is not equal to itself.")
331331 }
332332 }
333333
334334
335335
336336 @Callable(i)
337337 func depositPuzzleUsdnLP () = {
338338 let pmt = value(i.payments[0])
339339 let pmtAmount = pmt.amount
340340 if ((pmt.assetId != puzzleUsdnLP))
341341 then throw("attach PUZZLEUDSNLP tokens only")
342342 else if (isStopped)
343343 then throw("smart contract is on lock")
344344 else {
345345 let tkStaked = valueOrElse(getInteger(this, keyPUZZLEUSDN), 0)
346346 let totalIssued = match assetInfo(puzzleUsdnLPTCI) {
347347 case asset: Asset =>
348348 asset.quantity
349349 case _ =>
350350 throw("Can't find asset")
351351 }
352352 let fromCompound = valueOrElse(getInteger(this, keyPuzzleUsdnCompound), 0)
353353 let forOne = fraction(totalIssued, 100000000, tkStaked)
354354 let toIssue = fraction(pmtAmount, forOne, 100000000)
355355 let updateState = IntegerEntry(keyPUZZLEUSDN, (tkStaked + pmtAmount))
356- let LPstake = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [pmt])
356+ let LPstake = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pmt])
357357 if ((LPstake == LPstake))
358358 then {
359359 let LPIssue = Reissue(puzzleUsdnLPTCI, toIssue, true)
360360 let transfer = ScriptTransfer(i.caller, toIssue, puzzleUsdnLPTCI)
361361 [LPIssue, transfer, updateState]
362362 }
363363 else throw("Strict value is not equal to itself.")
364364 }
365365 }
366366
367367
368368
369369 @Callable(i)
370370 func compoundWxUsdnLP () = {
371371 let compound = value(i.payments[0])
372372 let ca = compound.amount
373373 let isOracle = checkAddress(i.caller.bytes)
374374 if ((compound.assetId != wxUsdnLP))
375375 then throw("attach WXUSDNLP tokens only")
376376 else if (!(isOracle))
377377 then throw("You are not authotized to call this function")
378378 else {
379379 let fromCompound = valueOrElse(getInteger(this, keywxUsdnCompound), 0)
380380 let totalStaked = valueOrElse(getInteger(this, keyWXUSDN), 0)
381- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
381+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
382382 if ((stakeC == stakeC))
383383 then {
384384 let updateState = IntegerEntry(keyWXUSDN, (totalStaked + ca))
385385 let tc = IntegerEntry(keywxUsdnCompound, (fromCompound + ca))
386386 [updateState, tc]
387387 }
388388 else throw("Strict value is not equal to itself.")
389389 }
390390 }
391391
392392
393393
394394 @Callable(i)
395395 func compoundUsdtUsdnLP () = {
396396 let compound = value(i.payments[0])
397397 let ca = compound.amount
398398 let isOracle = checkAddress(i.caller.bytes)
399399 if ((compound.assetId != usdtUsdnLP))
400400 then throw("attach USDTUSDNLP tokens only")
401401 else if (!(isOracle))
402402 then throw("You are not authotized to call this function")
403403 else {
404404 let fromCompound = valueOrElse(getInteger(this, keyCompound), 0)
405405 let totalStaked = valueOrElse(getInteger(this, keyStaked), 0)
406- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
406+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
407407 if ((stakeC == stakeC))
408408 then {
409409 let updateState = IntegerEntry(keyStaked, (totalStaked + ca))
410410 let tc = IntegerEntry(keyCompound, (fromCompound + ca))
411411 [updateState, tc]
412412 }
413413 else throw("Strict value is not equal to itself.")
414414 }
415415 }
416416
417417
418418
419419 @Callable(i)
420420 func compoundUsdcUsdnLP () = {
421421 let compound = value(i.payments[0])
422422 let ca = compound.amount
423423 let isOracle = checkAddress(i.caller.bytes)
424424 if ((compound.assetId != usdcUsdnLP))
425425 then throw("attach USDCUSDNLP tokens only")
426426 else if (!(isOracle))
427427 then throw("You are not authotized to call this function")
428428 else {
429429 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdnCompound), 0)
430430 let totalStaked = valueOrElse(getInteger(this, keyUSDCUSDN), 0)
431- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
431+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
432432 if ((stakeC == stakeC))
433433 then {
434434 let updateState = IntegerEntry(keyUSDCUSDN, (totalStaked + ca))
435435 let tc = IntegerEntry(keyUsdcUsdnCompound, (fromCompound + ca))
436436 [updateState, tc]
437437 }
438438 else throw("Strict value is not equal to itself.")
439439 }
440440 }
441441
442442
443443
444444 @Callable(i)
445445 func compoundUsdcUsdtLP () = {
446446 let compound = value(i.payments[0])
447447 let ca = compound.amount
448448 let isOracle = checkAddress(i.caller.bytes)
449449 if ((compound.assetId != usdcUsdtLP))
450450 then throw("attach USDCUSDTLP tokens only")
451451 else if (!(isOracle))
452452 then throw("You are not authotized to call this function")
453453 else {
454454 let fromCompound = valueOrElse(getInteger(this, keyUsdcUsdtCompound), 0)
455455 let totalStaked = valueOrElse(getInteger(this, keyUSDCUSDT), 0)
456- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
456+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
457457 if ((stakeC == stakeC))
458458 then {
459459 let updateState = IntegerEntry(keyUSDCUSDT, (totalStaked + ca))
460460 let tc = IntegerEntry(keyUsdcUsdtCompound, (fromCompound + ca))
461461 [updateState, tc]
462462 }
463463 else throw("Strict value is not equal to itself.")
464464 }
465465 }
466466
467467
468468
469469 @Callable(i)
470470 func compoundPuzzleUsdnLP () = {
471471 let compound = value(i.payments[0])
472472 let ca = compound.amount
473473 let isOracle = checkAddress(i.caller.bytes)
474474 if ((compound.assetId != puzzleUsdnLP))
475475 then throw("attach PUZZLEUSDNLP tokens only")
476476 else if (!(isOracle))
477477 then throw("You are not authotized to call this function")
478478 else {
479479 let fromCompound = valueOrElse(getInteger(this, keyPuzzleUsdnCompound), 0)
480480 let totalStaked = valueOrElse(getInteger(this, keyPUZZLEUSDN), 0)
481- let stakeC = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [compound])
481+ let stakeC = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [compound])
482482 if ((stakeC == stakeC))
483483 then {
484484 let updateState = IntegerEntry(keyPUZZLEUSDN, (totalStaked + ca))
485485 let tc = IntegerEntry(keyPuzzleUsdnCompound, (fromCompound + ca))
486486 [updateState, tc]
487487 }
488488 else throw("Strict value is not equal to itself.")
489489 }
490490 }
491491
492492
493493
494494 @Callable(i)
495495 func sponsorBoost () = {
496496 let pm = value(i.payments[0])
497497 let lockPeriod = 100
498498 if ((pm.assetId != wxId))
499499 then throw("Error")
500500 else {
501501 let sponsored = valueOrElse(getInteger(this, keySponsorship), 0)
502502 let lock = invoke(Address(base58'3PJL8Hn8LACaSBWLQ3UVhctA5cTQLBFwBAP'), "increaseLock", [lockPeriod], [pm])
503503 if ((lock == lock))
504504 then {
505505 let s = IntegerEntry(keySponsorship, (pm.amount + sponsored))
506506 [s]
507507 }
508508 else throw("Strict value is not equal to itself.")
509509 }
510510 }
511511
512512
513513
514514 @Callable(i)
515515 func initWX () = {
516516 let pm = value(i.payments[0])
517517 let am = pm.amount
518518 if ((pm.assetId != wxUsdnLP))
519519 then throw("Unexpected token")
520520 else {
521521 let s = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [pm])
522522 if ((s == s))
523523 then {
524524 let upd = IntegerEntry(keyWXUSDN, am)
525525 let updK = IntegerEntry(keywxUsdnCompound, 0)
526526 [upd, updK]
527527 }
528528 else throw("Strict value is not equal to itself.")
529529 }
530530 }
531531
532532
533533 @Verifier(tx)
534534 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
535535

github/deemru/w8io/026f985 
51.81 ms