tx · 7ryEktXat5mAP8H7YJheX6sh6VrtL91t4EXndR6QccuN

3N3doB1u7XoVQVeid54uD5vFvAewzceBZtM:  -0.01000000 Waves

2019.09.23 15:28 [688993] smart account 3N3doB1u7XoVQVeid54uD5vFvAewzceBZtM > SELF 0.00000000 Waves

{ "type": 13, "id": "7ryEktXat5mAP8H7YJheX6sh6VrtL91t4EXndR6QccuN", "fee": 1000000, "feeAssetId": null, "timestamp": 1569241783072, "version": 1, "sender": "3N3doB1u7XoVQVeid54uD5vFvAewzceBZtM", "senderPublicKey": "DzaSdp5n2zwpHWhHVugdQfNMHc14989nwNzVXAUdHfm7", "proofs": [ "3G3VgXG8KtC5kETqna7gwhaSmEPRz9NNJ4NgLE33K8sp43cTZke1GTwWiCwhiuSZgJFeVegcY7ScvVdL69LyQC11" ], "script": "base64:AAIDAAAAAAAAAAAAAAAiAAAAAA1pc3N1ZXJBc3NldElkAQAAACAECeumu4U3p8H0yVUQPM09s2vTgu5bhWX6kgrSpKilSgAAAAARaW52ZXN0bWVudEFzc2V0SWQBAAAABBOr2TMAAAAAGGludmVzdG1lbnRBc3NldElkSXNXYXZlcwYAAAAADm93bmVyUHVibGljS2V5AQAAACBzYw7Acczc2g/G6GDH/Axl8DDJiJSFi5GXZdqCxbvgKgAAAAAMb3duZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAA5vd25lclB1YmxpY0tleQAAAAASb3duZXJBZGRyZXNzU3RyaW5nAgAAACMzTXRya01LcllMUVJiZE1mdm83R2F3aWhBNXZha0RLS1hnVAAAAAAQd2hpdGVsaXN0QWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVLLimz67CUQJNoVouJYmvTIXbUaFQRQgNQAAAAAUZEFwcFdoaXRlbGlzdEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVR+ZQJfWyfFbW//7FjY3Cz3zzwo/8TmrxYAAAAAC2Fzc2V0RGlnaXRzAA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gkAAGQAAAACCQAAZAAAAAIJAABkAAAAAgUAAAALcEtleTFTaWduZWQFAAAAC3BLZXkyU2lnbmVkBQAAAAtwS2V5M1NpZ25lZAUAAAALcEtleTRTaWduZWQFAAAAC3BLZXk1U2lnbmVkAAAAAAAAAAADB52NTsU=", "chainId": 84, "height": 688993, "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'GmQTtBUYsyP2CFK8Hs5qKqqroxHEYGuAwwqNuEdedaR'
5+
6+let investmentAssetId = base58'WAVES'
7+
8+let investmentAssetIdIsWaves = true
9+
10+let ownerPublicKey = base58'8mRVZ8563PkrBccea1bzYWFb2HWToVDWG7hTMuCtVvB3'
11+
12+let ownerAddress = addressFromPublicKey(ownerPublicKey)
13+
14+let ownerAddressString = "3MtrkMKrYLQRbdMfvo7GawihA5vakDKKXgT"
15+
16+let whitelistAddress = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
17+
18+let dAppWhitelistAddress = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR')
19+
20+let assetDigits = 1000000
21+
22+let sumAccountAssets = 110000000
23+
24+let issuerAssets = 50000000
25+
26+let startBlock = 688990
27+
28+let increasePriceBlock = 691150
29+
30+let endBlock = 691150
31+
32+let price = 10000000
33+
34+let priceSecond = 10000000
35+
36+let softCapAmount = 1000000000
37+
38+let hardCapAmount = 1100000000
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("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1")
57+
58+let pAddress2 = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ")
59+
60+let pAddress3 = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe")
61+
62+let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC")
63+
64+let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg")
65+
66+let validState = 1000
67+
68+let ver = "2.0.0-testnet"
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 != accountAssets))
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/026f985 
31.22 ms