tx · 2PALVXPqH9HEfiYPNMMPv9822GftRBrTL3J6q93dbH8Q 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.01100000 Waves 2022.06.12 21:26 [2093525] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "2PALVXPqH9HEfiYPNMMPv9822GftRBrTL3J6q93dbH8Q", "fee": 1100000, "feeAssetId": null, "timestamp": 1655058362872, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "YxW2RFjNvFxg54HCbs1HYN2bTmy7yS5bTCAUrbQhcB43E4Ddgg4itkLuxWnFku4AWHkn6u7GgHEnbvyb3wgWVbk" ], "script": "base64:AAIFAAAAAAAAABcIAhIAEgASABIAEgMKAQgSABIAEgASAAAAABYAAAAABEhBU0gBAAAAIJklwE3i+u/bc48vf4d/BnVXhMLmuX4eB+81QVXPc36rAAAAAAhLcm9zc0NhcgEAAAAgNewIuJ8fl0L3aDIXfe5KYUI4pQbPPcpdLtTikAZosrsAAAAABlRvd2luZwEAAAAgLzVn9FxXOELHRV9NM7WHnRz83AP0i2FsXYU/kxb44koAAAAAB1R5cmVBaXIBAAAAIEvuhUcjs8nwlptF+3MJzdMO4zPQYwfXIFaIUK2eroEgAAAAAARGdWVsAQAAACCAZq+XD1uFtjJ9pE4zl3eJu0Qrua3EVPCqkO+MMmym1QAAAAAJQ2FyVW5sb2NrAQAAACAkwYOo0om66Y7VCFFToUliIsLfSrbZas+g4ATAz8e5qAAAAAAIZEFwcEZlZXMBAAAAGgFXmmsBl+me2GY2rZkxvCzjge2XpkSYbbyLAAAAAAlBZG1pbmRBcHABAAAAGgFX0ENC4hyEvpuahrzfeMpqX84GIahkahAOAAAAAAlNaW5BbW91bnQAAAAAAAAAArwAAAAADktyb3NzQ2FyUmV3YX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W5BbW91bnQAAAAAAAX14QAJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABFVc2VyTWF0dXJpdHlWYWx1ZQUAAAAEV2VlawkAAAIAAAABCQABLAAAAAICAAAAI1lvdSBzaG91bGQgaGF2IGRlcG9zaXRlZCBhdCBsZWFzdDogCQABpAAAAAEJAABpAAAAAgkAAGgAAAACBQAAAAlNaW5BbW91bnQJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABFVc2VyTWF0dXJpdHlWYWx1ZQUAAAAEV2VlawMJAABmAAAAAgkAAGgAAAACBQAAAA1UaW1lQ2FyVW5sb2NrBQAAAANEYXkJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAF0xhc3RDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAJFlvdSBjYW5ub3QgY2xhaW0gdGhlIHJld2FyZCBiZWZvcmU6IAkAAaQAAAABCQAAZQAAAAIFAAAADVRpbWVDYXJVbmxvY2sJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAAF0xhc3RDYXJVbmxvY2tCbG9ja1ZhbHVlBQAAAANEYXkCAAAABSBkYXlzCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAATX0xhc3RDYXJVbmxvY2tCbG9jawUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACBQAAAA9DYXJVbmxvY2tSZXdhcmQAAAAAAAX14QAFAAAACUNhclVubG9jawUAAAADbmlsAAAAAF8kGJc=", "height": 2093525, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EZBEDF9sXRkD44GZjE2kBq4m3wSuuP5bhGMPAEsPfrfN Next: G1hgVjjMekfG9tE7Zdr8UFoE6mfvM3oVSaSnBpyRG46m Diff:
Old | New | Differences | |
---|---|---|---|
138 | 138 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
139 | 139 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
140 | 140 | else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount)) | |
141 | - | then throw(("You should have deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week)))) | |
141 | + | then throw(("You should have deposited at least: " + toString((((MinAmount * (height - UserMaturityValue)) / Week) / 100000000)))) | |
142 | 142 | else if (((TimeTowing * Day) > ((height - LastTowingBlockValue) / Day))) | |
143 | 143 | then throw((("You cannot claim the reward before: " + toString((TimeTowing - ((height - LastTowingBlockValue) / Day)))) + " days")) | |
144 | 144 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)] |
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 = 10 | |
45 | 45 | ||
46 | 46 | let Day = 5 | |
47 | 47 | ||
48 | 48 | @Callable(i) | |
49 | 49 | func ResetData () = [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), 0), 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 amount = match getInteger(this, UserDeposit) { | |
67 | 67 | case a: Int => | |
68 | 68 | a | |
69 | 69 | case _ => | |
70 | 70 | 0 | |
71 | 71 | } | |
72 | 72 | let pmt = if ((size(i.payments) == 1)) | |
73 | 73 | then i.payments[0] | |
74 | 74 | else throw("Attached payment is required") | |
75 | 75 | if (if (((MinAmount * 100000000) > pmt.amount)) | |
76 | 76 | then true | |
77 | 77 | else (pmt.assetId != HASH)) | |
78 | 78 | then throw("Can only deposit HASH tokens, and minimum amount is 700 HASH") | |
79 | 79 | else { | |
80 | 80 | let UserDepositValue = (amount + pmt.amount) | |
81 | 81 | [IntegerEntry((toBase58String(i.caller.bytes) + "_Deposit"), UserDepositValue), IntegerEntry((toBase58String(i.caller.bytes) + "_DepositBlock"), height), ScriptTransfer(i.caller, (KrossCarReward * 100000000), KrossCar)] | |
82 | 82 | } | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | ||
87 | 87 | @Callable(i) | |
88 | 88 | func RewardReferrer (UserWalletAddressStr) = if ((UserWalletAddressStr == "")) | |
89 | 89 | then throw("Referrer Wallet Address cannot be empty !") | |
90 | 90 | else { | |
91 | 91 | let UserWalletAddress = addressFromStringValue(UserWalletAddressStr) | |
92 | 92 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
93 | 93 | let TippedStatus = (toBase58String(i.caller.bytes) + "_TippedStatus") | |
94 | 94 | let amount = match getInteger(this, UserDeposit) { | |
95 | 95 | case a: Int => | |
96 | 96 | a | |
97 | 97 | case _ => | |
98 | 98 | 0 | |
99 | 99 | } | |
100 | 100 | let TippedStatusValue = match getString(this, TippedStatus) { | |
101 | 101 | case a: String => | |
102 | 102 | a | |
103 | 103 | case _ => | |
104 | 104 | "NO" | |
105 | 105 | } | |
106 | 106 | if ((TippedStatusValue == "YES")) | |
107 | 107 | then throw("You already tipped a User, you only can tip once a user") | |
108 | 108 | else if (((MinAmount * 100000000) > amount)) | |
109 | 109 | then throw((("To tip your referrer you must have at least deposited: " + toString(MinAmount)) + " HASH")) | |
110 | 110 | else [StringEntry((toBase58String(i.caller.bytes) + "_TippedStatus"), "YES"), ScriptTransfer(UserWalletAddress, (ReferreTip * 100000000), KrossCar)] | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | ||
115 | 115 | @Callable(i) | |
116 | 116 | func RequestTowing () = { | |
117 | 117 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
118 | 118 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
119 | 119 | let LastTowingBlock = (toBase58String(i.caller.bytes) + "_LastTowingBlock") | |
120 | 120 | let amount = match getInteger(this, UserDeposit) { | |
121 | 121 | case a: Int => | |
122 | 122 | a | |
123 | 123 | case _ => | |
124 | 124 | 0 | |
125 | 125 | } | |
126 | 126 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
127 | 127 | case a: Int => | |
128 | 128 | a | |
129 | 129 | case _ => | |
130 | 130 | 0 | |
131 | 131 | } | |
132 | 132 | let LastTowingBlockValue = match getInteger(this, LastTowingBlock) { | |
133 | 133 | case a: Int => | |
134 | 134 | a | |
135 | 135 | case _ => | |
136 | 136 | 0 | |
137 | 137 | } | |
138 | 138 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
139 | 139 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
140 | 140 | else if (((((MinAmount * 100000000) * (height - UserMaturityValue)) / Week) > amount)) | |
141 | - | then throw(("You should have deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week)))) | |
141 | + | then throw(("You should have deposited at least: " + toString((((MinAmount * (height - UserMaturityValue)) / Week) / 100000000)))) | |
142 | 142 | else if (((TimeTowing * Day) > ((height - LastTowingBlockValue) / Day))) | |
143 | 143 | then throw((("You cannot claim the reward before: " + toString((TimeTowing - ((height - LastTowingBlockValue) / Day)))) + " days")) | |
144 | 144 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTowingBlock"), height), ScriptTransfer(i.caller, (TowingReward * 100000000), Towing)] | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | ||
149 | 149 | @Callable(i) | |
150 | 150 | func RequestTyreAir () = { | |
151 | 151 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
152 | 152 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
153 | 153 | let LastTyreAirBlock = (toBase58String(i.caller.bytes) + "_LastTyreAirBlock") | |
154 | 154 | let amount = match getInteger(this, UserDeposit) { | |
155 | 155 | case a: Int => | |
156 | 156 | a | |
157 | 157 | case _ => | |
158 | 158 | 0 | |
159 | 159 | } | |
160 | 160 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
161 | 161 | case a: Int => | |
162 | 162 | a | |
163 | 163 | case _ => | |
164 | 164 | 0 | |
165 | 165 | } | |
166 | 166 | let LastTyreAirBlockValue = match getInteger(this, LastTyreAirBlock) { | |
167 | 167 | case a: Int => | |
168 | 168 | a | |
169 | 169 | case _ => | |
170 | 170 | 0 | |
171 | 171 | } | |
172 | 172 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
173 | 173 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
174 | 174 | else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week))) | |
175 | 175 | then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week)))) | |
176 | 176 | else if (((TimeTyreAir * Day) > ((height - LastTyreAirBlockValue) / Day))) | |
177 | 177 | then throw((("You cannot claim the reward before: " + toString((TimeTyreAir - ((height - LastTyreAirBlockValue) / Day)))) + " days")) | |
178 | 178 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastTyreAirBlock"), height), ScriptTransfer(i.caller, (TyreAirReward * 100000000), TyreAir)] | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(i) | |
184 | 184 | func RequestFuel () = { | |
185 | 185 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
186 | 186 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
187 | 187 | let LastFuelBlock = (toBase58String(i.caller.bytes) + "_LastFuelBlock") | |
188 | 188 | let amount = match getInteger(this, UserDeposit) { | |
189 | 189 | case a: Int => | |
190 | 190 | a | |
191 | 191 | case _ => | |
192 | 192 | 0 | |
193 | 193 | } | |
194 | 194 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
195 | 195 | case a: Int => | |
196 | 196 | a | |
197 | 197 | case _ => | |
198 | 198 | 0 | |
199 | 199 | } | |
200 | 200 | let LastFuelBlockValue = match getInteger(this, LastFuelBlock) { | |
201 | 201 | case a: Int => | |
202 | 202 | a | |
203 | 203 | case _ => | |
204 | 204 | 0 | |
205 | 205 | } | |
206 | 206 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
207 | 207 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
208 | 208 | else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week))) | |
209 | 209 | then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week)))) | |
210 | 210 | else if (((TimeFuel * Day) > ((height - LastFuelBlockValue) / Day))) | |
211 | 211 | then throw((("You cannot claim the reward before: " + toString((TimeFuel - ((height - LastFuelBlockValue) / Day)))) + " days")) | |
212 | 212 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastFuelBlock"), height), ScriptTransfer(i.caller, (FuelReward * 100000000), Fuel)] | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(i) | |
218 | 218 | func RequestCarUnlock () = { | |
219 | 219 | let UserDeposit = (toBase58String(i.caller.bytes) + "_Deposit") | |
220 | 220 | let UserMaturity = (toBase58String(i.caller.bytes) + "_DepositBlock") | |
221 | 221 | let LastCarUnlockBlock = (toBase58String(i.caller.bytes) + "_LastCarUnlockBlock") | |
222 | 222 | let amount = match getInteger(this, UserDeposit) { | |
223 | 223 | case a: Int => | |
224 | 224 | a | |
225 | 225 | case _ => | |
226 | 226 | 0 | |
227 | 227 | } | |
228 | 228 | let UserMaturityValue = match getInteger(this, UserMaturity) { | |
229 | 229 | case a: Int => | |
230 | 230 | a | |
231 | 231 | case _ => | |
232 | 232 | 0 | |
233 | 233 | } | |
234 | 234 | let LastCarUnlockBlockValue = match getInteger(this, LastCarUnlockBlock) { | |
235 | 235 | case a: Int => | |
236 | 236 | a | |
237 | 237 | case _ => | |
238 | 238 | 0 | |
239 | 239 | } | |
240 | 240 | if (((minJoinWeeks * Week) > (height - UserMaturityValue))) | |
241 | 241 | then throw((((("You should at least be a member of " + toString(minJoinWeeks)) + " Weeks") + " Your account maturity is: ") + toString(((height - UserMaturityValue) / Week)))) | |
242 | 242 | else if ((amount >= (((MinAmount * 100000000) * (height - UserMaturityValue)) / Week))) | |
243 | 243 | then throw(("You should hav deposited at least: " + toString(((MinAmount * (height - UserMaturityValue)) / Week)))) | |
244 | 244 | else if (((TimeCarUnlock * Day) > ((height - LastCarUnlockBlockValue) / Day))) | |
245 | 245 | then throw((("You cannot claim the reward before: " + toString((TimeCarUnlock - ((height - LastCarUnlockBlockValue) / Day)))) + " days")) | |
246 | 246 | else [IntegerEntry((toBase58String(i.caller.bytes) + "_LastCarUnlockBlock"), height), ScriptTransfer(i.caller, (CarUnlockReward * 100000000), CarUnlock)] | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 |
github/deemru/w8io/026f985 46.78 ms ◑