tx · HhAovsposfMehZQ7sh4Yv25AMGx2SjViioSD4nWfd26F

3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ:  -0.01000000 Waves

2019.08.29 18:15 [652674] smart account 3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
47.41 ms