tx · HZEm4hpufyt6aRWgzQxs3KVdkzGrYCX3ss44d9YDQbBr

3PLUZNvgSuk8NRmi7b5Fo24fJUcvsaS8DkC:  -0.01000000 Waves

2019.09.04 15:04 [1691251] smart account 3PLUZNvgSuk8NRmi7b5Fo24fJUcvsaS8DkC > SELF 0.00000000 Waves

{ "type": 13, "id": "HZEm4hpufyt6aRWgzQxs3KVdkzGrYCX3ss44d9YDQbBr", "fee": 1000000, "feeAssetId": null, "timestamp": 1567598768823, "version": 1, "sender": "3PLUZNvgSuk8NRmi7b5Fo24fJUcvsaS8DkC", "senderPublicKey": "GXbkAeGpCGaWP6hDf3i5DYUEx3cb7TTiXWDfvvocGa9", "proofs": [ "2zvGHoPUkVVqo6wtJ8oyMnBuAbUz3Rps6Zn827hxwvnDX3FU84nT7sdyUh7G2ms2HbR9PqLwj4w8XGeHwAeYKaKr" ], "script": "base64:AAIDAAAAAAAAAAAAAAAiAAAAAA1pc3N1ZXJBc3NldElkAQAAACCRoQkFwHves/ZgyN9AVdwO9M5+T4K/v64ZZifcIVVA5wAAAAARaW52ZXN0bWVudEFzc2V0SWQBAAAABBOr2TMAAAAAGGludmVzdG1lbnRBc3NldElkSXNXYXZlcwYAAAAADm93bmVyUHVibGljS2V5AQAAACD8Yy5/KYB8BnuHZmCu8pcMJDF3EYsJgFYeCVpcVjjCHQAAAAAMb3duZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAA5vd25lclB1YmxpY0tleQAAAAASb3duZXJBZGRyZXNzU3RyaW5nAgAAACMzUE00NzhMNEs0clpnZ0VGZVY4NzNpVjRVc3RUeFlRRnc4egAAAAAQd2hpdGVsaXN0QWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVLLimz67CUQJNoVouJYmvTIXbUaFQRQgNQAAAAAUZEFwcFdoaXRlbGlzdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVR+ZQJfWyfFbW//7FjY3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AAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIJAABkAAAAAgUAAAALcEtleTFTaWduZWQFAAAAC3BLZXkyU2lnbmVkBQAAAAtwS2V5M1NpZ25lZAUAAAALcEtleTRTaWduZWQFAAAAC3BLZXk1U2lnbmVkAAAAAAAAAAADB0Z3BAs=", "chainId": 87, "height": 1691251, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let issuerAssetId = base58'AoUY7zbW9ECnfBN1VMP73otouGmVacY67RchZbQBXdfC'
5+
6+let investmentAssetId = base58'WAVES'
7+
8+let investmentAssetIdIsWaves = true
9+
10+let ownerPublicKey = base58'HzDTUuLoyPS9eKNdesTjUmZHVkXLNZ38guEPHx2vDAda'
11+
12+let ownerAddress = addressFromPublicKey(ownerPublicKey)
13+
14+let ownerAddressString = "3PM478L4K4rZggEFeV873iV4UstTxYQFw8z"
15+
16+let whitelistAddress = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
17+
18+let dAppWhitelistAddress = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR')
19+
20+let assetDigits = 1000000
21+
22+let sumAccountAssets = 1100000000
23+
24+let issuerAssets = 0
25+
26+let startBlock = 1690952
27+
28+let increasePriceBlock = 1734152
29+
30+let endBlock = 1734152
31+
32+let price = 100000000
33+
34+let priceSecond = 100000000
35+
36+let softCapAmount = 10000000000
37+
38+let hardCapAmount = 110000000000
39+
40+let minPayment = 100000000
41+
42+let keySumAmountPrefix = "sumAmount "
43+
44+let keySumPaidAmountPrefix = "paidAmount "
45+
46+let keySumAssetsPrefix = "sumAssets "
47+
48+let keyAllowAccountPrefix = "allow "
49+
50+let keyDistAssets = "assets"
51+
52+let keyCollectedAmount = "amount"
53+
54+let keyIssuer = "issuer"
55+
56+let pAddress1 = addressFromString("3PAxCJyfkGf2ZHiDKXwtGuJdcsF63577Eij")
57+
58+let pAddress2 = addressFromString("3PEhJsyTQBumkG4BHHZihss4NT1bQ4iYwxB")
59+
60+let pAddress3 = addressFromString("3PQnpFrCL3LSdRL7AYk5tZa5uYXYgVfw7Ao")
61+
62+let pAddress4 = addressFromString("3PJq18MXiNuWXHUBeRoaip2sRZSV8yjKiU8")
63+
64+let pAddress5 = addressFromString("3PCQhaLop9UeTMD94KLZJd947NBLKn3nGVK")
65+
66+let ver = "2.0.0"
67+
68+let validState = 1000
69+
70+func getInvestmentAssetIdForTransfer (isWaves,assetId) = if ((isWaves == false))
71+ then assetId
72+ else unit
73+
74+
75+@Callable(i)
76+func deposit () = {
77+ let currentPrice = if ((increasePriceBlock > height))
78+ then price
79+ else priceSecond
80+ let accountAmount = match getInteger(this, keyCollectedAmount) {
81+ case a: Int =>
82+ a
83+ case _ =>
84+ 0
85+ }
86+ if ((startBlock > height))
87+ then throw(((("The Tokensale works between " + toString(startBlock)) + " and ") + toString(endBlock)))
88+ else if (if ((height > endBlock))
89+ then true
90+ else (accountAmount >= hardCapAmount))
91+ then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.")
92+ else {
93+ let payment = match i.payment {
94+ case p: AttachedPayment =>
95+ let isPaymentOk = match p.assetId {
96+ case assetId: ByteVector =>
97+ if (!(investmentAssetIdIsWaves))
98+ then (assetId == investmentAssetId)
99+ else false
100+ case _ =>
101+ (investmentAssetIdIsWaves == true)
102+ }
103+ if (isPaymentOk)
104+ then p.amount
105+ else throw("Invalid asset ID of investment")
106+ case _ =>
107+ throw("Payment must be attached")
108+ }
109+ let currentKey = toBase58String(i.caller.bytes)
110+ let isAccountAllow = match getInteger(whitelistAddress, currentKey) {
111+ case a: Int =>
112+ a
113+ case _ =>
114+ -255
115+ }
116+ if ((validState > isAccountAllow))
117+ then throw("Your account has no right to send funds.")
118+ else {
119+ let accountAssets = match getInteger(this, keyDistAssets) {
120+ case a: Int =>
121+ a
122+ case _ =>
123+ sumAccountAssets
124+ }
125+ let tokensCalc = ((payment * assetDigits) / currentPrice)
126+ let minPaymentInAssets = ((minPayment * assetDigits) / currentPrice)
127+ if (if (if ((0 > (accountAssets - tokensCalc)))
128+ then true
129+ else (minPaymentInAssets > tokensCalc))
130+ then true
131+ else if ((tokensCalc != minPaymentInAssets))
132+ then (tokensCalc > (accountAssets - minPaymentInAssets))
133+ else false)
134+ then throw("Incorrect payment amount.")
135+ else {
136+ let currentAmount = match getInteger(this, (keySumAmountPrefix + currentKey)) {
137+ case a: Int =>
138+ a
139+ case _ =>
140+ 0
141+ }
142+ let newAmount = (currentAmount + payment)
143+ let currentAssets = match getInteger(this, (keySumAssetsPrefix + currentKey)) {
144+ case a: Int =>
145+ a
146+ case _ =>
147+ 0
148+ }
149+ let newAssets = (currentAssets + tokensCalc)
150+ let newAccountAssets = (accountAssets - tokensCalc)
151+ let newAccountAmount = (accountAmount + payment)
152+ WriteSet([DataEntry((keySumAmountPrefix + currentKey), newAmount), DataEntry((keySumAssetsPrefix + currentKey), newAssets), DataEntry(keyDistAssets, newAccountAssets), DataEntry(keyCollectedAmount, newAccountAmount)])
153+ }
154+ }
155+ }
156+ }
157+
158+
159+
160+@Callable(i)
161+func withdrawal () = {
162+ let isDAppAllow = match getInteger(dAppWhitelistAddress, toString(this)) {
163+ case a: Int =>
164+ a
165+ case _ =>
166+ 0
167+ }
168+ if ((isDAppAllow == 0))
169+ then throw("Withdrawals are not available until the issuer passes verification")
170+ else {
171+ let currentKey = toBase58String(i.caller.bytes)
172+ let currentAssets = match getInteger(this, (keySumAssetsPrefix + currentKey)) {
173+ case a: Int =>
174+ a
175+ case _ =>
176+ 0
177+ }
178+ let currentAmount = match getInteger(this, (keySumAmountPrefix + currentKey)) {
179+ case a: Int =>
180+ a
181+ case _ =>
182+ 0
183+ }
184+ let accountAmount = match getInteger(this, keyCollectedAmount) {
185+ case a: Int =>
186+ a
187+ case _ =>
188+ 0
189+ }
190+ let accountAssets = match getInteger(this, keyDistAssets) {
191+ case a: Int =>
192+ a
193+ case _ =>
194+ 0
195+ }
196+ let investmentAssetIdForTransfer = getInvestmentAssetIdForTransfer(investmentAssetIdIsWaves, investmentAssetId)
197+ if (!(if ((height > endBlock))
198+ then true
199+ else (accountAmount >= hardCapAmount)))
200+ then throw(("The Tokensale end on block " + toString(endBlock)))
201+ else if (if (if ((currentKey == ownerAddressString))
202+ then (accountAmount >= softCapAmount)
203+ else false)
204+ then (isDAppAllow == 1)
205+ else false)
206+ then {
207+ let currentIssuerPaidAssets = match getInteger(this, keyIssuer) {
208+ case a: Int =>
209+ a
210+ case _ =>
211+ 0
212+ }
213+ if ((currentIssuerPaidAssets == 0))
214+ then ScriptResult(WriteSet([DataEntry(keyIssuer, (accountAssets + issuerAssets))]), TransferSet([ScriptTransfer(ownerAddress, (accountAssets + issuerAssets), issuerAssetId), ScriptTransfer(ownerAddress, accountAmount, investmentAssetIdForTransfer)]))
215+ else throw("The issuer has already taken its share!")
216+ }
217+ else if ((currentAmount == 0))
218+ then throw("Don't have money")
219+ else if (if ((accountAmount >= softCapAmount))
220+ then (isDAppAllow == 1)
221+ else false)
222+ then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentAssets, issuerAssetId)]))
223+ else ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentAmount, investmentAssetIdForTransfer)]))
224+ }
225+ }
226+
227+
228+@Verifier(tx)
229+func verify () = match tx {
230+ case tx: SetAssetScriptTransaction|SetScriptTransaction =>
231+ let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id))))
232+ then 1
233+ else 0
234+ let pKey2Signed = if (isDefined(getInteger(extract(pAddress2), toBase58String(tx.id))))
235+ then 1
236+ else 0
237+ let pKey3Signed = if (isDefined(getInteger(extract(pAddress3), toBase58String(tx.id))))
238+ then 1
239+ else 0
240+ let pKey4Signed = if (isDefined(getInteger(extract(pAddress4), toBase58String(tx.id))))
241+ then 1
242+ else 0
243+ let pKey5Signed = if (isDefined(getInteger(extract(pAddress5), toBase58String(tx.id))))
244+ then 1
245+ else 0
246+ (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3)
247+ case _ =>
248+ false
249+}
250+

github/deemru/w8io/3ef1775 
35.40 ms