tx · 7Kmde3dCor1LbQLYVvzFigbbV7cCiRUJvrKZbCybdyk6

3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw:  -0.01200000 Waves

2022.06.13 18:30 [2094778] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves

{ "type": 13, "id": "7Kmde3dCor1LbQLYVvzFigbbV7cCiRUJvrKZbCybdyk6", "fee": 1200000, "feeAssetId": null, "timestamp": 1655134226685, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "5571d3cMe6VhSg53bqGhhB2PWk32bD5EnKGeF8TadZ3P1KjNHzQt7DfgJfcdU9hoq3AEBumY36RfVs5TyxkE3fgZ" ], "script": "base64:AAIFAAAAAAAAABcIAhIAEgASABIAEgMKAQgSABIAEgASAAAAABYAAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAAB1R5cmVBaXIBAAAAIEvuhUcjs8nwlptF+3MJzdMO4zPQYwfXIFaIUK2eroEgAAAAAARGdWVsAQAAACCAZq+XD1uFtjJ9pE4zl3eJu0Qrua3EVPCqkO+MMmym1QAAAAAJQ2FyVW5sb2NrAQAAACAkwYOo0om66Y7VCFFToUliIsLfSrbZas+g4ATAz8e5qAAAAAAIZEFwcEZlZXMBAAAAGgFXmmsBl+me2GY2rZkxvCzjge2XpkSYbbyLAAAAAAlBZG1pbmRBcHABAAAAGgFX0ENC4hyEvpuahrzfeMpqX84GIahkahAOAAAAAAlNaW5BbW91bnQAAAAAAAAAArwAAAAADktyb3NzQ2FyUmV3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ogCQABpAAAAAEJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAEVVzZXJNYXR1cml0eVZhbHVlBQAAAARXZWVrAgAAACwgV2Vla3MuIFlvdSBzaG91bGQgaGF2ZSBkZXBvc2l0ZWQgYXQgbGVhc3Q6IAkAAaQAAAABCQAAaAAAAAIFAAAACU1pbkFtb3VudAkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUFAAAABFdlZWsDCQAAZgAAAAIJAABoAAAAAgUAAAANVGltZUNhclVubG9jawUAAAADRGF5CQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABNDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAJFlvdSBjYW5ub3QgY2xhaW0gdGhlIHJld2FyZCBiZWZvcmU6IAkAAaQAAAABCQAAZQAAAAIFAAAADVRpbWVDYXJVbmxvY2sJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAE0NhclVubG9ja0Jsb2NrVmFsdWUFAAAAA0RheQIAAAAFIGRheXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAABNfTGFzdENhclVubG9ja0Jsb2NrBQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAAD0NhclVubG9ja1Jld2FyZAAAAAAABfXhAAUAAAAJQ2FyVW5sb2NrBQAAAANuaWwAAAAAO78V/A==", "height": 2094778, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4dPftukna8mffavdGk3yPST92XChxRwryUAbQAXTXdX6 Next: 9zTKo4EBnvRmWAdoa9tjjXYvCoiJqfjyGKfDXuHc17RB Diff:
OldNewDifferences
171171 case a: Int =>
172172 a
173173 case _ =>
174- 0
174+ height
175175 }
176176 let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) {
177177 case a: Int =>
181181 }
182182 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
183183 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
184- else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
185- then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
184+ else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount))
185+ then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week)))))
186186 else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day)))
187187 then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days"))
188188 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)]
205205 case a: Int =>
206206 a
207207 case _ =>
208- 0
208+ height
209209 }
210210 let LastFuelBlockValue = match getInteger(this, LastFuelBlock) {
211211 case a: Int =>
215215 }
216216 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
217217 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
218- else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
219- then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
218+ else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount))
219+ then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week)))))
220220 else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day)))
221221 then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days"))
222222 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)]
228228 func RequestCarUnlock () = {
229229 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
230230 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
231- let LastCarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock")
231+ let CarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock")
232232 let amount = match getInteger(this, UserDeposit) {
233233 case a: Int =>
234234 a
239239 case a: Int =>
240240 a
241241 case _ =>
242- 0
242+ height
243243 }
244- let LastCarUnlockBlockValue = match getInteger(this, LastCarUnlockBlock) {
244+ let CarUnlockBlockValue = match getInteger(this, CarUnlockBlock) {
245245 case a: Int =>
246246 a
247247 case _ =>
249249 }
250250 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
251251 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
252- else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
253- then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
254- else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day)))
255- then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - LastCarUnlockBlockValue) / Day)))) + " days"))
252+ else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount))
253+ then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week)))))
254+ else if (((TimeCarUnlock * Day) > ((height - CarUnlockBlockValue) / Day)))
255+ then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - CarUnlockBlockValue) / Day)))) + " days"))
256256 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)]
257257 }
258258
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let HASH = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i'
55
66 let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW'
77
88 let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w'
99
1010 let TyreAir = base58'67QXX3ztyyTEP2jqQ5XwmmuV3L9dmtXpWbTxf9Y81gpo'
1111
1212 let Fuel = base58'9eE15BVcRhp1XJBoYQUkxvktmq8tC3woRBUYyNymepZr'
1313
1414 let CarUnlock = base58'3UUpggubgyFEJWG62MbMsJsZMaR8aLaJUWJmKfL5UVuR'
1515
1616 let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W'
1717
1818 let AdmindApp = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb'
1919
2020 let MinAmount = 700
2121
2222 let KrossCarReward = 1
2323
2424 let TowingReward = 1
2525
2626 let TyreAirReward = 1
2727
2828 let FuelReward = 1
2929
3030 let CarUnlockReward = 1
3131
3232 let ReferreTip = 1
3333
3434 let minJoinWeeks = 8
3535
3636 let TimeTowing = 2
3737
3838 let TimeTyreAir = 4
3939
4040 let TimeFuel = 2
4141
4242 let TimeCarUnlock = 6
4343
4444 let Week = 2
4545
4646 let Day = 1
4747
4848 @Callable(i)
4949 func ResetData () = [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), height), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height)]
5050
5151
5252
5353 @Callable(i)
5454 func ReceiveFakeHASHForTest () = [ScriptTransfer(i.caller, (1000000 * 100000000), HASH)]
5555
5656
5757
5858 @Callable(i)
5959 func ShowMeTimersOfdApp () = throw(((((((((((((((("Timers in the dApp: " + "Minimum Join Weeks: ") + toString(minJoinWeeks)) + " min") + "Timer Towing: ") + toString(TimeTowing)) + " min") + "TimerTyreAire: ") + toString(TimeTyreAir)) + " min") + "Timer Fuel: ") + toString(TimeFuel)) + " min") + "Timer CarUnlock: ") + toString(TimeCarUnlock)) + " min"))
6060
6161
6262
6363 @Callable(i)
6464 func DepositHASH () = {
6565 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
6666 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
6767 let amount = match getInteger(this, UserDeposit) {
6868 case a: Int =>
6969 a
7070 case _ =>
7171 0
7272 }
7373 let UserMaturityValue = match getInteger(this, UserMaturity) {
7474 case a: Int =>
7575 a
7676 case _ =>
7777 0
7878 }
7979 let UserDepositTimer = if ((UserMaturityValue != 0))
8080 then UserMaturityValue
8181 else height
8282 let pmt = if ((size(i.payments) == 1))
8383 then i.payments[0]
8484 else throw("Attached payment is required")
8585 if (if (((MinAmount * 100000000) > pmt.amount))
8686 then true
8787 else (pmt.assetId != HASH))
8888 then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH")
8989 else {
9090 let UserDepositValue = (amount + pmt.amount)
9191 [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), UserDepositValue), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), UserDepositTimer), ScriptTransfer(i.caller, (KrossCarReward * 100000000), KrossCar)]
9292 }
9393 }
9494
9595
9696
9797 @Callable(i)
9898 func RewardReferrer (UserWalletAddressStr) = if ((UserWalletAddressStr == ""))
9999 then throw("Referrer Wallet Address cannot be empty !")
100100 else {
101101 let UserWalletAddress = addressFromStringValue(UserWalletAddressStr)
102102 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
103103 let TippedStatus = (toBase58String(i.caller.bytes) + "_TippedStatus")
104104 let amount = match getInteger(this, UserDeposit) {
105105 case a: Int =>
106106 a
107107 case _ =>
108108 0
109109 }
110110 let TippedStatusValue = match getString(this, TippedStatus) {
111111 case a: String =>
112112 a
113113 case _ =>
114114 "NO"
115115 }
116116 if ((TippedStatusValue == "YES"))
117117 then throw("You already tipped a User, you only can tip once a user")
118118 else if (((MinAmount * 100000000) > amount))
119119 then throw((("To tip your referrer you must have at least deposited: " + toString(MinAmount)) + " HASH"))
120120 else [StringEntry((toBase58String(i.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(UserWalletAddress, (ReferreTip * 100000000), KrossCar)]
121121 }
122122
123123
124124
125125 @Callable(i)
126126 func RequestTowing () = {
127127 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
128128 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
129129 let LastTowingBlock = (toBase58String(i.caller.bytes) + "_LastTowingBlock")
130130 let amount = match getInteger(this, UserDeposit) {
131131 case a: Int =>
132132 a
133133 case _ =>
134134 0
135135 }
136136 let UserMaturityValue = match getInteger(this, UserMaturity) {
137137 case a: Int =>
138138 a
139139 case _ =>
140140 height
141141 }
142142 let LastTowingBlockValue = match getInteger(this, LastTowingBlock) {
143143 case a: Int =>
144144 a
145145 case _ =>
146146 0
147147 }
148148 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
149149 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
150150 else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount))
151151 then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week)))))
152152 else if (((TimeTowing * Day) > ((height - LastTowingBlockValue) / Day)))
153153 then throw((("You cannot claim the reward before: " + toString((TimeTowing - ((height - LastTowingBlockValue) / Day)))) + " days"))
154154 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)]
155155 }
156156
157157
158158
159159 @Callable(i)
160160 func RequestTyreAir () = {
161161 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
162162 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
163163 let LastTyreAirBlock = (toBase58String(i.caller.bytes) + "_LastTyreAirBlock")
164164 let amount = match getInteger(this, UserDeposit) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 0
169169 }
170170 let UserMaturityValue = match getInteger(this, UserMaturity) {
171171 case a: Int =>
172172 a
173173 case _ =>
174- 0
174+ height
175175 }
176176 let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) {
177177 case a: Int =>
178178 a
179179 case _ =>
180180 0
181181 }
182182 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
183183 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
184- else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
185- then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
184+ else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount))
185+ then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week)))))
186186 else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day)))
187187 then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days"))
188188 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)]
189189 }
190190
191191
192192
193193 @Callable(i)
194194 func RequestFuel () = {
195195 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
196196 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
197197 let LastFuelBlock = (toBase58String(i.caller.bytes) + "_LastFuelBlock")
198198 let amount = match getInteger(this, UserDeposit) {
199199 case a: Int =>
200200 a
201201 case _ =>
202202 0
203203 }
204204 let UserMaturityValue = match getInteger(this, UserMaturity) {
205205 case a: Int =>
206206 a
207207 case _ =>
208- 0
208+ height
209209 }
210210 let LastFuelBlockValue = match getInteger(this, LastFuelBlock) {
211211 case a: Int =>
212212 a
213213 case _ =>
214214 0
215215 }
216216 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
217217 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
218- else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
219- then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
218+ else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount))
219+ then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week)))))
220220 else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day)))
221221 then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days"))
222222 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)]
223223 }
224224
225225
226226
227227 @Callable(i)
228228 func RequestCarUnlock () = {
229229 let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit")
230230 let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock")
231- let LastCarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock")
231+ let CarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock")
232232 let amount = match getInteger(this, UserDeposit) {
233233 case a: Int =>
234234 a
235235 case _ =>
236236 0
237237 }
238238 let UserMaturityValue = match getInteger(this, UserMaturity) {
239239 case a: Int =>
240240 a
241241 case _ =>
242- 0
242+ height
243243 }
244- let LastCarUnlockBlockValue = match getInteger(this, LastCarUnlockBlock) {
244+ let CarUnlockBlockValue = match getInteger(this, CarUnlockBlock) {
245245 case a: Int =>
246246 a
247247 case _ =>
248248 0
249249 }
250250 if (((minJoinWeeks * Week) > (height - UserMaturityValue)))
251251 then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week))))
252- else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week)))
253- then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week))))
254- else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day)))
255- then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - LastCarUnlockBlockValue) / Day)))) + " days"))
252+ else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount))
253+ then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week)))))
254+ else if (((TimeCarUnlock * Day) > ((height - CarUnlockBlockValue) / Day)))
255+ then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - CarUnlockBlockValue) / Day)))) + " days"))
256256 else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)]
257257 }
258258
259259

github/deemru/w8io/169f3d6 
73.44 ms