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+me2GY2rZkxvCzjge2XpkSYbbyLAAAAAAlBZG1pbmRBcHABAAAAGgFX0ENC4hyEvpuahrzfeMpqX84GIahkahAOAAAAAAlNaW5BbW91bnQAAAAAAAAAArwAAAAADktyb3NzQ2FyUmV3Y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CQABpAAAAAEJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAEVVzZXJNYXR1cml0eVZhbHVlBQAAAARXZWVrAgAAACwgV2Vla3MuIFlvdSBzaG91bGQgaGF2ZSBkZXBvc2l0ZWQgYXQgbGVhc3Q6IAkAAaQAAAABCQAAaAAAAAIFAAAACU1pbkFtb3VudAkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAARVXNlck1hdHVyaXR5VmFsdWUFAAAABFdlZWsDCQAAZgAAAAIJAABoAAAAAgUAAAANVGltZUNhclVubG9jawUAAAADRGF5CQAAaQAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABNDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAJFlvdSBjYW5ub3QgY2xhaW0gdGhlIHJld2FyZCBiZWZvcmU6IAkAAaQAAAABCQAAZQAAAAIFAAAADVRpbWVDYXJVbmxvY2sJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAE0NhclVubG9ja0Jsb2NrVmFsdWUFAAAAA0RheQIAAAAFIGRheXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAABNfTGFzdENhclVubG9ja0Jsb2NrBQAAAAZoZWlnaHQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaAAAAAIFAAAAD0NhclVubG9ja1Jld2FyZAAAAAAABfXhAAUAAAAJQ2FyVW5sb2NrBQAAAANuaWwAAAAAO78V/A==", "height": 2094778, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4dPftukna8mffavdGk3yPST92XChxRwryUAbQAXTXdX6 Next: 9zTKo4EBnvRmWAdoa9tjjXYvCoiJqfjyGKfDXuHc17RB Diff:
Old | New | Differences | |
---|---|---|---|
171 | 171 | case a: Int => | |
172 | 172 | a | |
173 | 173 | case _ => | |
174 | - | | |
174 | + | height | |
175 | 175 | } | |
176 | 176 | let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) { | |
177 | 177 | case a: Int => | |
181 | 181 | } | |
182 | 182 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
183 | 183 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
184 | - | else if (( | |
185 | - | then throw((" | |
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))))) | |
186 | 186 | else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day))) | |
187 | 187 | then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days")) | |
188 | 188 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)] | |
205 | 205 | case a: Int => | |
206 | 206 | a | |
207 | 207 | case _ => | |
208 | - | | |
208 | + | height | |
209 | 209 | } | |
210 | 210 | let LastFuelBlockValue = match getInteger(this, LastFuelBlock) { | |
211 | 211 | case a: Int => | |
215 | 215 | } | |
216 | 216 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
217 | 217 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
218 | - | else if (( | |
219 | - | then throw((" | |
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))))) | |
220 | 220 | else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day))) | |
221 | 221 | then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days")) | |
222 | 222 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)] | |
228 | 228 | func RequestCarUnlock () = { | |
229 | 229 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
230 | 230 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
231 | - | let | |
231 | + | let CarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock") | |
232 | 232 | let amount = match getInteger(this, UserDeposit) { | |
233 | 233 | case a: Int => | |
234 | 234 | a | |
239 | 239 | case a: Int => | |
240 | 240 | a | |
241 | 241 | case _ => | |
242 | - | | |
242 | + | height | |
243 | 243 | } | |
244 | - | let | |
244 | + | let CarUnlockBlockValue = match getInteger(this, CarUnlockBlock) { | |
245 | 245 | case a: Int => | |
246 | 246 | a | |
247 | 247 | case _ => | |
249 | 249 | } | |
250 | 250 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
251 | 251 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
252 | - | else if (( | |
253 | - | then throw((" | |
254 | - | else if (((TimeCarUnlock * Day) > ((height - | |
255 | - | then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - | |
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")) | |
256 | 256 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)] | |
257 | 257 | } | |
258 | 258 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let HASH = base58'BJpmNoB9MABJ1ytHhbLNxuUaeoYcYVeTM1r7kh39P24i' | |
5 | 5 | ||
6 | 6 | let KrossCar = base58'4dVMkKtzaWuHC21kmxBBUwKQ5LGayLZLV9snpkJxsGeW' | |
7 | 7 | ||
8 | 8 | let Towing = base58'4BHPskP7pBoXLD7U8nk54CstqbsqRvuWr3SDP8uMrz5w' | |
9 | 9 | ||
10 | 10 | let TyreAir = base58'67QXX3ztyyTEP2jqQ5XwmmuV3L9dmtXpWbTxf9Y81gpo' | |
11 | 11 | ||
12 | 12 | let Fuel = base58'9eE15BVcRhp1XJBoYQUkxvktmq8tC3woRBUYyNymepZr' | |
13 | 13 | ||
14 | 14 | let CarUnlock = base58'3UUpggubgyFEJWG62MbMsJsZMaR8aLaJUWJmKfL5UVuR' | |
15 | 15 | ||
16 | 16 | let dAppFees = base58'3PG1NyiC2rdgX46jb8c5zPGuEAzWXhr4L2W' | |
17 | 17 | ||
18 | 18 | let AdmindApp = base58'3PLv5rYMqR4gSiP5ZSjrX2FStLhHTRgFPbb' | |
19 | 19 | ||
20 | 20 | let MinAmount = 700 | |
21 | 21 | ||
22 | 22 | let KrossCarReward = 1 | |
23 | 23 | ||
24 | 24 | let TowingReward = 1 | |
25 | 25 | ||
26 | 26 | let TyreAirReward = 1 | |
27 | 27 | ||
28 | 28 | let FuelReward = 1 | |
29 | 29 | ||
30 | 30 | let CarUnlockReward = 1 | |
31 | 31 | ||
32 | 32 | let ReferreTip = 1 | |
33 | 33 | ||
34 | 34 | let minJoinWeeks = 8 | |
35 | 35 | ||
36 | 36 | let TimeTowing = 2 | |
37 | 37 | ||
38 | 38 | let TimeTyreAir = 4 | |
39 | 39 | ||
40 | 40 | let TimeFuel = 2 | |
41 | 41 | ||
42 | 42 | let TimeCarUnlock = 6 | |
43 | 43 | ||
44 | 44 | let Week = 2 | |
45 | 45 | ||
46 | 46 | let Day = 1 | |
47 | 47 | ||
48 | 48 | @Callable(i) | |
49 | 49 | 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)] | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | ||
53 | 53 | @Callable(i) | |
54 | 54 | func ReceiveFakeHASHForTest () = [ScriptTransfer(i.caller, (1000000 * 100000000), HASH)] | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | ||
58 | 58 | @Callable(i) | |
59 | 59 | 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")) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(i) | |
64 | 64 | func DepositHASH () = { | |
65 | 65 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
66 | 66 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
67 | 67 | let amount = match getInteger(this, UserDeposit) { | |
68 | 68 | case a: Int => | |
69 | 69 | a | |
70 | 70 | case _ => | |
71 | 71 | 0 | |
72 | 72 | } | |
73 | 73 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
74 | 74 | case a: Int => | |
75 | 75 | a | |
76 | 76 | case _ => | |
77 | 77 | 0 | |
78 | 78 | } | |
79 | 79 | let UserDepositTimer = if ((UserMaturityValue != 0)) | |
80 | 80 | then UserMaturityValue | |
81 | 81 | else height | |
82 | 82 | let pmt = if ((size(i.payments) == 1)) | |
83 | 83 | then i.payments[0] | |
84 | 84 | else throw("Attached payment is required") | |
85 | 85 | if (if (((MinAmount * 100000000) > pmt.amount)) | |
86 | 86 | then true | |
87 | 87 | else (pmt.assetId != HASH)) | |
88 | 88 | then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH") | |
89 | 89 | else { | |
90 | 90 | let UserDepositValue = (amount + pmt.amount) | |
91 | 91 | [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), UserDepositValue), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), UserDepositTimer), ScriptTransfer(i.caller, (KrossCarReward * 100000000), KrossCar)] | |
92 | 92 | } | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(i) | |
98 | 98 | func RewardReferrer (UserWalletAddressStr) = if ((UserWalletAddressStr == "")) | |
99 | 99 | then throw("Referrer Wallet Address cannot be empty !") | |
100 | 100 | else { | |
101 | 101 | let UserWalletAddress = addressFromStringValue(UserWalletAddressStr) | |
102 | 102 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
103 | 103 | let TippedStatus = (toBase58String(i.caller.bytes) + "_TippedStatus") | |
104 | 104 | let amount = match getInteger(this, UserDeposit) { | |
105 | 105 | case a: Int => | |
106 | 106 | a | |
107 | 107 | case _ => | |
108 | 108 | 0 | |
109 | 109 | } | |
110 | 110 | let TippedStatusValue = match getString(this, TippedStatus) { | |
111 | 111 | case a: String => | |
112 | 112 | a | |
113 | 113 | case _ => | |
114 | 114 | "NO" | |
115 | 115 | } | |
116 | 116 | if ((TippedStatusValue == "YES")) | |
117 | 117 | then throw("You already tipped a User, you only can tip once a user") | |
118 | 118 | else if (((MinAmount * 100000000) > amount)) | |
119 | 119 | then throw((("To tip your referrer you must have at least deposited: " + toString(MinAmount)) + " HASH")) | |
120 | 120 | else [StringEntry((toBase58String(i.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(UserWalletAddress, (ReferreTip * 100000000), KrossCar)] | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | ||
125 | 125 | @Callable(i) | |
126 | 126 | func RequestTowing () = { | |
127 | 127 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
128 | 128 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
129 | 129 | let LastTowingBlock = (toBase58String(i.caller.bytes) + "_LastTowingBlock") | |
130 | 130 | let amount = match getInteger(this, UserDeposit) { | |
131 | 131 | case a: Int => | |
132 | 132 | a | |
133 | 133 | case _ => | |
134 | 134 | 0 | |
135 | 135 | } | |
136 | 136 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
137 | 137 | case a: Int => | |
138 | 138 | a | |
139 | 139 | case _ => | |
140 | 140 | height | |
141 | 141 | } | |
142 | 142 | let LastTowingBlockValue = match getInteger(this, LastTowingBlock) { | |
143 | 143 | case a: Int => | |
144 | 144 | a | |
145 | 145 | case _ => | |
146 | 146 | 0 | |
147 | 147 | } | |
148 | 148 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
149 | 149 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
150 | 150 | else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount)) | |
151 | 151 | then throw(((("Your Account Maturity is: " + toString(((height - UserMaturityValue) / Week))) + " Weeks. You should have deposited at least: ") + toString((MinAmount * ((height - UserMaturityValue) / Week))))) | |
152 | 152 | else if (((TimeTowing * Day) > ((height - LastTowingBlockValue) / Day))) | |
153 | 153 | then throw((("You cannot claim the reward before: " + toString((TimeTowing - ((height - LastTowingBlockValue) / Day)))) + " days")) | |
154 | 154 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)] | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(i) | |
160 | 160 | func RequestTyreAir () = { | |
161 | 161 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
162 | 162 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
163 | 163 | let LastTyreAirBlock = (toBase58String(i.caller.bytes) + "_LastTyreAirBlock") | |
164 | 164 | let amount = match getInteger(this, UserDeposit) { | |
165 | 165 | case a: Int => | |
166 | 166 | a | |
167 | 167 | case _ => | |
168 | 168 | 0 | |
169 | 169 | } | |
170 | 170 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
171 | 171 | case a: Int => | |
172 | 172 | a | |
173 | 173 | case _ => | |
174 | - | | |
174 | + | height | |
175 | 175 | } | |
176 | 176 | let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) { | |
177 | 177 | case a: Int => | |
178 | 178 | a | |
179 | 179 | case _ => | |
180 | 180 | 0 | |
181 | 181 | } | |
182 | 182 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
183 | 183 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
184 | - | else if (( | |
185 | - | then throw((" | |
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))))) | |
186 | 186 | else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day))) | |
187 | 187 | then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days")) | |
188 | 188 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)] | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Callable(i) | |
194 | 194 | func RequestFuel () = { | |
195 | 195 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
196 | 196 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
197 | 197 | let LastFuelBlock = (toBase58String(i.caller.bytes) + "_LastFuelBlock") | |
198 | 198 | let amount = match getInteger(this, UserDeposit) { | |
199 | 199 | case a: Int => | |
200 | 200 | a | |
201 | 201 | case _ => | |
202 | 202 | 0 | |
203 | 203 | } | |
204 | 204 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
205 | 205 | case a: Int => | |
206 | 206 | a | |
207 | 207 | case _ => | |
208 | - | | |
208 | + | height | |
209 | 209 | } | |
210 | 210 | let LastFuelBlockValue = match getInteger(this, LastFuelBlock) { | |
211 | 211 | case a: Int => | |
212 | 212 | a | |
213 | 213 | case _ => | |
214 | 214 | 0 | |
215 | 215 | } | |
216 | 216 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
217 | 217 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
218 | - | else if (( | |
219 | - | then throw((" | |
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))))) | |
220 | 220 | else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day))) | |
221 | 221 | then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days")) | |
222 | 222 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)] | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(i) | |
228 | 228 | func RequestCarUnlock () = { | |
229 | 229 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
230 | 230 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
231 | - | let | |
231 | + | let CarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock") | |
232 | 232 | let amount = match getInteger(this, UserDeposit) { | |
233 | 233 | case a: Int => | |
234 | 234 | a | |
235 | 235 | case _ => | |
236 | 236 | 0 | |
237 | 237 | } | |
238 | 238 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
239 | 239 | case a: Int => | |
240 | 240 | a | |
241 | 241 | case _ => | |
242 | - | | |
242 | + | height | |
243 | 243 | } | |
244 | - | let | |
244 | + | let CarUnlockBlockValue = match getInteger(this, CarUnlockBlock) { | |
245 | 245 | case a: Int => | |
246 | 246 | a | |
247 | 247 | case _ => | |
248 | 248 | 0 | |
249 | 249 | } | |
250 | 250 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
251 | 251 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
252 | - | else if (( | |
253 | - | then throw((" | |
254 | - | else if (((TimeCarUnlock * Day) > ((height - | |
255 | - | then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - | |
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")) | |
256 | 256 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)] | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 |
github/deemru/w8io/169f3d6 73.44 ms ◑