tx · 43FZvy6giziBb2gyS8b7MmoXiukiuouSXGY7VMdpd4W2

3P4AdC9J6MzTEi2LL9xgQN8EimMnbk4d6Nt:  -0.00600000 Waves

2024.03.26 15:54 [4100954] smart account 3P4AdC9J6MzTEi2LL9xgQN8EimMnbk4d6Nt > SELF 0.00000000 Waves

{ "type": 13, "id": "43FZvy6giziBb2gyS8b7MmoXiukiuouSXGY7VMdpd4W2", "fee": 600000, "feeAssetId": null, "timestamp": 1711457702446, "version": 2, "chainId": 87, "sender": "3P4AdC9J6MzTEi2LL9xgQN8EimMnbk4d6Nt", "senderPublicKey": "33BMe2b9KpjJyCQXAKa3DKHqSBjB7q2mEJoiP17cRLAN", "proofs": [ "3W2RztZour9nqhKGGBsEVZpirpU1TGxoU6yuim4zKeWV36aUv6GoPgFuP31AFheio2k8ThbnqBTccGiLbj4DbLe6" ], "script": "base64:BgILCAISABIAEgMKAQEWAA1rZXlJbnZva2VOZXh0AgtpbnZva2UgbmV4dAACZDgAgMLXLwAIcHJvamVjdEIJAQdBZGRyZXNzAQEaAVdwbDRmhirDATU6QoAL3cOQY/2jW4AAS60AB3Jld2FyZHMJAQdBZGRyZXNzAQEaAVcvrvFwaQNjny0gZUUh1HEd/jGd8viso2IABmJvdW50eQkBB0FkZHJlc3MBARoBV7YjoAYajOBZFu8wyv9e/PgMkdYAnWtPwwAKc3RhYmxlc3dhcAkBB0FkZHJlc3MBARoBV3jqxOOJIQWZhtKvJn+sb9l421+tvLFYcAAHdnZ4dG5scAEgbK344M+K4XFHDQp5aAF0Yjjr7215882Ns7bGR8K4aQcABnN3YXZlcwEgCB/I9xYw7VHCKRvsrBqP/JBxHFk4LeshgbA3QfBF0UoACWJ1cm54dG5JZAEgJE91eWp+Mzm4+wz/hKlxXF7KLd4zoMRdafnqRBHsTFQADFNXQVZFU19zdGFrZQkBB0FkZHJlc3MBARoBV33Je5MUef/nUfGxSsdv+WodgJVHz1gjfgEIX2xvYWRJbnQCBGtleV8IZGVmYXVsdF8EByR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va2VOZXh0AD4APwMJAAACCQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzBQ1rZXlJbnZva2VOZXh0AD8AQAMJAAACCQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzBQ1rZXlJbnZva2VOZXh0AEAARgAABQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQELY2hhbmdlRW50cnkBCkludm9rZU5leHQDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhxhY2Nlc3Mgb25seSBieSBwcm9qZWN0IG93bmVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQ1rZXlJbnZva2VOZXh0BQpJbnZva2VOZXh0BQNuaWwAtFMekA==", "height": 4100954, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 24c4rXrnLqpFvGQipeANtc5vam1CVjXLVnHR4GdeCVJM Next: 9Z5YYPbViQ48JFJYzdV89Tf6x4jxHtQjkaFbcRe25qup Diff:
OldNewDifferences
140140 then invoke(bounty, "payRewards", nil, nil)
141141 else unit
142142 if ((inv00 == inv00))
143- then {
144- let usdc = if ((getIntegerValue(this, keyInvokeNext) == 70))
145- then invoke(stableswap, "claimAll ", nil, nil)
146- else unit
147- if ((usdc == usdc))
148- then {
149- let usdt = if ((getIntegerValue(this, keyInvokeNext) == 70))
150- then invoke(stableswap, "claimAll ", nil, nil)
151- else unit
152- if ((usdt == usdt))
153- then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0))
154- then 1
155- else if ((getIntegerValue(this, keyInvokeNext) == 1))
156- then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets")))
157- then 10
158- else 20
159- else if ((getIntegerValue(this, keyInvokeNext) == 10))
160- then 11
161- else if ((getIntegerValue(this, keyInvokeNext) == 11))
162- then 12
163- else if ((getIntegerValue(this, keyInvokeNext) == 12))
164- then 13
165- else if ((getIntegerValue(this, keyInvokeNext) == 13))
166- then 14
167- else if ((getIntegerValue(this, keyInvokeNext) == 14))
168- then 15
169- else if ((getIntegerValue(this, keyInvokeNext) == 15))
170- then 16
171- else if ((getIntegerValue(this, keyInvokeNext) == 16))
172- then 30
173- else if ((getIntegerValue(this, keyInvokeNext) == 20))
174- then 30
175- else if ((getIntegerValue(this, keyInvokeNext) == 30))
176- then 31
177- else if ((getIntegerValue(this, keyInvokeNext) == 31))
178- then 32
179- else if ((getIntegerValue(this, keyInvokeNext) == 32))
180- then 33
181- else if ((getIntegerValue(this, keyInvokeNext) == 33))
182- then 40
183- else if ((getIntegerValue(this, keyInvokeNext) == 34))
184- then 35
185- else if ((getIntegerValue(this, keyInvokeNext) == 40))
186- then 50
187- else if ((getIntegerValue(this, keyInvokeNext) == 50))
188- then 51
189- else if ((getIntegerValue(this, keyInvokeNext) == 51))
190- then 52
191- else if ((getIntegerValue(this, keyInvokeNext) == 52))
192- then 60
193- else if ((getIntegerValue(this, keyInvokeNext) == 60))
194- then 61
195- else if ((getIntegerValue(this, keyInvokeNext) == 61))
196- then 62
197- else if ((getIntegerValue(this, keyInvokeNext) == 62))
198- then 63
199- else if ((getIntegerValue(this, keyInvokeNext) == 63))
200- then 64
201- else if ((getIntegerValue(this, keyInvokeNext) == 64))
202- then 70
203- else 0)]
204- else throw("Strict value is not equal to itself.")
205- }
206- else throw("Strict value is not equal to itself.")
207- }
143+ then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0))
144+ then 1
145+ else if ((getIntegerValue(this, keyInvokeNext) == 1))
146+ then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets")))
147+ then 10
148+ else 20
149+ else if ((getIntegerValue(this, keyInvokeNext) == 10))
150+ then 11
151+ else if ((getIntegerValue(this, keyInvokeNext) == 11))
152+ then 12
153+ else if ((getIntegerValue(this, keyInvokeNext) == 12))
154+ then 13
155+ else if ((getIntegerValue(this, keyInvokeNext) == 13))
156+ then 14
157+ else if ((getIntegerValue(this, keyInvokeNext) == 14))
158+ then 15
159+ else if ((getIntegerValue(this, keyInvokeNext) == 15))
160+ then 16
161+ else if ((getIntegerValue(this, keyInvokeNext) == 16))
162+ then 30
163+ else if ((getIntegerValue(this, keyInvokeNext) == 20))
164+ then 30
165+ else if ((getIntegerValue(this, keyInvokeNext) == 30))
166+ then 31
167+ else if ((getIntegerValue(this, keyInvokeNext) == 31))
168+ then 32
169+ else if ((getIntegerValue(this, keyInvokeNext) == 32))
170+ then 33
171+ else if ((getIntegerValue(this, keyInvokeNext) == 33))
172+ then 40
173+ else if ((getIntegerValue(this, keyInvokeNext) == 34))
174+ then 35
175+ else if ((getIntegerValue(this, keyInvokeNext) == 40))
176+ then 50
177+ else if ((getIntegerValue(this, keyInvokeNext) == 50))
178+ then 51
179+ else if ((getIntegerValue(this, keyInvokeNext) == 51))
180+ then 52
181+ else if ((getIntegerValue(this, keyInvokeNext) == 52))
182+ then 60
183+ else if ((getIntegerValue(this, keyInvokeNext) == 60))
184+ then 61
185+ else if ((getIntegerValue(this, keyInvokeNext) == 61))
186+ then 62
187+ else if ((getIntegerValue(this, keyInvokeNext) == 62))
188+ then 63
189+ else if ((getIntegerValue(this, keyInvokeNext) == 63))
190+ then 64
191+ else if ((getIntegerValue(this, keyInvokeNext) == 64))
192+ then 70
193+ else 0)]
208194 else throw("Strict value is not equal to itself.")
209195 }
210196
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let keyInvokeNext = "invoke next"
55
66 let d8 = 100000000
77
88 let projectB = Address(base58'3PCBL2vbjAVFbiCwmGsPmT6QdATutQnM8ov')
99
1010 let rewards = Address(base58'3P6H24XKLyRX8RKwyA5ARsChE6WhjDcVBiZ')
1111
1212 let bounty = Address(base58'3PJXxPS9FxZsSLyP9gA47dSLwMinoFyfYFC')
1313
1414 let stableswap = Address(base58'3PCxF4JryswYYp9mpUtE725wjTgvpBmp3M9')
1515
1616 let vvxtnlp = base58'8KEtor9aSsSj38MknyAE7k1uRThHY9prAXgiE4D7WpyL'
1717
1818 let swaves = base58'YiNbofFzC17jEHHCMwrRcpy9MrrjabMMLZxg8g5xmf7'
1919
2020 let burnxtnId = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns'
2121
2222 let SWAVES_stake = Address(base58'3PDPzZVLhN1EuzGy4xAxjjTVkawKDLEaHiV')
2323
2424 func _loadInt (key_,default_) = match getInteger(SWAVES_stake, key_) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 default_
2929 }
3030
3131
3232 func _loadBigInt (key_,default_) = match getBinary(SWAVES_stake, key_) {
3333 case a: ByteVector =>
3434 toBigInt(a)
3535 case _ =>
3636 default_
3737 }
3838
3939
4040 let WX_BURNXTN_WAVES = Address(base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5')
4141
4242 let lastRate = _loadBigInt("LAST_RATE", toBigInt(1000000000000))
4343
4444 let currentRate = _loadBigInt("CURRENT_RATE", toBigInt(0))
4545
4646 let lastHeight = _loadInt("LAST_HEIGHT", 0)
4747
4848 let targetHeight = min([_loadInt("TARGET_HEIGHT", 0), height])
4949
5050 let lastRateUpdated = (lastRate + (currentRate * toBigInt((targetHeight - lastHeight))))
5151
5252 let baseAmount = toInt(fraction(toBigInt(assetBalance(WX_BURNXTN_WAVES, swaves)), lastRateUpdated, toBigInt(1000000000000), FLOOR))
5353
5454 let wavesInWX = (wavesBalance(WX_BURNXTN_WAVES).regular + baseAmount)
5555
5656 let burnxtnInWX = assetBalance(WX_BURNXTN_WAVES, burnxtnId)
5757
5858 let burnxtnwavesprice = fraction(d8, wavesInWX, burnxtnInWX)
5959
6060 @Callable(i)
6161 func invoker () = {
6262 let inv1 = invoke(Address(base58'3PAucbbumdUXmhzcR421zGiayphEdo2tRoz'), "withdraw", nil, nil)
6363 if ((inv1 == inv1))
6464 then {
6565 let inv2 = if ((50 > assetBalance(Address(base58'3PAucbbumdUXmhzcR421zGiayphEdo2tRoz'), vvxtnlp)))
6666 then invoke(Address(base58'3PAkmJniMgnnAej5pYf2jFYkCbZow5pt9tr'), "withdraw", nil, nil)
6767 else invoke(Address(base58'3PAucbbumdUXmhzcR421zGiayphEdo2tRoz'), "importVVXTNLP", nil, nil)
6868 if ((inv2 == inv2))
6969 then {
7070 let inv3 = invoke(Address(base58'3PPCzX2doZ7agBNuGSKqjrbdXgGEtE7CpQ3'), "withdraw", nil, nil)
7171 if ((inv3 == inv3))
7272 then {
7373 let inv4 = invoke(Address(base58'3PHLhWPrs1mrpM1ZDUv1VmUnZRwchADJELc'), "withdraw", nil, nil)
7474 if ((inv4 == inv4))
7575 then nil
7676 else throw("Strict value is not equal to itself.")
7777 }
7878 else throw("Strict value is not equal to itself.")
7979 }
8080 else throw("Strict value is not equal to itself.")
8181 }
8282 else throw("Strict value is not equal to itself.")
8383 }
8484
8585
8686
8787 @Callable(i)
8888 func selector () = if (if ((i.caller != this))
8989 then (i.caller != stableswap)
9090 else false)
9191 then throw("no access")
9292 else {
9393 let inv00 = if ((getIntegerValue(this, keyInvokeNext) == 0))
9494 then invoke(projectB, "burnXTNandClaim", nil, nil)
9595 else if ((getIntegerValue(this, keyInvokeNext) == 1))
9696 then invoke(projectB, "SURFandVVXTNLP", nil, nil)
9797 else if ((getIntegerValue(this, keyInvokeNext) == 10))
9898 then invoke(projectB, "burnBURNXTN", nil, nil)
9999 else if ((getIntegerValue(this, keyInvokeNext) == 11))
100100 then invoke(projectB, "grow1", nil, nil)
101101 else if ((getIntegerValue(this, keyInvokeNext) == 12))
102102 then invoke(projectB, "grow2", nil, nil)
103103 else if ((getIntegerValue(this, keyInvokeNext) == 13))
104104 then invoke(projectB, "grow3", nil, nil)
105105 else if ((getIntegerValue(this, keyInvokeNext) == 14))
106106 then invoke(projectB, "grow4", nil, nil)
107107 else if ((getIntegerValue(this, keyInvokeNext) == 15))
108108 then invoke(projectB, "grow5", nil, nil)
109109 else if ((getIntegerValue(this, keyInvokeNext) == 16))
110110 then invoke(projectB, "grow6", nil, nil)
111111 else if ((getIntegerValue(this, keyInvokeNext) == 20))
112112 then invoke(projectB, "pump", nil, nil)
113113 else if ((getIntegerValue(this, keyInvokeNext) == 30))
114114 then invoke(projectB, "PZbbb", nil, nil)
115115 else if ((getIntegerValue(this, keyInvokeNext) == 31))
116116 then invoke(projectB, "claimBBB", nil, nil)
117117 else if ((getIntegerValue(this, keyInvokeNext) == 32))
118118 then invoke(projectB, "burnSURF", nil, nil)
119119 else if ((getIntegerValue(this, keyInvokeNext) == 33))
120120 then invoke(projectB, "puzzlePZbbb", nil, nil)
121121 else if ((getIntegerValue(this, keyInvokeNext) == 34))
122122 then invoke(projectB, "stakePZbbb", nil, nil)
123123 else if ((getIntegerValue(this, keyInvokeNext) == 40))
124124 then invoke(projectB, "dEntry", nil, nil)
125125 else if ((getIntegerValue(this, keyInvokeNext) == 50))
126126 then invoke(rewards, "claimRewards", nil, nil)
127127 else if ((getIntegerValue(this, keyInvokeNext) == 51))
128128 then invoke(rewards, "loyaltyRewards", nil, nil)
129129 else if ((getIntegerValue(this, keyInvokeNext) == 52))
130130 then invoke(rewards, "adminRewards", nil, nil)
131131 else if ((getIntegerValue(this, keyInvokeNext) == 60))
132132 then invoke(bounty, "updateBalanceEntry", nil, nil)
133133 else if ((getIntegerValue(this, keyInvokeNext) == 61))
134134 then invoke(bounty, "claim", nil, nil)
135135 else if ((getIntegerValue(this, keyInvokeNext) == 62))
136136 then invoke(bounty, "swap", nil, nil)
137137 else if ((getIntegerValue(this, keyInvokeNext) == 63))
138138 then invoke(bounty, "totalBalanceAll", nil, nil)
139139 else if ((getIntegerValue(this, keyInvokeNext) == 64))
140140 then invoke(bounty, "payRewards", nil, nil)
141141 else unit
142142 if ((inv00 == inv00))
143- then {
144- let usdc = if ((getIntegerValue(this, keyInvokeNext) == 70))
145- then invoke(stableswap, "claimAll ", nil, nil)
146- else unit
147- if ((usdc == usdc))
148- then {
149- let usdt = if ((getIntegerValue(this, keyInvokeNext) == 70))
150- then invoke(stableswap, "claimAll ", nil, nil)
151- else unit
152- if ((usdt == usdt))
153- then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0))
154- then 1
155- else if ((getIntegerValue(this, keyInvokeNext) == 1))
156- then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets")))
157- then 10
158- else 20
159- else if ((getIntegerValue(this, keyInvokeNext) == 10))
160- then 11
161- else if ((getIntegerValue(this, keyInvokeNext) == 11))
162- then 12
163- else if ((getIntegerValue(this, keyInvokeNext) == 12))
164- then 13
165- else if ((getIntegerValue(this, keyInvokeNext) == 13))
166- then 14
167- else if ((getIntegerValue(this, keyInvokeNext) == 14))
168- then 15
169- else if ((getIntegerValue(this, keyInvokeNext) == 15))
170- then 16
171- else if ((getIntegerValue(this, keyInvokeNext) == 16))
172- then 30
173- else if ((getIntegerValue(this, keyInvokeNext) == 20))
174- then 30
175- else if ((getIntegerValue(this, keyInvokeNext) == 30))
176- then 31
177- else if ((getIntegerValue(this, keyInvokeNext) == 31))
178- then 32
179- else if ((getIntegerValue(this, keyInvokeNext) == 32))
180- then 33
181- else if ((getIntegerValue(this, keyInvokeNext) == 33))
182- then 40
183- else if ((getIntegerValue(this, keyInvokeNext) == 34))
184- then 35
185- else if ((getIntegerValue(this, keyInvokeNext) == 40))
186- then 50
187- else if ((getIntegerValue(this, keyInvokeNext) == 50))
188- then 51
189- else if ((getIntegerValue(this, keyInvokeNext) == 51))
190- then 52
191- else if ((getIntegerValue(this, keyInvokeNext) == 52))
192- then 60
193- else if ((getIntegerValue(this, keyInvokeNext) == 60))
194- then 61
195- else if ((getIntegerValue(this, keyInvokeNext) == 61))
196- then 62
197- else if ((getIntegerValue(this, keyInvokeNext) == 62))
198- then 63
199- else if ((getIntegerValue(this, keyInvokeNext) == 63))
200- then 64
201- else if ((getIntegerValue(this, keyInvokeNext) == 64))
202- then 70
203- else 0)]
204- else throw("Strict value is not equal to itself.")
205- }
206- else throw("Strict value is not equal to itself.")
207- }
143+ then [IntegerEntry(keyInvokeNext, if ((getIntegerValue(this, keyInvokeNext) == 0))
144+ then 1
145+ else if ((getIntegerValue(this, keyInvokeNext) == 1))
146+ then if ((burnxtnwavesprice >= getIntegerValue(projectB, "ATH in wavelets")))
147+ then 10
148+ else 20
149+ else if ((getIntegerValue(this, keyInvokeNext) == 10))
150+ then 11
151+ else if ((getIntegerValue(this, keyInvokeNext) == 11))
152+ then 12
153+ else if ((getIntegerValue(this, keyInvokeNext) == 12))
154+ then 13
155+ else if ((getIntegerValue(this, keyInvokeNext) == 13))
156+ then 14
157+ else if ((getIntegerValue(this, keyInvokeNext) == 14))
158+ then 15
159+ else if ((getIntegerValue(this, keyInvokeNext) == 15))
160+ then 16
161+ else if ((getIntegerValue(this, keyInvokeNext) == 16))
162+ then 30
163+ else if ((getIntegerValue(this, keyInvokeNext) == 20))
164+ then 30
165+ else if ((getIntegerValue(this, keyInvokeNext) == 30))
166+ then 31
167+ else if ((getIntegerValue(this, keyInvokeNext) == 31))
168+ then 32
169+ else if ((getIntegerValue(this, keyInvokeNext) == 32))
170+ then 33
171+ else if ((getIntegerValue(this, keyInvokeNext) == 33))
172+ then 40
173+ else if ((getIntegerValue(this, keyInvokeNext) == 34))
174+ then 35
175+ else if ((getIntegerValue(this, keyInvokeNext) == 40))
176+ then 50
177+ else if ((getIntegerValue(this, keyInvokeNext) == 50))
178+ then 51
179+ else if ((getIntegerValue(this, keyInvokeNext) == 51))
180+ then 52
181+ else if ((getIntegerValue(this, keyInvokeNext) == 52))
182+ then 60
183+ else if ((getIntegerValue(this, keyInvokeNext) == 60))
184+ then 61
185+ else if ((getIntegerValue(this, keyInvokeNext) == 61))
186+ then 62
187+ else if ((getIntegerValue(this, keyInvokeNext) == 62))
188+ then 63
189+ else if ((getIntegerValue(this, keyInvokeNext) == 63))
190+ then 64
191+ else if ((getIntegerValue(this, keyInvokeNext) == 64))
192+ then 70
193+ else 0)]
208194 else throw("Strict value is not equal to itself.")
209195 }
210196
211197
212198
213199 @Callable(i)
214200 func changeEntry (InvokeNext) = if ((i.caller != this))
215201 then throw("access only by project owner")
216202 else [IntegerEntry(keyInvokeNext, InvokeNext)]
217203
218204

github/deemru/w8io/6500d08 
158.02 ms