tx · EYFjCJwWBTGEpXe4bsvw9dvyqT6UmjHabm2SPvPwT3Q6 3NBP5xCxWNwQyPRpJRLB2MDZ2AUk5ZQRs7u: -0.01000000 Waves 2022.05.22 09:57 [2062550] smart account 3NBP5xCxWNwQyPRpJRLB2MDZ2AUk5ZQRs7u > SELF 0.00000000 Waves
{ "type": 13, "id": "EYFjCJwWBTGEpXe4bsvw9dvyqT6UmjHabm2SPvPwT3Q6", "fee": 1000000, "feeAssetId": null, "timestamp": 1653202650603, "version": 2, "chainId": 84, "sender": "3NBP5xCxWNwQyPRpJRLB2MDZ2AUk5ZQRs7u", "senderPublicKey": "FBEFt73DeACFwi1aUnSkFMTw6bZPnaT63ykJagVXGgMG", "proofs": [ "31aXQCxk9QbHw2B6n3TGLsH3DYgfeoqD8jJoEFkv8xwiVRSUGLvLekyo4omRMV3X7fhgKgT4m6VRLggAYvogCrNu" ], "script": "base64:AAIFAAAAAAAAAC4IAhIFCgMBCAgSBAoCAQgSABIAEgMKARgSABIAEgASABIDCgEIEgMKAQgSABIAAAAAXAAAAAASVE9UQUxfVE9LRU5fQU1PVU5UAAAAAAAF9eEAAAAAAApUT0tFTl9OQU1FAgAAAAUkTUlOSQAAAAAIVE9LRU5fSUQBAAAAIPm6AX3vkhP4OE4QVKMdgQ+Iu0iyvaAUNHZ4s/ySUsRnAAAAABdERUNJTUFMX1BPSU5UU19JTl9UT0tFTgAAAAAABfXhAAAAAAAWREVDSU1BTF9QT0lOVFNfSU5fVVNETgAAAAAAAA9CQAAAAAAHVVNETl9JRAEAAAAgjM1IDC5yZD2OPyAfbm9x2Hvx5iJIiwnAa1Y0EMQJ1FoAAAAAC1VTRE5fSURfU1RSAgAAAApVU0ROX0FTU0VUAAAAABRTV0FQX0FHR1JFR0FUT1JfQUREUgEAAAAaAVS+7bCwcCiUldPwHcBZ3JATvAVyDRN3jksAAAAAFEFDQ0VQVEFCTEVfQVNTRVRfSURTCQAETAAAAAIBAAAAIGbMHW9htRAA+kF+p6pJPO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AAEFAAAABGFkZHIAAAAAAAAAAAEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAAEYWRkcgUAAAAacHJpdmF0ZVNhbGVDbGFpbWVkUGhhc2VLZXkAAAAAAAAAAAEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAAEYWRkcgUAAAAacHJpdmF0ZVNhbGVBc3NldHNMb2NrZWRLZXkJAABlAAAAAgUAAAAWdG90YWxUb2tlbkJhbGFuY2VPd25lZAkAAGsAAAADBQAAABZ0b3RhbFRva2VuQmFsYW5jZU93bmVkAAAAAAAAAABkBQAAAAtERU5PTUlOQVRPUgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAARhZGRyBQAAABtwcml2YXRlU2FsZUFzc2V0c0NsYWltZWRLZXkJAABrAAAAAwUAAAAWdG90YWxUb2tlbkJhbGFuY2VPd25lZAAAAAAAAAAAZAUAAAALREVOT01JTkFUT1IFAAAAA25pbAkAAAIAAAABAgAAACFZb3UgYWxyZWFkeSBjbGFpbWVkIGluIHRoaXMgcGhhc2UAAAABaQEAAAARYWxsb2NhdGVJRE9Ub2tlbnMAAAAABQAAAANuaWwAAAABaQEAAAASYWxsb2NhdGVQcm9tb0Z1bmRzAAAAAAUAAAADbmlsAAAAAKXmIBo=", "height": 2062550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CLQqEyzV2yqds9FnsmQ4YfSHePHqDus213aec2ypSCNY Next: 2Yj1EK63SVKigpZgAhvg2Kf1yRVxfC9bZZu2xod7pnoY Diff:
Old | New | Differences | |
---|---|---|---|
236 | 236 | then { | |
237 | 237 | let referrelIdGenerated = getReferrelIdByAddress(callerAddress, i) | |
238 | 238 | let refferee = getAddressByRefferalId(refferelId) | |
239 | - | let releasedUSDNAmount = | |
240 | - | let tokenAmountCanBeReleased = fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN) | |
239 | + | let releasedUSDNAmount = pmt.amount | |
240 | + | let tokenAmountCanBeReleased = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
241 | 241 | if ((refferee == "")) | |
242 | 242 | then [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
243 | 243 | else [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
254 | 254 | let assetBalanceAfterSwap = assetBalance(this, USDN_ID) | |
255 | 255 | if ((assetBalanceAfterSwap == assetBalanceAfterSwap)) | |
256 | 256 | then { | |
257 | - | let releasedUSDNAmount = | |
258 | - | let tokenAmountCanBeReleased = fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN) | |
257 | + | let releasedUSDNAmount = (assetBalanceAfterSwap - assetBalanceBeforeSwap) | |
258 | + | let tokenAmountCanBeReleased = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
259 | 259 | if ((refferee == "")) | |
260 | 260 | then [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
261 | 261 | else [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] |
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 = 0 | |
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 isGameLaunchedKey = "is_game_launched" | |
89 | 89 | ||
90 | 90 | let gameLaunchedTimeKey = "gameLaunchedTime" | |
91 | 91 | ||
92 | 92 | let tokenPresaleKey = "_tokenPresale_" | |
93 | 93 | ||
94 | 94 | let remainingPresaleTokenAmountKey = "remainingPresaleTokenAmount" | |
95 | 95 | ||
96 | 96 | let remainingPrivateSaleTokenAmountKey = "remainingPrivateSaleTokenAmount" | |
97 | 97 | ||
98 | 98 | let presaleAddressesKey = "_presaleAddresses_" | |
99 | 99 | ||
100 | 100 | let privateSaleAddressesKey = "_privateSaleAddresses_" | |
101 | 101 | ||
102 | 102 | let whiteListKey = "_whiteList_" | |
103 | 103 | ||
104 | 104 | let privateSaleKey = "_privateSale_" | |
105 | 105 | ||
106 | 106 | let totalTokensForPrivateSaleKey = "totalTokensForPrivateSale" | |
107 | 107 | ||
108 | 108 | let privateSaleAssetsClaimedKey = "_privateSaleAssetsClaimed_" | |
109 | 109 | ||
110 | 110 | let privateSaleAssetsLockedKey = "_privateSaleAssetsLocked_" | |
111 | 111 | ||
112 | 112 | let idoReleasedKey = "idoReleased" | |
113 | 113 | ||
114 | 114 | let presaleStartedTimeKey = "presaleStartedTime" | |
115 | 115 | ||
116 | 116 | let presaleEndedTimeKey = "presaleEndedTime" | |
117 | 117 | ||
118 | 118 | let assetsLockedKey = "_assetsLocked_" | |
119 | 119 | ||
120 | 120 | let isBattleRewardsAllocatedKey = "isBattleRewardsAllocated" | |
121 | 121 | ||
122 | 122 | let battleRewardsKey = "_battleRewards_" | |
123 | 123 | ||
124 | 124 | let isTournamentRewardsAllocatedKey = "isTournamentRewardsAllocated" | |
125 | 125 | ||
126 | 126 | let tournamentRewardsKey = "_tournamentRewards_" | |
127 | 127 | ||
128 | 128 | let referralIdKey = "_referralId_" | |
129 | 129 | ||
130 | 130 | let referrelAddressKey = "_referrelAddress_" | |
131 | 131 | ||
132 | 132 | let presaleClaimedPhaseKey = "_presaleClaimedPhase_" | |
133 | 133 | ||
134 | 134 | let privateSaleClaimedPhaseKey = "_privateSaleClaimedPhase_" | |
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 getCurrentTokenAmountBoughtFromPresale (addr) = getNumberByKey((addr + tokenPresaleKey)) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func getCurrentTokenAmountBoughtFromPrivateSale (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 getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES")) | |
211 | 211 | then unit | |
212 | 212 | else fromBase58String(assetIdStr) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func getPresaleClaimedPhase (address) = valueOrElse(getInteger(this, presaleClaimedPhaseKey), 0) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func getPrivatesaleClaimedPhase (address) = valueOrElse(getInteger(this, privateSaleClaimedPhaseKey), 0) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | @Callable(i) | |
222 | 222 | func buyTokensFromPresale (buyAmount,routesStr,refferelId) = { | |
223 | 223 | let callerAddress = toBase58String(i.caller.bytes) | |
224 | 224 | let pmt = value(i.payments[0]) | |
225 | 225 | if (!(getPresaleStatus())) | |
226 | 226 | then throw("Presale Not Started Yet or Stopped") | |
227 | 227 | else if ((lastBlock.height > (getPresaleStartedTime() + PRESALE_VALID_DATES))) | |
228 | 228 | then [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleEndedTimeKey, lastBlock.height), throw("Presale Expired")] | |
229 | 229 | else if ((getRemainingPresaleTokenAmount() == 0)) | |
230 | 230 | then [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleEndedTimeKey, lastBlock.height), throw("All Allocated Tokens Are Sold")] | |
231 | 231 | else if ((buyAmount > getRemainingPresaleTokenAmount())) | |
232 | 232 | then throw("Exceeded Remaining Token Amount Dedicated for Presale") | |
233 | 233 | else if (!(containsElement(ACCEPTABLE_ASSET_IDS, i.payments[0].assetId))) | |
234 | 234 | then throw("Given payment asset not supported") | |
235 | 235 | else if ((pmt.assetId == USDN_ID)) | |
236 | 236 | then { | |
237 | 237 | let referrelIdGenerated = getReferrelIdByAddress(callerAddress, i) | |
238 | 238 | let refferee = getAddressByRefferalId(refferelId) | |
239 | - | let releasedUSDNAmount = | |
240 | - | let tokenAmountCanBeReleased = fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN) | |
239 | + | let releasedUSDNAmount = pmt.amount | |
240 | + | let tokenAmountCanBeReleased = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
241 | 241 | if ((refferee == "")) | |
242 | 242 | then [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
243 | 243 | else [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
244 | 244 | } | |
245 | 245 | else { | |
246 | 246 | let referrelIdGenerated = getReferrelIdByAddress(callerAddress, i) | |
247 | 247 | let refferee = getAddressByRefferalId(refferelId) | |
248 | 248 | let assetBalanceBeforeSwap = assetBalance(this, USDN_ID) | |
249 | 249 | if ((assetBalanceBeforeSwap == assetBalanceBeforeSwap)) | |
250 | 250 | then { | |
251 | 251 | let swap = invoke(Address(SWAP_AGGREGATOR_ADDR), "swap", [routesStr, 0], [AttachedPayment(pmt.assetId, pmt.amount)]) | |
252 | 252 | if ((swap == swap)) | |
253 | 253 | then { | |
254 | 254 | let assetBalanceAfterSwap = assetBalance(this, USDN_ID) | |
255 | 255 | if ((assetBalanceAfterSwap == assetBalanceAfterSwap)) | |
256 | 256 | then { | |
257 | - | let releasedUSDNAmount = | |
258 | - | let tokenAmountCanBeReleased = fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN) | |
257 | + | let releasedUSDNAmount = (assetBalanceAfterSwap - assetBalanceBeforeSwap) | |
258 | + | let tokenAmountCanBeReleased = fraction(fraction(releasedUSDNAmount, DENOMINATOR, PRESALE_UNIT_PRICE_USDN), 1, DECIMAL_POINTS_IN_USDN) | |
259 | 259 | if ((refferee == "")) | |
260 | 260 | then [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
261 | 261 | else [IntegerEntry((callerAddress + assetsLockedKey), ((tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry((callerAddress + tokenPresaleKey), (tokenAmountCanBeReleased + getCurrentTokenAmountBoughtFromPresale(callerAddress))), IntegerEntry((callerAddress + presaleAssetsLockedKey), (tokenAmountCanBeReleased + getCurrentTokenAmountLockedBoughtFromPreSale(callerAddress))), IntegerEntry(remainingPresaleTokenAmountKey, (getRemainingPresaleTokenAmount() - tokenAmountCanBeReleased)), StringEntry((callerAddress + presaleAddressesKey), callerAddress), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (tokenAmountCanBeReleased * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
262 | 262 | } | |
263 | 263 | else throw("Strict value is not equal to itself.") | |
264 | 264 | } | |
265 | 265 | else throw("Strict value is not equal to itself.") | |
266 | 266 | } | |
267 | 267 | else throw("Strict value is not equal to itself.") | |
268 | 268 | } | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(i) | |
274 | 274 | func privateSale (buyAmount,refferelId) = { | |
275 | 275 | let callerAddress = toBase58String(i.caller.bytes) | |
276 | 276 | let pmt = value(i.payments[0]) | |
277 | 277 | let amount = pmt.amount | |
278 | 278 | let remainingPrivateSaleTokenAmount = getRemainingPriVateSaleTokenAmount() | |
279 | 279 | if (getWhiteListedOrNot(callerAddress)) | |
280 | 280 | then if (if ((remainingPrivateSaleTokenAmount > buyAmount)) | |
281 | 281 | then (buyAmount > 5000) | |
282 | 282 | else false) | |
283 | 283 | then if (((fraction(buyAmount, PRIVATESALE_UNIT_PRICE_USDN, DENOMINATOR) * WVS) > amount)) | |
284 | 284 | then throw("Not enough payments in waves") | |
285 | 285 | else { | |
286 | 286 | let referrelIdGenerated = getReferrelIdByAddress(callerAddress, i) | |
287 | 287 | let refferee = getAddressByRefferalId(refferelId) | |
288 | 288 | if ((refferee == "")) | |
289 | 289 | then [IntegerEntry((callerAddress + assetsLockedKey), ((buyAmount + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry(totalTokensForPrivateSaleKey, PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT), IntegerEntry((callerAddress + privateSaleKey), (buyAmount + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry(remainingPrivateSaleTokenAmountKey, (getRemainingPriVateSaleTokenAmount() - buyAmount)), StringEntry((callerAddress + privateSaleAddressesKey), callerAddress), IntegerEntry((callerAddress + privateSaleAssetsLockedKey), (buyAmount + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (buyAmount * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID)] | |
290 | 290 | else { | |
291 | 291 | let referralRewardAmount = fraction((buyAmount * DECIMAL_POINTS_IN_TOKEN), 50, DENOMINATOR) | |
292 | 292 | [IntegerEntry((callerAddress + assetsLockedKey), ((buyAmount + getCurrentTokenAmountBoughtFromPresale(callerAddress)) + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry(totalTokensForPrivateSaleKey, PRIVATE_SALE_ALLOCATED_TOKEN_AMOUNT), IntegerEntry((callerAddress + privateSaleKey), (buyAmount + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), IntegerEntry(remainingPrivateSaleTokenAmountKey, ((getRemainingPriVateSaleTokenAmount() - buyAmount) - referralRewardAmount)), StringEntry((callerAddress + privateSaleAddressesKey), callerAddress), IntegerEntry((callerAddress + privateSaleAssetsLockedKey), (buyAmount + getCurrentTokenAmountBoughtFromPrivateSale(callerAddress))), StringEntry((callerAddress + referralIdKey), referrelIdGenerated), StringEntry((referrelIdGenerated + referrelAddressKey), callerAddress), ScriptTransfer(value(addressFromString(callerAddress)), (buyAmount * DECIMAL_POINTS_IN_TOKEN), TOKEN_ID), ScriptTransfer(value(addressFromString(refferee)), referralRewardAmount, TOKEN_ID)] | |
293 | 293 | } | |
294 | 294 | } | |
295 | 295 | else throw("Not sufficient token Amount") | |
296 | 296 | else throw("You are not in whitelist") | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||
301 | 301 | @Callable(i) | |
302 | 302 | func startPresale () = if ((i.caller.bytes != this.bytes)) | |
303 | 303 | then throw("Only Owner Can start the Presale") | |
304 | 304 | else if (getPresaleStatus()) | |
305 | 305 | then throw("Presale Already Started") | |
306 | 306 | else [BooleanEntry(isPresaleStartedKey, true), IntegerEntry(presaleStartedTimeKey, getPresaleStartedTime())] | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(i) | |
311 | 311 | func stopPresale () = if ((i.caller.bytes != this.bytes)) | |
312 | 312 | then throw("Only Owner Can stop the Presale") | |
313 | 313 | else [BooleanEntry(isPresaleStartedKey, false), IntegerEntry(presaleStartedTimeKey, getPresaleStartedTime())] | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | ||
317 | 317 | @Callable(i) | |
318 | 318 | func add5ToWhiteList (addr) = if ((i.caller.bytes != this.bytes)) | |
319 | 319 | then throw("Only Owner Can Add Members to the WhiteList") | |
320 | 320 | else { | |
321 | 321 | func map (accum,next) = BooleanEntry((next + whiteListKey), true) :: accum | |
322 | 322 | ||
323 | 323 | let $l = addr | |
324 | 324 | let $s = size($l) | |
325 | 325 | let $acc0 = nil | |
326 | 326 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
327 | 327 | then $a | |
328 | 328 | else map($a, $l[$i]) | |
329 | 329 | ||
330 | 330 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
331 | 331 | then $a | |
332 | 332 | else throw("List size exceeds 5") | |
333 | 333 | ||
334 | 334 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(i) | |
340 | 340 | func gameLaunching () = if ((i.caller.bytes != this.bytes)) | |
341 | 341 | then throw("Only Owner Change the Game Launch Status") | |
342 | 342 | else if (getGameLaunchedStatus()) | |
343 | 343 | then throw("Game Already Launched") | |
344 | 344 | else [BooleanEntry(isGameLaunchedKey, true), IntegerEntry(gameLaunchedTimeKey, lastBlock.height)] | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | ||
348 | 348 | @Callable(i) | |
349 | 349 | func allocateBattleRewards () = if ((i.caller.bytes != this.bytes)) | |
350 | 350 | then throw("Only Owner has Permission") | |
351 | 351 | else if (isBattleRewardsAllocated()) | |
352 | 352 | then throw("Battle Rewards Already Allocated") | |
353 | 353 | 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)] | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | ||
357 | 357 | @Callable(i) | |
358 | 358 | func allocateTournamentRewards () = if ((i.caller.bytes != this.bytes)) | |
359 | 359 | then throw("Only Owner has Permission") | |
360 | 360 | else if (isTournamentRewardsAllocated()) | |
361 | 361 | then throw("Tournament Rewards Already Allocated") | |
362 | 362 | 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)] | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | ||
366 | 366 | @Callable(i) | |
367 | 367 | func unlockPresaleTokens () = { | |
368 | 368 | let callerAddress = toBase58String(i.caller.bytes) | |
369 | 369 | let totalTokenBalanceOwned = getCurrentTokenAmountBoughtFromPresale(callerAddress) | |
370 | 370 | if ((totalTokenBalanceOwned == 0)) | |
371 | 371 | then throw("You havent enough tokens to claim") | |
372 | 372 | else { | |
373 | 373 | let currentTime = lastBlock.height | |
374 | 374 | let gameLaunchedTime = getGameLaunchedTime() | |
375 | 375 | if ((gameLaunchedTime == 0)) | |
376 | 376 | then throw("You cant claim until game launch") | |
377 | 377 | else if (if ((currentTime > (gameLaunchedTime + PRESALE_VESTING_PERIOD_1))) | |
378 | 378 | then ((gameLaunchedTime + PRESALE_VESTING_PERIOD_2) > currentTime) | |
379 | 379 | else false) | |
380 | 380 | then if ((getPresaleClaimedPhase(callerAddress) != 1)) | |
381 | 381 | then [IntegerEntry((callerAddress + presaleClaimedPhaseKey), 1), IntegerEntry((callerAddress + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_1, DENOMINATOR))), IntegerEntry((callerAddress + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_1, DENOMINATOR))] | |
382 | 382 | else throw("You already claimed in this phase") | |
383 | 383 | else if (if ((currentTime > (gameLaunchedTime + PRESALE_VESTING_PERIOD_2))) | |
384 | 384 | then ((gameLaunchedTime + PRESALE_VESTING_PERIOD_3) > currentTime) | |
385 | 385 | else false) | |
386 | 386 | then if ((getPresaleClaimedPhase(callerAddress) != 2)) | |
387 | 387 | then [IntegerEntry((callerAddress + presaleClaimedPhaseKey), 2), IntegerEntry((callerAddress + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_2, DENOMINATOR))), IntegerEntry((callerAddress + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_2, DENOMINATOR))] | |
388 | 388 | else throw("You already claimed in this phase") | |
389 | 389 | else [IntegerEntry((callerAddress + presaleClaimedPhaseKey), 3), IntegerEntry((callerAddress + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_3, DENOMINATOR))), IntegerEntry((callerAddress + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_3, DENOMINATOR))] | |
390 | 390 | } | |
391 | 391 | } | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | ||
395 | 395 | @Callable(i) | |
396 | 396 | func unlockPresaleTokensWithAddress (addr) = { | |
397 | 397 | let totalTokenBalanceOwned = getCurrentTokenAmountBoughtFromPresale(addr) | |
398 | 398 | if ((totalTokenBalanceOwned == 0)) | |
399 | 399 | then throw("You havent enough tokens to claim") | |
400 | 400 | else { | |
401 | 401 | let currentTime = lastBlock.height | |
402 | 402 | let gameLaunchedTime = getGameLaunchedTime() | |
403 | 403 | if ((gameLaunchedTime == 0)) | |
404 | 404 | then throw("You cant claim until game launch") | |
405 | 405 | else if (if ((currentTime > (gameLaunchedTime + PRESALE_VESTING_PERIOD_1))) | |
406 | 406 | then ((gameLaunchedTime + PRESALE_VESTING_PERIOD_2) > currentTime) | |
407 | 407 | else false) | |
408 | 408 | then if ((getPresaleClaimedPhase(addr) != 1)) | |
409 | 409 | then [IntegerEntry((addr + presaleClaimedPhaseKey), 1), IntegerEntry((addr + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_1, DENOMINATOR))), IntegerEntry((addr + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_1, DENOMINATOR))] | |
410 | 410 | else throw("You already claimed in this phase") | |
411 | 411 | else if (if ((currentTime > (gameLaunchedTime + PRESALE_VESTING_PERIOD_2))) | |
412 | 412 | then ((gameLaunchedTime + PRESALE_VESTING_PERIOD_3) > currentTime) | |
413 | 413 | else false) | |
414 | 414 | then if ((getPresaleClaimedPhase(addr) != 2)) | |
415 | 415 | then [IntegerEntry((addr + presaleClaimedPhaseKey), 2), IntegerEntry((addr + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_2, DENOMINATOR))), IntegerEntry((addr + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_2, DENOMINATOR))] | |
416 | 416 | else throw("You already claimed in this phase") | |
417 | 417 | else [IntegerEntry((addr + presaleClaimedPhaseKey), 3), IntegerEntry((addr + presaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_3, DENOMINATOR))), IntegerEntry((addr + presaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, PRESALE_VESTING_PERCENTAGE_3, DENOMINATOR))] | |
418 | 418 | } | |
419 | 419 | } | |
420 | 420 | ||
421 | 421 | ||
422 | 422 | ||
423 | 423 | @Callable(i) | |
424 | 424 | func unlockPrivateSaleTokensWithAddress (addr) = { | |
425 | 425 | let totalTokenBalanceOwned = getCurrentTokenAmountBoughtFromPrivateSale(addr) | |
426 | 426 | if ((totalTokenBalanceOwned == 0)) | |
427 | 427 | then throw("Given Address havent enough tokens to claim") | |
428 | 428 | else { | |
429 | 429 | let currentTime = lastBlock.height | |
430 | 430 | let gameLaunchedTime = getGameLaunchedTime() | |
431 | 431 | if ((gameLaunchedTime == 0)) | |
432 | 432 | then throw("Given Address cant claim until game launch") | |
433 | 433 | else if ((getPrivatesaleClaimedPhase(addr) != 1)) | |
434 | 434 | then [IntegerEntry((addr + privateSaleClaimedPhaseKey), 1), IntegerEntry((addr + privateSaleAssetsLockedKey), (totalTokenBalanceOwned - fraction(totalTokenBalanceOwned, 100, DENOMINATOR))), IntegerEntry((addr + privateSaleAssetsClaimedKey), fraction(totalTokenBalanceOwned, 100, DENOMINATOR))] | |
435 | 435 | else throw("You already claimed in this phase") | |
436 | 436 | } | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | ||
441 | 441 | @Callable(i) | |
442 | 442 | func allocateIDOTokens () = nil | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | ||
446 | 446 | @Callable(i) | |
447 | 447 | func allocatePromoFunds () = nil | |
448 | 448 | ||
449 | 449 |
github/deemru/w8io/169f3d6 88.27 ms ◑