tx · HVAEye6SUhzJKbAW7sQJiPB8HucWhjVdELMcgitXtL4d 3NBP5xCxWNwQyPRpJRLB2MDZ2AUk5ZQRs7u: -0.15000000 Waves 2022.06.03 22:10 [2080566] smart account 3NBP5xCxWNwQyPRpJRLB2MDZ2AUk5ZQRs7u > SELF 0.00000000 Waves
{ "type": 13, "id": "HVAEye6SUhzJKbAW7sQJiPB8HucWhjVdELMcgitXtL4d", "fee": 15000000, "feeAssetId": null, "timestamp": 1654283431947, "version": 2, "chainId": 84, "sender": "3NBP5xCxWNwQyPRpJRLB2MDZ2AUk5ZQRs7u", "senderPublicKey": "FBEFt73DeACFwi1aUnSkFMTw6bZPnaT63ykJagVXGgMG", "proofs": [ "RNsuBoFEN1jZ5YnfkbiSNwSWoiBzxWBvr4Rm1W4uJmU17cDVwBJCdyfgVrMAGHmBvm5NzqYFw8LX78nfcDenzqL" ], "script": "base64:AAIFAAAAAAAAACoIAhIFCgMBCAgSBQoDAQgIEgASABIDCgEYEgASABIAEgASAwoBCBIAEgAAAABcAAAAABJUT1RBTF9UT0tFTl9BTU9VTlQAAAAAAAX14QAAAAAAClRPS0VOX05BTUUCAAAABSRNSU5JAAAAAAhUT0tFTl9JRAEAAAAg+boBfe+SE/g4ThBUox2BD4i7SLK9oBQ0dniz/JJSxGcAAAAAF0RFQ0lNQUxfUE9JTlRTX0lOX1RPS0VOAAAAAAAF9eEAAAAAABZERUNJTUFMX1BPSU5UU19JTl9VU0ROAAAAAAAAD0JAAAAAAAdVU0ROX0lEAQAAACCMzUgMLnJkPY4/IB9ub3HYe/HmIkiLCcBrVjQQxAnUWgAAAAALVVNETl9JRF9TVFICAAAAClVTRE5fQVNTRVQAAAAAFFNXQVBfQUdHUkVHQVRPUl9BRERSAQAAABoBVL7tsLBwKJSV0/AdwFnckBO8BXINE3eOSwAAAAAUQUNDRVBUQUJMRV9BU1NFVF9JRFMJAARMAAAAAgEAAAAgZswdb2G1EAD6QX6nqkk87+OG/QYmy3LZSiY2axgvXBw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AAABGFkZHIAAAAAAAAAAAEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAAEYWRkcgUAAAAacHJpdmF0ZVNhbGVDbGFpbWVkUGhhc2VLZXkAAAAAAAAAAAEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAAEYWRkcgUAAAAacHJpdmF0ZVNhbGVBc3NldHNMb2NrZWRLZXkJAABlAAAAAgUAAAAWdG90YWxUb2tlbkJhbGFuY2VPd25lZAkAAGsAAAADBQAAABZ0b3RhbFRva2VuQmFsYW5jZU93bmVkAAAAAAAAAABkBQAAAAtERU5PTUlOQVRPUgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAARhZGRyBQAAABtwcml2YXRlU2FsZUFzc2V0c0NsYWltZWRLZXkJAABrAAAAAwUAAAAWdG90YWxUb2tlbkJhbGFuY2VPd25lZAAAAAAAAAAAZAUAAAALREVOT01JTkFUT1IJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAABXZhbHVlAAAAAQkABCYAAAABBQAAAARhZGRyCQAAaAAAAAIJAABrAAAAAwUAAAAWdG90YWxUb2tlbkJhbGFuY2VPd25lZAAAAAAAAAAAZAUAAAALREVOT01JTkFUT1IFAAAAF0RFQ0lNQUxfUE9JTlRTX0lOX1RPS0VOBQAAAAhUT0tFTl9JRAUAAAADbmlsCQAAAgAAAAECAAAAD0FscmVhZHkgY2xhaW1lZAAAAAFpAQAAABFhbGxvY2F0ZUlET1Rva2VucwAAAAAFAAAAA25pbAAAAAFpAQAAABJhbGxvY2F0ZVByb21vRnVuZHMAAAAABQAAAANuaWwAAAAAyySXcA==", "height": 2080566, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2Yj1EK63SVKigpZgAhvg2Kf1yRVxfC9bZZu2xod7pnoY Next: none Diff:
Old | New | Differences | |
---|---|---|---|
216 | 216 | func getClaimedAssetAmountFromPresale (address) = valueOrElse(getInteger(this, (address + presaleAssetsClaimedKey)), 0) | |
217 | 217 | ||
218 | 218 | ||
219 | - | let debugOutput = "_debugOutput_" | |
220 | - | ||
221 | - | func getDummyCurrentTime () = valueOrElse(getInteger(this, "dummyCurrentTime"), lastBlock.height) | |
222 | - | ||
223 | - | ||
224 | - | @Callable(i) | |
225 | - | func changeDummyCurrentTime (time) = [IntegerEntry("dummyCurrentTime", (lastBlock.height + time))] | |
226 | - | ||
227 | - | ||
228 | - | ||
229 | - | @Callable(i) | |
230 | - | func deleteDummyCurrentTime () = [DeleteEntry("dummyCurrentTime")] | |
231 | - | ||
232 | - | ||
233 | - | ||
234 | 219 | @Callable(i) | |
235 | 220 | func buyTokensFromPresale (buyAmount,routesStr,refferelId) = { | |
236 | 221 | let caller = toBase58String(i.caller.bytes) | |
237 | 222 | let pmt = value(i.payments[0]) | |
238 | 223 | if (!(getPresaleStatus())) | |
239 | 224 | then throw("Presale Not Started Yet or Stopped") | |
240 | - | else if (( | |
225 | + | else if ((lastBlock.height > (getPresaleStartedTime() + PRESALE_VALID_DATES))) | |
241 | 226 | then [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleEndedTimeKey, lastBlock.height), throw("Presale Expired")] | |
242 | 227 | else if ((getRemainingPresaleTokenAmount() == 0)) | |
243 | 228 | then [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleEndedTimeKey, lastBlock.height), throw("All Allocated Tokens Are Sold")] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let TOTAL_TOKEN_AMOUNT = 100000000 | |
5 | 5 | ||
6 | 6 | let TOKEN_NAME = "$MINI" | |
7 | 7 | ||
8 | 8 | let TOKEN_ID = base58'Hoq2ET7XtRvSvegmZoczpMip76ZDvd3v1VZmxJSxk5dg' | |
9 | 9 | ||
10 | 10 | let DECIMAL_POINTS_IN_TOKEN = 100000000 | |
11 | 11 | ||
12 | 12 | let DECIMAL_POINTS_IN_USDN = 1000000 | |
13 | 13 | ||
14 | 14 | let USDN_ID = base58'AUddX5CKUwoa6G414ERDiV1kbUQzz8A7fCVuLhwVW7cD' | |
15 | 15 | ||
16 | 16 | let USDN_ID_STR = "USDN_ASSET" | |
17 | 17 | ||
18 | 18 | let SWAP_AGGREGATOR_ADDR = base58'3N7KcuNZ2Pe7hakkyJhJqg63fTZdxPnSX4n' | |
19 | 19 | ||
20 | 20 | let ACCEPTABLE_ASSET_IDS = [base58'7vH77tRJYQa777M6yMjtsp3asjb5ioXZfaZrMfUYR8qq', base58'AUddX5CKUwoa6G414ERDiV1kbUQzz8A7fCVuLhwVW7cD', base58'8jNHNMkPUzNuf7ToChnTY5wsbfbSibXgVJKALcLvwShD', base58'ByvttnNRQHA9WbEx5S7rujvHwUXnwpHooLVx5uGzcHaa', base58'2RUZ3XEpEeD5oUn3TVRZT82BomCiUUTvwYVkHX76sXnn', unit] | |
21 | 21 | ||
22 | 22 | let stringList = ["a", "b", "a", "c"] | |
23 | 23 | ||
24 | 24 | let WVS = 100000000 | |
25 | 25 | ||
26 | 26 | let PRESALE_UNIT_PRICE_USDN = 100 | |
27 | 27 | ||
28 | 28 | let PRIVATESALE_UNIT_PRICE_USDN = 100 | |
29 | 29 | ||
30 | 30 | let DENOMINATOR = 1000 | |
31 | 31 | ||
32 | 32 | let PRESALE_TOKEN_PERCENTAGE = 45 | |
33 | 33 | ||
34 | 34 | let PROMO_PERCENTAGE = 50 | |
35 | 35 | ||
36 | 36 | let IDO_PERCENTAGE = 5 | |
37 | 37 | ||
38 | 38 | let REWARDS_PERCENTAGE_BATTLE = 600 | |
39 | 39 | ||
40 | 40 | let REWARDS_PERCENTAGE_TOURNAMENT = 300 | |
41 | 41 | ||
42 | 42 | let PRIVATE_SALE_PERCENTAGE = 100 | |
43 | 43 | ||
44 | 44 | let REFERREL_PERCENTAGE = 50 | |
45 | 45 | ||
46 | 46 | let PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT = fraction(fraction(TOTAL_TOKEN_AMOUNT, PROMO_PERCENTAGE, DENOMINATOR), PRIVATE_SALE_PERCENTAGE, DENOMINATOR) | |
47 | 47 | ||
48 | 48 | let TEAM_AND_PROMO_WALLET = base58'TEAMWALLET' | |
49 | 49 | ||
50 | 50 | let IDO_WALLET = base58'DEXWALLET' | |
51 | 51 | ||
52 | 52 | let BATTLE_REWARDS_WALLET = base58'BATTLEWALLET' | |
53 | 53 | ||
54 | 54 | let TOURNAMENTS_REWARDS_WALLET = base58'TWALLET' | |
55 | 55 | ||
56 | 56 | let PRESALE_VALID_DATES = (1440 * 15) | |
57 | 57 | ||
58 | 58 | let PRESALE_VESTING_PERIOD_1 = ((1440 * 30) * 1) | |
59 | 59 | ||
60 | 60 | let PRESALE_VESTING_PERIOD_2 = ((1440 * 30) * 2) | |
61 | 61 | ||
62 | 62 | let PRESALE_VESTING_PERIOD_3 = ((1440 * 30) * 3) | |
63 | 63 | ||
64 | 64 | let PRESALE_VESTING_PERIOD_4 = ((1440 * 30) * 4) | |
65 | 65 | ||
66 | 66 | let PRESALE_VESTING_PERIOD_5 = ((1440 * 30) * 5) | |
67 | 67 | ||
68 | 68 | let PRESALE_VESTING_PERIOD_6 = ((1440 * 30) * 6) | |
69 | 69 | ||
70 | 70 | let PRESALE_VESTING_PERCENTAGE_1 = 50 | |
71 | 71 | ||
72 | 72 | let PRESALE_VESTING_PERCENTAGE_2 = 100 | |
73 | 73 | ||
74 | 74 | let PRESALE_VESTING_PERCENTAGE_3 = 200 | |
75 | 75 | ||
76 | 76 | let PRESALE_VESTING_PERCENTAGE_4 = 300 | |
77 | 77 | ||
78 | 78 | let PRESALE_VESTING_PERCENTAGE_5 = 400 | |
79 | 79 | ||
80 | 80 | let PRESALE_VESTING_PERCENTAGE_6 = 500 | |
81 | 81 | ||
82 | 82 | let isPresaleStartedKey = "is_presale_started" | |
83 | 83 | ||
84 | 84 | let presaleAssetsLockedKey = "_presaleAssetsLocked_" | |
85 | 85 | ||
86 | 86 | let presaleAssetsClaimedKey = "_presaleAssetsClaimed_" | |
87 | 87 | ||
88 | 88 | let tokenPresaleKey = "_tokenPresale_" | |
89 | 89 | ||
90 | 90 | let remainingPresaleTokenAmountKey = "remainingPresaleTokenAmount" | |
91 | 91 | ||
92 | 92 | let presaleAddressesKey = "_presaleAddresses_" | |
93 | 93 | ||
94 | 94 | let presaleStartedTimeKey = "presaleStartedTime" | |
95 | 95 | ||
96 | 96 | let presaleEndedTimeKey = "presaleEndedTime" | |
97 | 97 | ||
98 | 98 | let presaleClaimedPhaseKey = "_presaleClaimedPhase_" | |
99 | 99 | ||
100 | 100 | let isGameLaunchedKey = "is_game_launched" | |
101 | 101 | ||
102 | 102 | let gameLaunchedTimeKey = "gameLaunchedTime" | |
103 | 103 | ||
104 | 104 | let remainingPrivateSaleTokenAmountKey = "remainingPrivateSaleTokenAmount" | |
105 | 105 | ||
106 | 106 | let privateSaleAddressesKey = "_privateSaleAddresses_" | |
107 | 107 | ||
108 | 108 | let whiteListKey = "_whiteList_" | |
109 | 109 | ||
110 | 110 | let privateSaleKey = "_privateSale_" | |
111 | 111 | ||
112 | 112 | let totalTokensForPrivateSaleKey = "totalTokensForPrivateSale" | |
113 | 113 | ||
114 | 114 | let privateSaleAssetsClaimedKey = "_privateSaleAssetsClaimed_" | |
115 | 115 | ||
116 | 116 | let privateSaleAssetsLockedKey = "_privateSaleAssetsLocked_" | |
117 | 117 | ||
118 | 118 | let privateSaleClaimedPhaseKey = "_privateSaleClaimedPhase_" | |
119 | 119 | ||
120 | 120 | let referralIdKey = "_referralId_" | |
121 | 121 | ||
122 | 122 | let referrelAddressKey = "_referrelAddress_" | |
123 | 123 | ||
124 | 124 | let idoReleasedKey = "idoReleased" | |
125 | 125 | ||
126 | 126 | let assetsLockedKey = "_assetsLocked_" | |
127 | 127 | ||
128 | 128 | let isBattleRewardsAllocatedKey = "isBattleRewardsAllocated" | |
129 | 129 | ||
130 | 130 | let battleRewardsKey = "_battleRewards_" | |
131 | 131 | ||
132 | 132 | let isTournamentRewardsAllocatedKey = "isTournamentRewardsAllocated" | |
133 | 133 | ||
134 | 134 | let tournamentRewardsKey = "_tournamentRewards_" | |
135 | 135 | ||
136 | 136 | func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getStringByAddressAndKey (address,key) = valueOrElse(getString(addressFromStringValue(address), key), "") | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(addressFromStringValue(address), key), false) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func getPresaleStatus () = valueOrElse(getBoolean(this, isPresaleStartedKey), false) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func getTokensBoughtFromPresale (addr) = getNumberByKey((addr + tokenPresaleKey)) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func getTokensBoughtFromPrivateSale (addr) = getNumberByKey((addr + privateSaleKey)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func getTotlTokenAamountDedicatedForPresale () = fraction(PRESALE_TOKEN_PERCENTAGE, TOTAL_TOKEN_AMOUNT, DENOMINATOR) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func getRemainingPresaleTokenAmount () = valueOrElse(getInteger(this, remainingPresaleTokenAmountKey), getTotlTokenAamountDedicatedForPresale()) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func getRemainingPriVateSaleTokenAmount () = valueOrElse(getInteger(this, remainingPrivateSaleTokenAmountKey), PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func getWhiteListedOrNot (addr) = valueOrElse(getBoolean(this, (addr + whiteListKey)), false) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func getPresaleStartedTime () = valueOrElse(getInteger(this, presaleStartedTimeKey), lastBlock.height) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func presaleTimeValidation () = if (getPresaleStatus()) | |
179 | 179 | then ((getPresaleStartedTime() + PRESALE_VALID_DATES) > lastBlock.height) | |
180 | 180 | else false | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func getGameLaunchedTime () = valueOrElse(getInteger(this, gameLaunchedTimeKey), 0) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func getGameLaunchedStatus () = valueOrElse(getBoolean(this, isGameLaunchedKey), false) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func isBattleRewardsAllocated () = valueOrElse(getBoolean(this, isBattleRewardsAllocatedKey), false) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func isTournamentRewardsAllocated () = valueOrElse(getBoolean(this, isTournamentRewardsAllocatedKey), false) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func getCurrentTokenAmountLockedBoughtFromPreSale (addr) = getNumberByKey((addr + presaleAssetsLockedKey)) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func getRandomHash (i) = { | |
199 | 199 | let rand = ((((i.transactionId + i.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
200 | 200 | sha256(rand) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func getReferrelIdByAddress (address,i) = valueOrElse(getString(this, (address + referralIdKey)), toBase58String(getRandomHash(i))) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func getAddressByRefferalId (refferelId) = valueOrElse(getString(this, (refferelId + referrelAddressKey)), "") | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func getPresaleClaimedPhase (address) = valueOrElse(getInteger(this, (address + presaleClaimedPhaseKey)), 0) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func getPrivatesaleClaimedPhase (address) = valueOrElse(getInteger(this, (address + privateSaleClaimedPhaseKey)), 0) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func getClaimedAssetAmountFromPresale (address) = valueOrElse(getInteger(this, (address + presaleAssetsClaimedKey)), 0) | |
217 | 217 | ||
218 | 218 | ||
219 | - | let debugOutput = "_debugOutput_" | |
220 | - | ||
221 | - | func getDummyCurrentTime () = valueOrElse(getInteger(this, "dummyCurrentTime"), lastBlock.height) | |
222 | - | ||
223 | - | ||
224 | - | @Callable(i) | |
225 | - | func changeDummyCurrentTime (time) = [IntegerEntry("dummyCurrentTime", (lastBlock.height + time))] | |
226 | - | ||
227 | - | ||
228 | - | ||
229 | - | @Callable(i) | |
230 | - | func deleteDummyCurrentTime () = [DeleteEntry("dummyCurrentTime")] | |
231 | - | ||
232 | - | ||
233 | - | ||
234 | 219 | @Callable(i) | |
235 | 220 | func buyTokensFromPresale (buyAmount,routesStr,refferelId) = { | |
236 | 221 | let caller = toBase58String(i.caller.bytes) | |
237 | 222 | let pmt = value(i.payments[0]) | |
238 | 223 | if (!(getPresaleStatus())) | |
239 | 224 | then throw("Presale Not Started Yet or Stopped") | |
240 | - | else if (( | |
225 | + | else if ((lastBlock.height > (getPresaleStartedTime() + PRESALE_VALID_DATES))) | |
241 | 226 | then [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleEndedTimeKey, lastBlock.height), throw("Presale Expired")] | |
242 | 227 | else if ((getRemainingPresaleTokenAmount() == 0)) | |
243 | 228 | then [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleEndedTimeKey, lastBlock.height), throw("All Allocated Tokens Are Sold")] | |
244 | 229 | else if ((buyAmount > getRemainingPresaleTokenAmount())) | |
245 | 230 | then throw("Exceeded Remaining Token Amount Dedicated for Presale") | |
246 | 231 | else if (!(containsElement(ACCEPTABLE_ASSET_IDS, i.payments[0].assetId))) | |
247 | 232 | then throw("Given payment asset not supported") | |
248 | 233 | else if ((pmt.assetId == USDN_ID)) | |
249 | 234 | then { | |
250 | 235 | let referrelIdGenerated = getReferrelIdByAddress(caller, i) | |
251 | 236 | let refferee = getAddressByRefferalId(refferelId) | |
252 | 237 | let releasedUSDNAmount = pmt.amount | |
253 | 238 | let tokens = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
254 | 239 | if ((refferee == "")) | |
255 | 240 | then [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry((caller + tokenPresaleKey), (tokens + getTokensBoughtFromPresale(caller))), IntegerEntry((caller + presaleAssetsLockedKey), (tokens + getCurrentTokenAmountLockedBoughtFromPreSale(caller))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokens)), StringEntry((caller + presaleAddressesKey), caller), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
256 | 241 | else [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry((caller + tokenPresaleKey), (tokens + getTokensBoughtFromPresale(caller))), IntegerEntry((caller + presaleAssetsLockedKey), (tokens + getCurrentTokenAmountLockedBoughtFromPreSale(caller))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokens)), StringEntry((caller + presaleAddressesKey), caller), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
257 | 242 | } | |
258 | 243 | else { | |
259 | 244 | let referrelIdGenerated = getReferrelIdByAddress(caller, i) | |
260 | 245 | let refferee = getAddressByRefferalId(refferelId) | |
261 | 246 | let assetBalanceBeforeSwap = assetBalance(this, USDN_ID) | |
262 | 247 | if ((assetBalanceBeforeSwap == assetBalanceBeforeSwap)) | |
263 | 248 | then { | |
264 | 249 | let swap = invoke(Address(SWAP_AGGREGATOR_ADDR), "swap", [routesStr, 0], [AttachedPayment(pmt.assetId, pmt.amount)]) | |
265 | 250 | if ((swap == swap)) | |
266 | 251 | then { | |
267 | 252 | let assetBalanceAfterSwap = assetBalance(this, USDN_ID) | |
268 | 253 | if ((assetBalanceAfterSwap == assetBalanceAfterSwap)) | |
269 | 254 | then { | |
270 | 255 | let releasedUSDNAmount = (assetBalanceAfterSwap - assetBalanceBeforeSwap) | |
271 | 256 | let tokens = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
272 | 257 | if ((refferee == "")) | |
273 | 258 | then [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry((caller + tokenPresaleKey), (tokens + getTokensBoughtFromPresale(caller))), IntegerEntry((caller + presaleAssetsLockedKey), (tokens + getCurrentTokenAmountLockedBoughtFromPreSale(caller))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokens)), StringEntry((caller + presaleAddressesKey), caller), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
274 | 259 | else [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry((caller + tokenPresaleKey), (tokens + getTokensBoughtFromPresale(caller))), IntegerEntry((caller + presaleAssetsLockedKey), (tokens + getCurrentTokenAmountLockedBoughtFromPreSale(caller))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokens)), StringEntry((caller + presaleAddressesKey), caller), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
275 | 260 | } | |
276 | 261 | else throw("Strict value is not equal to itself.") | |
277 | 262 | } | |
278 | 263 | else throw("Strict value is not equal to itself.") | |
279 | 264 | } | |
280 | 265 | else throw("Strict value is not equal to itself.") | |
281 | 266 | } | |
282 | 267 | } | |
283 | 268 | ||
284 | 269 | ||
285 | 270 | ||
286 | 271 | @Callable(i) | |
287 | 272 | func privateSale (buyAmount,routesStr,refferelId) = { | |
288 | 273 | let caller = toBase58String(i.caller.bytes) | |
289 | 274 | let pmt = value(i.payments[0]) | |
290 | 275 | let amount = pmt.amount | |
291 | 276 | let remainingPrivateSaleTokenAmount = getRemainingPriVateSaleTokenAmount() | |
292 | 277 | if (getWhiteListedOrNot(caller)) | |
293 | 278 | then if ((pmt.assetId == USDN_ID)) | |
294 | 279 | then { | |
295 | 280 | let referrelIdGenerated = getReferrelIdByAddress(caller, i) | |
296 | 281 | let refferee = getAddressByRefferalId(refferelId) | |
297 | 282 | let releasedUSDNAmount = pmt.amount | |
298 | 283 | let tokens = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRIVATESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
299 | 284 | if (if ((5000 > tokens)) | |
300 | 285 | then true | |
301 | 286 | else (tokens > remainingPrivateSaleTokenAmount)) | |
302 | 287 | then throw("Insufficient token amount") | |
303 | 288 | else if ((refferee == "")) | |
304 | 289 | then [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(totalTokensForPrivateSaleKey, PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT), IntegerEntry((caller + privateSaleKey), (tokens + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(remainingPrivateSaleTokenAmountKey, (getRemainingPriVateSaleTokenAmount() - tokens)), StringEntry((caller + privateSaleAddressesKey), caller), IntegerEntry((caller + privateSaleAssetsLockedKey), (tokens + getTokensBoughtFromPrivateSale(caller))), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
305 | 290 | else { | |
306 | 291 | let referralRewardAmount = fraction((buyAmount * DECIMAL_POINTS_IN_TOKEN), 50, DENOMINATOR) | |
307 | 292 | [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(totalTokensForPrivateSaleKey, PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT), IntegerEntry((caller + privateSaleKey), (tokens + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(remainingPrivateSaleTokenAmountKey, ((getRemainingPriVateSaleTokenAmount() - tokens) - referralRewardAmount)), StringEntry((caller + privateSaleAddressesKey), caller), IntegerEntry((caller + privateSaleAssetsLockedKey), (tokens + getTokensBoughtFromPrivateSale(caller))), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
308 | 293 | } | |
309 | 294 | } | |
310 | 295 | else { | |
311 | 296 | let referrelIdGenerated = getReferrelIdByAddress(caller, i) | |
312 | 297 | let refferee = getAddressByRefferalId(refferelId) | |
313 | 298 | let assetBalanceBeforeSwap = assetBalance(this, USDN_ID) | |
314 | 299 | if ((assetBalanceBeforeSwap == assetBalanceBeforeSwap)) | |
315 | 300 | then { | |
316 | 301 | let swap = invoke(Address(SWAP_AGGREGATOR_ADDR), "swap", [routesStr, 0], [AttachedPayment(pmt.assetId, pmt.amount)]) | |
317 | 302 | if ((swap == swap)) | |
318 | 303 | then { | |
319 | 304 | let assetBalanceAfterSwap = assetBalance(this, USDN_ID) | |
320 | 305 | if ((assetBalanceAfterSwap == assetBalanceAfterSwap)) | |
321 | 306 | then { | |
322 | 307 | let releasedUSDNAmount = (assetBalanceAfterSwap - assetBalanceBeforeSwap) | |
323 | 308 | let tokens = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRIVATESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
324 | 309 | if (if ((5000 > tokens)) | |
325 | 310 | then true | |
326 | 311 | else (tokens > remainingPrivateSaleTokenAmount)) | |
327 | 312 | then throw("Insufficient token amount") | |
328 | 313 | else if ((refferee == "")) | |
329 | 314 | then [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(totalTokensForPrivateSaleKey, PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT), IntegerEntry((caller + privateSaleKey), (tokens + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(remainingPrivateSaleTokenAmountKey, (getRemainingPriVateSaleTokenAmount() - tokens)), StringEntry((caller + privateSaleAddressesKey), caller), IntegerEntry((caller + privateSaleAssetsLockedKey), (tokens + getTokensBoughtFromPrivateSale(caller))), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
330 | 315 | else { | |
331 | 316 | let referralRewardAmount = fraction((tokens * DECIMAL_POINTS_IN_TOKEN), 50, DENOMINATOR) | |
332 | 317 | [IntegerEntry((caller + assetsLockedKey), ((tokens + getTokensBoughtFromPresale(caller)) + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(totalTokensForPrivateSaleKey, PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT), IntegerEntry((caller + privateSaleKey), (tokens + getTokensBoughtFromPrivateSale(caller))), IntegerEntry(remainingPrivateSaleTokenAmountKey, ((getRemainingPriVateSaleTokenAmount() - tokens) - referralRewardAmount)), StringEntry((caller + privateSaleAddressesKey), caller), IntegerEntry((caller + privateSaleAssetsLockedKey), (tokens + getTokensBoughtFromPrivateSale(caller))), StringEntry((caller + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), caller)] | |
333 | 318 | } | |
334 | 319 | } | |
335 | 320 | else throw("Strict value is not equal to itself.") | |
336 | 321 | } | |
337 | 322 | else throw("Strict value is not equal to itself.") | |
338 | 323 | } | |
339 | 324 | else throw("Strict value is not equal to itself.") | |
340 | 325 | } | |
341 | 326 | else throw("You are not in whitelist") | |
342 | 327 | } | |
343 | 328 | ||
344 | 329 | ||
345 | 330 | ||
346 | 331 | @Callable(i) | |
347 | 332 | func startPresale () = if ((i.caller.bytes != this.bytes)) | |
348 | 333 | then throw("Only Owner Can start the Presale") | |
349 | 334 | else if (getPresaleStatus()) | |
350 | 335 | then throw("Presale Already Started") | |
351 | 336 | else [BooleanEntry(isPresaleStartedKey, true), IntegerEntry(presaleStartedTimeKey, getPresaleStartedTime())] | |
352 | 337 | ||
353 | 338 | ||
354 | 339 | ||
355 | 340 | @Callable(i) | |
356 | 341 | func stopPresale () = if ((i.caller.bytes != this.bytes)) | |
357 | 342 | then throw("Only Owner Can stop the Presale") | |
358 | 343 | else [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleStartedTimeKey, getPresaleStartedTime())] | |
359 | 344 | ||
360 | 345 | ||
361 | 346 | ||
362 | 347 | @Callable(i) | |
363 | 348 | func add5ToWhiteList (addr) = if ((i.caller.bytes != this.bytes)) | |
364 | 349 | then throw("Only Owner Can Add Members to the WhiteList") | |
365 | 350 | else { | |
366 | 351 | func map (accum,next) = BooleanEntry((next + whiteListKey), true) :: accum | |
367 | 352 | ||
368 | 353 | let $l = addr | |
369 | 354 | let $s = size($l) | |
370 | 355 | let $acc0 = nil | |
371 | 356 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
372 | 357 | then $a | |
373 | 358 | else map($a, $l[$i]) | |
374 | 359 | ||
375 | 360 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
376 | 361 | then $a | |
377 | 362 | else throw("List size exceeds 5") | |
378 | 363 | ||
379 | 364 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
380 | 365 | } | |
381 | 366 | ||
382 | 367 | ||
383 | 368 | ||
384 | 369 | @Callable(i) | |
385 | 370 | func gameLaunching () = if ((i.caller.bytes != this.bytes)) | |
386 | 371 | then throw("Only Owner Change the Game Launch Status") | |
387 | 372 | else if (getGameLaunchedStatus()) | |
388 | 373 | then throw("Game Already Launched") | |
389 | 374 | else [BooleanEntry(isGameLaunchedKey, true), IntegerEntry(gameLaunchedTimeKey, lastBlock.height)] | |
390 | 375 | ||
391 | 376 | ||
392 | 377 | ||
393 | 378 | @Callable(i) | |
394 | 379 | func allocateBattleRewards () = if ((i.caller.bytes != this.bytes)) | |
395 | 380 | then throw("Only Owner has Permission") | |
396 | 381 | else if (isBattleRewardsAllocated()) | |
397 | 382 | then throw("Battle Rewards Already Allocated") | |
398 | 383 | else [IntegerEntry((toBase58String(BATTLE_REWARDS_WALLET) + assetsLockedKey), fraction(TOTAL_TOKEN_AMOUNT, REWARDS_PERCENTAGE_BATTLE, DENOMINATOR)), BooleanEntry(isBattleRewardsAllocatedKey, true), IntegerEntry((toBase58String(BATTLE_REWARDS_WALLET) + battleRewardsKey), fraction(TOTAL_TOKEN_AMOUNT, REWARDS_PERCENTAGE_BATTLE, DENOMINATOR)), ScriptTransfer(Address(BATTLE_REWARDS_WALLET), (fraction(TOTAL_TOKEN_AMOUNT, REWARDS_PERCENTAGE_BATTLE, DENOMINATOR) * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
399 | 384 | ||
400 | 385 | ||
401 | 386 | ||
402 | 387 | @Callable(i) | |
403 | 388 | func allocateTournamentRewards () = if ((i.caller.bytes != this.bytes)) | |
404 | 389 | then throw("Only Owner has Permission") | |
405 | 390 | else if (isTournamentRewardsAllocated()) | |
406 | 391 | then throw("Tournament Rewards Already Allocated") | |
407 | 392 | else [IntegerEntry((toBase58String(TOURNAMENTS_REWARDS_WALLET) + assetsLockedKey), fraction(TOTAL_TOKEN_AMOUNT, REWARDS_PERCENTAGE_TOURNAMENT, DENOMINATOR)), BooleanEntry(isTournamentRewardsAllocatedKey, true), IntegerEntry((toBase58String(TOURNAMENTS_REWARDS_WALLET) + tournamentRewardsKey), fraction(TOTAL_TOKEN_AMOUNT, REWARDS_PERCENTAGE_TOURNAMENT, DENOMINATOR)), ScriptTransfer(Address(TOURNAMENTS_REWARDS_WALLET), (fraction(TOTAL_TOKEN_AMOUNT, REWARDS_PERCENTAGE_TOURNAMENT, DENOMINATOR) * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
408 | 393 | ||
409 | 394 | ||
410 | 395 | ||
411 | 396 | @Callable(i) | |
412 | 397 | func unlockPresaleTokens () = { | |
413 | 398 | let caller = toBase58String(i.caller.bytes) | |
414 | 399 | let totalTokenBalanceOwned = getTokensBoughtFromPresale(caller) | |
415 | 400 | if ((totalTokenBalanceOwned == 0)) | |
416 | 401 | then throw("You havent enough tokens to claim") | |
417 | 402 | else { | |
418 | 403 | let currentTime = lastBlock.height | |
419 | 404 | let gameLaunchedTime = getGameLaunchedTime() | |
420 | 405 | if ((gameLaunchedTime == 0)) | |
421 | 406 | then throw("You cant claim until game launch") | |
422 | 407 | else { | |
423 | 408 | let claimedPhase = getPresaleClaimedPhase(caller) | |
424 | 409 | let presaleClaimedAssetAmount = getClaimedAssetAmountFromPresale(caller) | |
425 | 410 | if (if ((currentTime >= gameLaunchedTime)) | |
426 | 411 | then ((gameLaunchedTime + PRESALE_VESTING_PERIOD_1) > currentTime) | |
427 | 412 | else false) | |
428 | 413 | then if ((claimedPhase != 1)) | |
429 | 414 | then [IntegerEntry((caller + presaleClaimedPhaseKey), 1), IntegerEntry((caller + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_1, DENOMINATOR))), IntegerEntry((caller + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_1, DENOMINATOR)), ScriptTransfer(value(addressFromString(caller)), ((fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_1, DENOMINATOR) - presaleClaimedAssetAmount) * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
430 | 415 | else throw("Already claimed") | |
431 | 416 | else if (if ((currentTime >= (gameLaunchedTime + PRESALE_VESTING_PERIOD_1))) | |
432 | 417 | then ((gameLaunchedTime + PRESALE_VESTING_PERIOD_2) > currentTime) | |
433 | 418 | else false) | |
434 | 419 | then if ((claimedPhase != 2)) | |
435 | 420 | then [IntegerEntry((caller + presaleClaimedPhaseKey), 2), IntegerEntry((caller + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_2, DENOMINATOR))), IntegerEntry((caller + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_2, DENOMINATOR)), ScriptTransfer(value(addressFromString(caller)), ((fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_2, DENOMINATOR) - presaleClaimedAssetAmount) * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
436 | 421 | else throw("Already claimed") | |
437 | 422 | else if (if ((currentTime >= (gameLaunchedTime + PRESALE_VESTING_PERIOD_2))) | |
438 | 423 | then ((gameLaunchedTime + PRESALE_VESTING_PERIOD_3) > currentTime) | |
439 | 424 | else false) | |
440 | 425 | then if ((claimedPhase != 3)) | |
441 | 426 | then [IntegerEntry((caller + presaleClaimedPhaseKey), 3), IntegerEntry((caller + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_3, DENOMINATOR))), IntegerEntry((caller + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_3, DENOMINATOR)), ScriptTransfer(value(addressFromString(caller)), ((fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_3, DENOMINATOR) - presaleClaimedAssetAmount) * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
442 | 427 | else throw("Already claimed") | |
443 | 428 | else throw("Already claimed") | |
444 | 429 | } | |
445 | 430 | } | |
446 | 431 | } | |
447 | 432 | ||
448 | 433 | ||
449 | 434 | ||
450 | 435 | @Callable(i) | |
451 | 436 | func unlockPrivateSaleTokensWithAddress (addr) = { | |
452 | 437 | let totalTokenBalanceOwned = getTokensBoughtFromPrivateSale(addr) | |
453 | 438 | if ((totalTokenBalanceOwned == 0)) | |
454 | 439 | then throw("Given Address havent enough tokens to claim") | |
455 | 440 | else { | |
456 | 441 | let currentTime = lastBlock.height | |
457 | 442 | let gameLaunchedTime = getGameLaunchedTime() | |
458 | 443 | if ((gameLaunchedTime == 0)) | |
459 | 444 | then throw("Given Address cant claim until game launch") | |
460 | 445 | else if ((getPrivatesaleClaimedPhase(addr) != 1)) | |
461 | 446 | then [IntegerEntry((addr + privateSaleClaimedPhaseKey), 1), IntegerEntry((addr + privateSaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, 100, DENOMINATOR))), IntegerEntry((addr + privateSaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, 100, DENOMINATOR)), ScriptTransfer(value(addressFromString(addr)), (fraction(totalTokenBalanceOwned, 100, DENOMINATOR) * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
462 | 447 | else throw("Already claimed") | |
463 | 448 | } | |
464 | 449 | } | |
465 | 450 | ||
466 | 451 | ||
467 | 452 | ||
468 | 453 | @Callable(i) | |
469 | 454 | func allocateIDOTokens () = nil | |
470 | 455 | ||
471 | 456 | ||
472 | 457 | ||
473 | 458 | @Callable(i) | |
474 | 459 | func allocatePromoFunds () = nil | |
475 | 460 | ||
476 | 461 |
github/deemru/w8io/169f3d6 64.46 ms ◑