tx · HB3Kz2ZVbThZFpUKuUoiiRXLdFyLobYeW34o9XCVWYB6

3MuLW72Rskgct4uXSeVEQAYoPhreiLjVGia:  -0.01400000 Waves

2019.12.19 09:09 [815408] smart account 3MuLW72Rskgct4uXSeVEQAYoPhreiLjVGia > SELF 0.00000000 Waves

{ "type": 13, "id": "HB3Kz2ZVbThZFpUKuUoiiRXLdFyLobYeW34o9XCVWYB6", "fee": 1400000, "feeAssetId": null, "timestamp": 1576735763312, "version": 1, "sender": "3MuLW72Rskgct4uXSeVEQAYoPhreiLjVGia", "senderPublicKey": "BMbwthKYkuvSJNf8PjgCARQhGreCu6P7JdYpUU3pEcfz", "proofs": [], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAoAAAAAA1pc3N1ZXJBc3NldElkAQAAACAE0o0lnLWauKznExGoG0uqS2tMXOK8Yshm9+5Jecmv/QAAAAARaW52ZXN0bWVudEFzc2V0SWQBAAAABBOr2TMAAAAAGGludmVzdG1lbnRBc3NldElkSXNXYXZlcwYAAAAADm93bmVyUHVibGljS2V5AQAAACAKrOLytyg436L/itVAvfWO1TswqoWR2gLBb4oFPYsiYQAAAAAMb3duZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAA5vd25lclB1YmxpY0tleQAAAAASb3duZXJBZGRyZXNzU3RyaW5nAgAAACMzTjRYRm9ISFFNQVRKOUZnWlViNkxUdmRjRDIzcU5VaVY0TQAAAAATYXNzZXREZWNpbWFsc09mZnNldAAAAAAAAAAAAQAAAAAQc3VtQWNjb3VudEFzc2V0cwAAAAAAAAAAlgAAAAAMaXNzdWVyQXNzZXRzAAAAAAAAAAAyAAAAAAlzdGFydFRpbWUAAAAAAF33R5AAAAAAEWluY3JlYXNlUHJpY2VUaW1lAAAAAABeB0PAAAAAAAdlbmRUaW1lAAAAAABeB0PAAAAAAAVwcmljZQAAAAAAAJiWgAAAAAALcHJpY2VTZWNvbmQAAAAAAACYloAAAAAADXNvZn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U2lnbmVkBQAAAAtwS2V5MlNpZ25lZAUAAAALcEtleTNTaWduZWQFAAAAC3BLZXk0U2lnbmVkBQAAAAtwS2V5NVNpZ25lZAAAAAAAAAAAAwfIiMdW", "chainId": 84, "height": 815408, "spentComplexity": 0 } View: original | compacted Prev: 6oudP59rn4cFwKixB2Eehff4eqBKxixFknKFVNhoXmaC Next: 655ACrgjKXUfWh8RfeLYK1dsAFa1kdHvXRr9kts6QxTr Diff:
OldNewDifferences
6363
6464 let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg")
6565
66-let ver = "3.0.0-testnet"
66+let ver = "3.0.1-testnet"
6767
6868 let validState = 1000
6969
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let issuerAssetId = base58'KpqvTUB4jxdaecGwEHybYJaZjzFBHS4b8GfZVLZYtEg'
55
66 let investmentAssetId = base58'WAVES'
77
88 let investmentAssetIdIsWaves = true
99
1010 let ownerPublicKey = base58'ifymJwDoo2rGp68UjFsLK8LvW5X4frvuQCYxzd7UAB2'
1111
1212 let ownerAddress = addressFromPublicKey(ownerPublicKey)
1313
1414 let ownerAddressString = "3N4XFoHHQMATJ9FgZUb6LTvdcD23qNUiV4M"
1515
1616 let assetDecimalsOffset = 1
1717
1818 let sumAccountAssets = 150
1919
2020 let issuerAssets = 50
2121
2222 let startTime = 1576486800
2323
2424 let increasePriceTime = 1577534400
2525
2626 let endTime = 1577534400
2727
2828 let price = 10000000
2929
3030 let priceSecond = 10000000
3131
3232 let softCapAmount = 1000000000
3333
3434 let hardCapAmount = 1500000000
3535
3636 let minPayment = 10000000
3737
3838 let keySumAmountPrefix = "sumAmount "
3939
4040 let keySumPaidAmountPrefix = "paidAmount "
4141
4242 let keySumAssetsPrefix = "sumAssets "
4343
4444 let keyAllowAccountPrefix = "allow "
4545
4646 let keyDistAssets = "assets"
4747
4848 let keyCollectedAmount = "amount"
4949
5050 let keyIssuer = "issuer"
5151
5252 let whitelistAddress = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
5353
5454 let dAppWhitelistAddress = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR')
5555
5656 let pAddress1 = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1")
5757
5858 let pAddress2 = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ")
5959
6060 let pAddress3 = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe")
6161
6262 let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC")
6363
6464 let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg")
6565
66-let ver = "3.0.0-testnet"
66+let ver = "3.0.1-testnet"
6767
6868 let validState = 1000
6969
7070 func getCurrentTime () = {
7171 let blockInfo = value(blockInfoByHeight(height))
7272 (blockInfo.timestamp / 1000)
7373 }
7474
7575
7676 func getInvestmentAssetIdForTransfer (isWaves,assetId) = if ((isWaves == false))
7777 then assetId
7878 else unit
7979
8080
8181 func getCurrentPrice () = if ((increasePriceTime > getCurrentTime()))
8282 then price
8383 else priceSecond
8484
8585
8686 func getAmount (key) = match getInteger(this, key) {
8787 case a: Int =>
8888 a
8989 case _ =>
9090 0
9191 }
9292
9393
9494 func hasStarted () = (startTime > getCurrentTime())
9595
9696
9797 func hasEnded (sumAmount) = if ((getCurrentTime() > endTime))
9898 then true
9999 else (sumAmount >= hardCapAmount)
100100
101101
102102 func getPayment (i) = match i.payment {
103103 case p: AttachedPayment =>
104104 let isPaymentOk = match p.assetId {
105105 case assetId: ByteVector =>
106106 if (!(investmentAssetIdIsWaves))
107107 then (assetId == investmentAssetId)
108108 else false
109109 case _ =>
110110 (investmentAssetIdIsWaves == true)
111111 }
112112 if (isPaymentOk)
113113 then if ((assetDecimalsOffset == 1))
114114 then if (((p.amount % price) == 0))
115115 then p.amount
116116 else throw("payment amount must be a multiple of token price")
117117 else p.amount
118118 else throw("Invalid asset ID of investment")
119119 case _ =>
120120 throw("Payment must be attached")
121121 }
122122
123123
124124 @Callable(i)
125125 func deposit () = {
126126 let currentPrice = getCurrentPrice()
127127 let accountAmount = getAmount(keyCollectedAmount)
128128 if (hasStarted())
129129 then throw(((("The Tokensale works between " + toString(startTime)) + " and ") + toString(endTime)))
130130 else if (hasEnded(accountAmount))
131131 then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.")
132132 else {
133133 let payment = getPayment(i)
134134 let currentKey = toBase58String(i.caller.bytes)
135135 let isAccountAllow = match getInteger(whitelistAddress, currentKey) {
136136 case a: Int =>
137137 a
138138 case _ =>
139139 -255
140140 }
141141 if ((validState > isAccountAllow))
142142 then throw("Your account has no right to send funds.")
143143 else {
144144 let accountAssets = match getInteger(this, keyDistAssets) {
145145 case a: Int =>
146146 a
147147 case _ =>
148148 sumAccountAssets
149149 }
150150 let tokensCalc = ((payment * assetDecimalsOffset) / currentPrice)
151151 let minPaymentInAssets = ((minPayment * assetDecimalsOffset) / currentPrice)
152152 if (if (if ((0 > (accountAssets - tokensCalc)))
153153 then true
154154 else (minPaymentInAssets > tokensCalc))
155155 then true
156156 else if ((tokensCalc != accountAssets))
157157 then (tokensCalc > (accountAssets - minPaymentInAssets))
158158 else false)
159159 then throw("Incorrect payment amount.")
160160 else {
161161 let newInvestorAmount = (getAmount((keySumAmountPrefix + currentKey)) + payment)
162162 let newInvestorAssets = (getAmount((keySumAssetsPrefix + currentKey)) + tokensCalc)
163163 let newAccountAssets = (accountAssets - tokensCalc)
164164 let newAccountAmount = (accountAmount + payment)
165165 WriteSet([DataEntry((keySumAmountPrefix + currentKey), newInvestorAmount), DataEntry((keySumAssetsPrefix + currentKey), newInvestorAssets), DataEntry(keyDistAssets, newAccountAssets), DataEntry(keyCollectedAmount, newAccountAmount)])
166166 }
167167 }
168168 }
169169 }
170170
171171
172172
173173 @Callable(i)
174174 func withdrawal () = {
175175 let dAppStatus = match getInteger(dAppWhitelistAddress, toString(this)) {
176176 case a: Int =>
177177 a
178178 case _ =>
179179 0
180180 }
181181 if ((dAppStatus == 0))
182182 then throw("Withdrawals are not available until the issuer passes verification")
183183 else {
184184 let currentKey = toBase58String(i.caller.bytes)
185185 let currentInvestorAssets = getAmount((keySumAssetsPrefix + currentKey))
186186 let currentInvestorAmount = getAmount((keySumAmountPrefix + currentKey))
187187 let accountAmount = getAmount(keyCollectedAmount)
188188 let accountAssets = getAmount(keyDistAssets)
189189 let investmentAssetIdForTransfer = getInvestmentAssetIdForTransfer(investmentAssetIdIsWaves, investmentAssetId)
190190 if (!(hasEnded(accountAmount)))
191191 then throw(("The Tokensale ends " + toString(endTime)))
192192 else if (if (if ((currentKey == ownerAddressString))
193193 then (accountAmount >= softCapAmount)
194194 else false)
195195 then (dAppStatus == 1)
196196 else false)
197197 then {
198198 let currentIssuerPaidAssets = getAmount(keyIssuer)
199199 if ((currentIssuerPaidAssets == 0))
200200 then ScriptResult(WriteSet([DataEntry(keyIssuer, (accountAssets + issuerAssets))]), TransferSet([ScriptTransfer(ownerAddress, (accountAssets + issuerAssets), issuerAssetId), ScriptTransfer(ownerAddress, accountAmount, investmentAssetIdForTransfer)]))
201201 else throw("The issuer has already taken its share!")
202202 }
203203 else if ((currentInvestorAmount == 0))
204204 then throw("Don't have money")
205205 else if (if ((accountAmount >= softCapAmount))
206206 then (dAppStatus == 1)
207207 else false)
208208 then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorAssets, issuerAssetId)]))
209209 else ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorAmount, investmentAssetIdForTransfer)]))
210210 }
211211 }
212212
213213
214214 @Verifier(tx)
215215 func verify () = match tx {
216216 case tx: SetAssetScriptTransaction|SetScriptTransaction =>
217217 let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id))))
218218 then 1
219219 else 0
220220 let pKey2Signed = if (isDefined(getInteger(extract(pAddress2), toBase58String(tx.id))))
221221 then 1
222222 else 0
223223 let pKey3Signed = if (isDefined(getInteger(extract(pAddress3), toBase58String(tx.id))))
224224 then 1
225225 else 0
226226 let pKey4Signed = if (isDefined(getInteger(extract(pAddress4), toBase58String(tx.id))))
227227 then 1
228228 else 0
229229 let pKey5Signed = if (isDefined(getInteger(extract(pAddress5), toBase58String(tx.id))))
230230 then 1
231231 else 0
232232 (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3)
233233 case _ =>
234234 false
235235 }
236236

github/deemru/w8io/026f985 
49.08 ms