tx · AjBfTNP4Ny4cL8u4bmP2CMstXDmrH5GTJ9W1sTiK1bUh

3Msg8mZncXCbri4XuZQq21DL2jdNyAvPqit:  -0.01000000 Waves

2019.09.01 12:37 [656711] smart account 3Msg8mZncXCbri4XuZQq21DL2jdNyAvPqit > SELF 0.00000000 Waves

{ "type": 13, "id": "AjBfTNP4Ny4cL8u4bmP2CMstXDmrH5GTJ9W1sTiK1bUh", "fee": 1000000, "feeAssetId": null, "timestamp": 1567330639619, "version": 1, "sender": "3Msg8mZncXCbri4XuZQq21DL2jdNyAvPqit", "senderPublicKey": "H4tLc2G7u9ynKi5VimCh1b3NScwbr7Lg98n9RxByCgS9", "proofs": [ "5dFjbdf3U4zmy3BPiQSdjAApWEc8MUdD4tw7x4pkEEARnHNYxKozUFwucJK8ccWCaXvTViLGLgfq8LrVB4XC7Vuu" ], "script": "base64:AAIDAAAAAAAAAAAAAAAfAAAAAA1pc3N1ZXJBc3NldElkAQAAACDZORBxffGrPdoDSp/Yc3auL25zj+PwQ4zrbrFtxtpICgAAAAARaW52ZXN0bWVudEFzc2V0SWQBAAAABBOr2TMAAAAAGGludmVzdG1lbnRBc3NldElkSXNXYXZlcwYAAAAADm93bmVyUHVibGljS2V5AQAAACASkl5JU9sN86AKIc90Ljxn6ito+1iOwlZ5Z5GumvP+UwAAAAAMb3duZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAA5vd25lclB1YmxpY0tleQAAAAASb3duZXJBZGRyZXNzU3RyaW5nAgAAACMzTXpYU3FhN3h2ejhxekJONnpoRG5nU29lSmpxaEtoUVBjRAAAAAARYWNjb3VudFRoYXRBbGxvd3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSy4ps+uwlECTaFaLiWJr0yF21GhUEUIDUAAAAAFWFjY291bnRUaGF0QWxsb3dEQXBwcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVH5lAl9bJ8Vtb//sWNjcLPfPPCj/xOavFgAAA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AAAAAAAACBQAAAAR0aGlzCAUAAAACdHgAAAAGc2VuZGVyB9aMXeA=", "chainId": 84, "height": 656711, "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'FcwwRUYiEDx2xhPThnHEbiYUQMrcJmEsUjFhPAZpvScZ'
5+
6+let investmentAssetId = base58'WAVES'
7+
8+let investmentAssetIdIsWaves = true
9+
10+let ownerPublicKey = base58'2FVnfvQcJuCZgB5CnoNuAjvndXmFykpUp5PEQuDSvnEv'
11+
12+let ownerAddress = addressFromPublicKey(ownerPublicKey)
13+
14+let ownerAddressString = "3MzXSqa7xvz8qzBN6zhDngSoeJjqhKhQPcD"
15+
16+let accountThatAllows = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ')
17+
18+let accountThatAllowDApps = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR')
19+
20+let assetDigits = 1000000
21+
22+let sumAccountAssets = 100000000
23+
24+let issuerAssets = 0
25+
26+let startBlock = 656708
27+
28+let increasePriceBlock = 656748
29+
30+let endBlock = 656748
31+
32+let price = 300000000
33+
34+let priceSecond = 300000000
35+
36+let softCapAmount = 5000000000
37+
38+let hardCapAmount = 30000000000
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 tx: SetAssetScriptTransaction =>
234+ (this == tx.sender)
235+ case _ =>
236+ false
237+}
238+

github/deemru/w8io/026f985 
19.59 ms