tx · 3YVrBpMdeue8LMRXdrhZwr3vW45Q3Siw9ihamSgkfWw6 3Mu7VYYXCdKzYgHbTRTiR2GcmRjdKwpcXtx: -0.01400000 Waves 2019.11.15 14:46 [766153] smart account 3Mu7VYYXCdKzYgHbTRTiR2GcmRjdKwpcXtx > SELF 0.00000000 Waves
{ "type": 13, "id": "3YVrBpMdeue8LMRXdrhZwr3vW45Q3Siw9ihamSgkfWw6", "fee": 1400000, "feeAssetId": null, "timestamp": 1573818311080, "version": 1, "sender": "3Mu7VYYXCdKzYgHbTRTiR2GcmRjdKwpcXtx", "senderPublicKey": "7hst8L8bJqbcGbPC9DbHZ5E83dQ3LXayYttNsUbgZt7r", "proofs": [ "DD7rfKZJYPc2ExmJrxSE8nNfnLkH7cWwQoA9HWayEqFwgD438HkDGciUvZ9BP7LhJ2Lhcj22gZCjSeQuLrxYMA6" ], "script": "base64:AAIDAAAAAAAAAA0IARIECgICARIDCgEIAAAAMgAAAAAFV0FWRVMAAAAAAAX14QAAAAAAA1VTRAAAAAAAAAAAZAAAAAAUcm9vdEFjY291bnRQdWJsaWNLZXkBAAAAIKtxg1qvacBtqcfHnm9nzu1j4fM2f8KAlLVKano9cMMVAAAAAA5saWdhQ29tbWlzc2lvbgAAAAAAAAAABgAAAAAVdG90YWxBc3NldHNQZXJPdXRjb21lAAAAAAAAACcQAAAAABpwcmVzYWxlTWF4QXNzZXRzUGVyT3V0Y29tZQAAAAAAAAALuAAAAAAPZXZlbnRDdXJyZW5jeUlkAQAAACCzq+2OuNxhJLJhVt602yIUBLswcJEXYkm4f70ULNMzNwAAAAAMcHJlc2FsZVByaWNlAAAAAAAAAAAyAAAAAAlsaXZlUHJpY2UAAAAAAAAAAGQAAAAADWxpdmVQcmljZVN0ZXAAAAAAAAAAABQAAAAAE2xpdmVQcmljZVN0ZXBQZXJpb2QAAAAAAAAAA+gAAAAACXN0YXR1c0tleQIAAAAGc3RhdHVzAAAAAAtwYXVzZVN0YXR1cwIAAAAFcGF1c2UA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ainId": 84, "height": 766153, "spentComplexity": 0 } View: original | compacted Prev: Emfa2tfzvpTE3ndbcsTJBJ8qo5rcHgsWwj3v7NJkLzqj Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let buyOutcomeTokenTxFee = 500000 | |
5 | - | ||
6 | 4 | let WAVES = 100000000 | |
7 | 5 | ||
8 | 6 | let USD = 100 | |
9 | 7 | ||
10 | 8 | let rootAccountPublicKey = base58'CYF7FumpbZzyHMFuFQRQfo9XC9veJemd3XuBkusRCcAg' | |
11 | 9 | ||
12 | - | let ligaCommission = | |
10 | + | let ligaCommission = 6 | |
13 | 11 | ||
14 | 12 | let totalAssetsPerOutcome = 10000 | |
15 | 13 | ||
17 | 15 | ||
18 | 16 | let eventCurrencyId = base58'D6N2rAqWN6ZCWnCeNFWLGqqjS6nJLeK4m19XiuhdDenr' | |
19 | 17 | ||
20 | - | let presalePrice = | |
18 | + | let presalePrice = 50 | |
21 | 19 | ||
22 | - | let livePrice = | |
20 | + | let livePrice = 100 | |
23 | 21 | ||
24 | - | let livePriceStep = | |
22 | + | let livePriceStep = 20 | |
25 | 23 | ||
26 | - | let livePriceStepPeriod = | |
24 | + | let livePriceStepPeriod = 1000 | |
27 | 25 | ||
28 | 26 | let statusKey = "status" | |
29 | 27 | ||
144 | 142 | } | |
145 | 143 | ||
146 | 144 | ||
147 | - | func getRateWAVESInUSD () = 50 | |
148 | - | ||
149 | - | ||
150 | - | func calculateFeeInEventPaymentAsset () = ((buyOutcomeTokenTxFee * getRateWAVESInUSD()) / USD) | |
151 | - | ||
152 | - | ||
153 | 145 | func sum (n) = { | |
154 | 146 | let x = (n / livePriceStepPeriod) | |
155 | 147 | let fullSum = arithmeticSeries(livePrice, livePriceStep, x) | |
178 | 170 | func amountToPay (alreadySold,amountToBuy) = (sum((alreadySold + amountToBuy)) - sum(alreadySold)) | |
179 | 171 | ||
180 | 172 | ||
181 | - | func presaleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance | |
173 | + | func presaleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance) = { | |
182 | 174 | let outcomeAmountAlreadySold = (totalAssetsPerOutcome - outcomeAmountEventBalance) | |
183 | 175 | let outcomeAmountAvailableInPresalePeriod = (presaleMaxAssetsPerOutcome - outcomeAmountAlreadySold) | |
184 | - | let outcomeRequiredPaymentAmount = ( | |
176 | + | let outcomeRequiredPaymentAmount = (presalePrice * outcomeAmountToBuy) | |
185 | 177 | if ((outcomeAmountToBuy > outcomeAmountAvailableInPresalePeriod)) | |
186 | 178 | then throwNotEnoughOutcomeAssetsInPresaleStockError(outcomeAmountToBuy, outcomeAmountAvailableInPresalePeriod) | |
187 | 179 | else if ((paymentAmount != outcomeRequiredPaymentAmount)) | |
191 | 183 | let currentPresaleOutcomeAmountSales = getPresaleOutcomeAmountSales(outcomeAssetId) | |
192 | 184 | let newPresaleOutcomeAmountSales = (currentPresaleOutcomeAmountSales + outcomeAmountToBuy) | |
193 | 185 | let writeSet = WriteSet([DataEntry(presaleOutcomeAmountSalesKey, newPresaleOutcomeAmountSales)]) | |
194 | - | let transferSet = TransferSet([ScriptTransfer(customerAddress, | |
186 | + | let transferSet = TransferSet([ScriptTransfer(customerAddress, outcomeAmountToBuy, outcomeAssetId)]) | |
195 | 187 | ScriptResult(writeSet, transferSet) | |
196 | 188 | } | |
197 | 189 | } | |
198 | 190 | ||
199 | 191 | ||
200 | - | func saleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance | |
192 | + | func saleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance) = { | |
201 | 193 | let presaleOutcomeAmountSales = getPresaleOutcomeAmountSales(outcomeAssetId) | |
202 | 194 | let outcomeAmountAlreadySold = ((totalAssetsPerOutcome - presaleOutcomeAmountSales) - outcomeAmountEventBalance) | |
203 | - | let outcomeRequiredPaymentAmount = | |
195 | + | let outcomeRequiredPaymentAmount = amountToPay(outcomeAmountAlreadySold, outcomeAmountToBuy) | |
204 | 196 | if ((outcomeAmountToBuy > outcomeAmountEventBalance)) | |
205 | 197 | then throwNotEnoughOutcomeAssetsInSaleStockError(outcomeAmountToBuy, outcomeAmountEventBalance) | |
206 | 198 | else if ((paymentAmount != outcomeRequiredPaymentAmount)) | |
207 | 199 | then throwInsufficientPaymentError(paymentAmount, outcomeRequiredPaymentAmount) | |
208 | - | else TransferSet([ScriptTransfer(customerAddress, | |
200 | + | else TransferSet([ScriptTransfer(customerAddress, outcomeAmountToBuy, outcomeAssetId)]) | |
209 | 201 | } | |
210 | 202 | ||
211 | 203 | ||
212 | 204 | @Callable(i) | |
213 | 205 | func buyOutcomeToken (outcomeAssetId,outcomeAmountToBuy) = { | |
214 | - | let fee = calculateFeeInEventPaymentAsset() | |
215 | 206 | let customerAddress = i.caller | |
216 | 207 | let outcomeAmountEventBalance = assetBalance(this, outcomeAssetId) | |
217 | 208 | let status = getStatus() | |
231 | 222 | else if (!(isSalesAvailable)) | |
232 | 223 | then throwSalesIsNotAvailableInStatusError(status) | |
233 | 224 | else if (isPresaleStatus) | |
234 | - | then presaleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance | |
225 | + | then presaleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance) | |
235 | 226 | else if (isLiveStatus) | |
236 | - | then saleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance | |
227 | + | then saleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance) | |
237 | 228 | else throwUndefinedError() | |
238 | 229 | } | |
239 | 230 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let buyOutcomeTokenTxFee = 500000 | |
5 | - | ||
6 | 4 | let WAVES = 100000000 | |
7 | 5 | ||
8 | 6 | let USD = 100 | |
9 | 7 | ||
10 | 8 | let rootAccountPublicKey = base58'CYF7FumpbZzyHMFuFQRQfo9XC9veJemd3XuBkusRCcAg' | |
11 | 9 | ||
12 | - | let ligaCommission = | |
10 | + | let ligaCommission = 6 | |
13 | 11 | ||
14 | 12 | let totalAssetsPerOutcome = 10000 | |
15 | 13 | ||
16 | 14 | let presaleMaxAssetsPerOutcome = 3000 | |
17 | 15 | ||
18 | 16 | let eventCurrencyId = base58'D6N2rAqWN6ZCWnCeNFWLGqqjS6nJLeK4m19XiuhdDenr' | |
19 | 17 | ||
20 | - | let presalePrice = | |
18 | + | let presalePrice = 50 | |
21 | 19 | ||
22 | - | let livePrice = | |
20 | + | let livePrice = 100 | |
23 | 21 | ||
24 | - | let livePriceStep = | |
22 | + | let livePriceStep = 20 | |
25 | 23 | ||
26 | - | let livePriceStepPeriod = | |
24 | + | let livePriceStepPeriod = 1000 | |
27 | 25 | ||
28 | 26 | let statusKey = "status" | |
29 | 27 | ||
30 | 28 | let pauseStatus = "pause" | |
31 | 29 | ||
32 | 30 | let presaleStatus = "presale" | |
33 | 31 | ||
34 | 32 | let liveStatus = "live" | |
35 | 33 | ||
36 | 34 | let completeStatus = "complete" | |
37 | 35 | ||
38 | 36 | let payoutStatus = "payout" | |
39 | 37 | ||
40 | 38 | func throwSalesIsNotAvailableInStatusError (status) = throw((("salesIsNotAvailableInStatusError" + ",") + status)) | |
41 | 39 | ||
42 | 40 | ||
43 | 41 | func throwNonexistentOutcomeAssetError (outcomeAssetId) = throw(("nonexistentOutcomeAssetError," + toBase58String(outcomeAssetId))) | |
44 | 42 | ||
45 | 43 | ||
46 | 44 | func throwNotEnoughOutcomeAssetsInPresaleStockError (amountToBuy,balance) = throw((((("notEnoughOutcomeAssetsInPresaleStockError" + ",") + toString(balance)) + ",") + toString(amountToBuy))) | |
47 | 45 | ||
48 | 46 | ||
49 | 47 | func throwNotEnoughOutcomeAssetsInSaleStockError (amountToBuy,balance) = throw((((("notEnoughOutcomeAssetsInSaleStockError" + ",") + toString(balance)) + ",") + toString(amountToBuy))) | |
50 | 48 | ||
51 | 49 | ||
52 | 50 | func throwUnsupportedEventPaymentAssetError (paymentCurrency) = throw((((("unsupportedEventPaymentAssetError" + ",") + toBase58String(eventCurrencyId)) + ",") + toBase58String(paymentCurrency))) | |
53 | 51 | ||
54 | 52 | ||
55 | 53 | func throwInsufficientPaymentError (receivedPaymentAmount,expectedPaymentAmount) = throw((((("insufficientPaymentError" + ",") + toString(expectedPaymentAmount)) + ",") + toString(receivedPaymentAmount))) | |
56 | 54 | ||
57 | 55 | ||
58 | 56 | func throwUnsupportedEventStatusError () = throw("unsupportedEventStatusError") | |
59 | 57 | ||
60 | 58 | ||
61 | 59 | func throwIsNotRootCallerError () = throw("isNotRootCallerError") | |
62 | 60 | ||
63 | 61 | ||
64 | 62 | let noPaymentError = "noPaymentError" | |
65 | 63 | ||
66 | 64 | func throwUndefinedError () = throw("undefinedError") | |
67 | 65 | ||
68 | 66 | ||
69 | 67 | func getIntOr (key,default) = if (isDefined(getInteger(this, key))) | |
70 | 68 | then getIntegerValue(this, key) | |
71 | 69 | else default | |
72 | 70 | ||
73 | 71 | ||
74 | 72 | func getStringOr (key,default) = if (isDefined(getInteger(this, key))) | |
75 | 73 | then getStringValue(this, key) | |
76 | 74 | else default | |
77 | 75 | ||
78 | 76 | ||
79 | 77 | func getInt (key) = getIntegerValue(this, key) | |
80 | 78 | ||
81 | 79 | ||
82 | 80 | func setInt (key,value) = DataEntry(key, value) | |
83 | 81 | ||
84 | 82 | ||
85 | 83 | func getStr (key) = getStringValue(this, key) | |
86 | 84 | ||
87 | 85 | ||
88 | 86 | func setStr (key,value) = DataEntry(key, value) | |
89 | 87 | ||
90 | 88 | ||
91 | 89 | func setBytes (key,value) = DataEntry(key, value) | |
92 | 90 | ||
93 | 91 | ||
94 | 92 | func getBytes (key) = getBinaryValue(this, key) | |
95 | 93 | ||
96 | 94 | ||
97 | 95 | func isSupportedStatus (status) = if (if (if (if ((status == pauseStatus)) | |
98 | 96 | then true | |
99 | 97 | else (status == presaleStatus)) | |
100 | 98 | then true | |
101 | 99 | else (status == liveStatus)) | |
102 | 100 | then true | |
103 | 101 | else (status == completeStatus)) | |
104 | 102 | then true | |
105 | 103 | else (status == payoutStatus) | |
106 | 104 | ||
107 | 105 | ||
108 | 106 | func getStatus () = getStr(statusKey) | |
109 | 107 | ||
110 | 108 | ||
111 | 109 | func setStatus (status) = setStr(statusKey, status) | |
112 | 110 | ||
113 | 111 | ||
114 | 112 | func getPayment (i) = valueOrErrorMessage(i.payment, noPaymentError) | |
115 | 113 | ||
116 | 114 | ||
117 | 115 | func getPaymentAssetId (payment) = match payment.assetId { | |
118 | 116 | case assetId: ByteVector => | |
119 | 117 | assetId | |
120 | 118 | case assetId: Unit => | |
121 | 119 | fromBase58String("WAVES") | |
122 | 120 | case _ => | |
123 | 121 | throw() | |
124 | 122 | } | |
125 | 123 | ||
126 | 124 | ||
127 | 125 | func getIntegerFromAccount (accountAddress,key) = match getInteger(accountAddress, key) { | |
128 | 126 | case i: Int => | |
129 | 127 | i | |
130 | 128 | case _ => | |
131 | 129 | 0 | |
132 | 130 | } | |
133 | 131 | ||
134 | 132 | ||
135 | 133 | func arithmeticSeries (a,d,n) = ((n * ((2 * a) + ((n - 1) * d))) / 2) | |
136 | 134 | ||
137 | 135 | ||
138 | 136 | func getPresaleOutcomeAmountSalesKey (outcomeAssetId) = ("presaleOutcomeAmountSales_" + toBase58String(outcomeAssetId)) | |
139 | 137 | ||
140 | 138 | ||
141 | 139 | func getPresaleOutcomeAmountSales (outcomeAssetId) = { | |
142 | 140 | let presaleOutcomeAmountSalesKey = getPresaleOutcomeAmountSalesKey(outcomeAssetId) | |
143 | 141 | getIntegerFromAccount(this, presaleOutcomeAmountSalesKey) | |
144 | 142 | } | |
145 | 143 | ||
146 | 144 | ||
147 | - | func getRateWAVESInUSD () = 50 | |
148 | - | ||
149 | - | ||
150 | - | func calculateFeeInEventPaymentAsset () = ((buyOutcomeTokenTxFee * getRateWAVESInUSD()) / USD) | |
151 | - | ||
152 | - | ||
153 | 145 | func sum (n) = { | |
154 | 146 | let x = (n / livePriceStepPeriod) | |
155 | 147 | let fullSum = arithmeticSeries(livePrice, livePriceStep, x) | |
156 | 148 | ((fullSum * livePriceStepPeriod) + ((arithmeticSeries(livePrice, livePriceStep, (x + 1)) - fullSum) * (n % livePriceStepPeriod))) | |
157 | 149 | } | |
158 | 150 | ||
159 | 151 | ||
160 | 152 | func isRootCaller (i) = { | |
161 | 153 | let callerAccountPubKey = toBase58String(i.callerPublicKey) | |
162 | 154 | let rootAccountPubKey = toBase58String(rootAccountPublicKey) | |
163 | 155 | if ((callerAccountPubKey == rootAccountPubKey)) | |
164 | 156 | then true | |
165 | 157 | else false | |
166 | 158 | } | |
167 | 159 | ||
168 | 160 | ||
169 | 161 | func isAdminCaller (i) = { | |
170 | 162 | let callerAccountPubKey = toBase58String(i.callerPublicKey) | |
171 | 163 | let rootAccountPubKey = toBase58String(rootAccountPublicKey) | |
172 | 164 | if ((callerAccountPubKey == rootAccountPubKey)) | |
173 | 165 | then true | |
174 | 166 | else false | |
175 | 167 | } | |
176 | 168 | ||
177 | 169 | ||
178 | 170 | func amountToPay (alreadySold,amountToBuy) = (sum((alreadySold + amountToBuy)) - sum(alreadySold)) | |
179 | 171 | ||
180 | 172 | ||
181 | - | func presaleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance | |
173 | + | func presaleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance) = { | |
182 | 174 | let outcomeAmountAlreadySold = (totalAssetsPerOutcome - outcomeAmountEventBalance) | |
183 | 175 | let outcomeAmountAvailableInPresalePeriod = (presaleMaxAssetsPerOutcome - outcomeAmountAlreadySold) | |
184 | - | let outcomeRequiredPaymentAmount = ( | |
176 | + | let outcomeRequiredPaymentAmount = (presalePrice * outcomeAmountToBuy) | |
185 | 177 | if ((outcomeAmountToBuy > outcomeAmountAvailableInPresalePeriod)) | |
186 | 178 | then throwNotEnoughOutcomeAssetsInPresaleStockError(outcomeAmountToBuy, outcomeAmountAvailableInPresalePeriod) | |
187 | 179 | else if ((paymentAmount != outcomeRequiredPaymentAmount)) | |
188 | 180 | then throwInsufficientPaymentError(paymentAmount, outcomeRequiredPaymentAmount) | |
189 | 181 | else { | |
190 | 182 | let presaleOutcomeAmountSalesKey = getPresaleOutcomeAmountSalesKey(outcomeAssetId) | |
191 | 183 | let currentPresaleOutcomeAmountSales = getPresaleOutcomeAmountSales(outcomeAssetId) | |
192 | 184 | let newPresaleOutcomeAmountSales = (currentPresaleOutcomeAmountSales + outcomeAmountToBuy) | |
193 | 185 | let writeSet = WriteSet([DataEntry(presaleOutcomeAmountSalesKey, newPresaleOutcomeAmountSales)]) | |
194 | - | let transferSet = TransferSet([ScriptTransfer(customerAddress, | |
186 | + | let transferSet = TransferSet([ScriptTransfer(customerAddress, outcomeAmountToBuy, outcomeAssetId)]) | |
195 | 187 | ScriptResult(writeSet, transferSet) | |
196 | 188 | } | |
197 | 189 | } | |
198 | 190 | ||
199 | 191 | ||
200 | - | func saleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance | |
192 | + | func saleStrategy (customerAddress,outcomeAssetId,paymentAmount,outcomeAmountToBuy,outcomeAmountEventBalance) = { | |
201 | 193 | let presaleOutcomeAmountSales = getPresaleOutcomeAmountSales(outcomeAssetId) | |
202 | 194 | let outcomeAmountAlreadySold = ((totalAssetsPerOutcome - presaleOutcomeAmountSales) - outcomeAmountEventBalance) | |
203 | - | let outcomeRequiredPaymentAmount = | |
195 | + | let outcomeRequiredPaymentAmount = amountToPay(outcomeAmountAlreadySold, outcomeAmountToBuy) | |
204 | 196 | if ((outcomeAmountToBuy > outcomeAmountEventBalance)) | |
205 | 197 | then throwNotEnoughOutcomeAssetsInSaleStockError(outcomeAmountToBuy, outcomeAmountEventBalance) | |
206 | 198 | else if ((paymentAmount != outcomeRequiredPaymentAmount)) | |
207 | 199 | then throwInsufficientPaymentError(paymentAmount, outcomeRequiredPaymentAmount) | |
208 | - | else TransferSet([ScriptTransfer(customerAddress, | |
200 | + | else TransferSet([ScriptTransfer(customerAddress, outcomeAmountToBuy, outcomeAssetId)]) | |
209 | 201 | } | |
210 | 202 | ||
211 | 203 | ||
212 | 204 | @Callable(i) | |
213 | 205 | func buyOutcomeToken (outcomeAssetId,outcomeAmountToBuy) = { | |
214 | - | let fee = calculateFeeInEventPaymentAsset() | |
215 | 206 | let customerAddress = i.caller | |
216 | 207 | let outcomeAmountEventBalance = assetBalance(this, outcomeAssetId) | |
217 | 208 | let status = getStatus() | |
218 | 209 | let payment = getPayment(i) | |
219 | 210 | let paymentAmount = payment.amount | |
220 | 211 | let paymentAssetId = getPaymentAssetId(payment) | |
221 | 212 | let isNotSupportedPaymentAsset = (paymentAssetId != eventCurrencyId) | |
222 | 213 | let isPresaleStatus = (status == presaleStatus) | |
223 | 214 | let isLiveStatus = (status == liveStatus) | |
224 | 215 | let isSalesAvailable = if (isPresaleStatus) | |
225 | 216 | then true | |
226 | 217 | else isLiveStatus | |
227 | 218 | if ((outcomeAmountEventBalance == 0)) | |
228 | 219 | then throwNonexistentOutcomeAssetError(outcomeAssetId) | |
229 | 220 | else if (isNotSupportedPaymentAsset) | |
230 | 221 | then throwUnsupportedEventPaymentAssetError(paymentAssetId) | |
231 | 222 | else if (!(isSalesAvailable)) | |
232 | 223 | then throwSalesIsNotAvailableInStatusError(status) | |
233 | 224 | else if (isPresaleStatus) | |
234 | - | then presaleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance | |
225 | + | then presaleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance) | |
235 | 226 | else if (isLiveStatus) | |
236 | - | then saleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance | |
227 | + | then saleStrategy(customerAddress, outcomeAssetId, paymentAmount, outcomeAmountToBuy, outcomeAmountEventBalance) | |
237 | 228 | else throwUndefinedError() | |
238 | 229 | } | |
239 | 230 | ||
240 | 231 | ||
241 | 232 | ||
242 | 233 | @Callable(i) | |
243 | 234 | func changeStatus (newStatus) = if (!(isSupportedStatus(newStatus))) | |
244 | 235 | then throwUnsupportedEventStatusError() | |
245 | 236 | else if (!(isRootCaller(i))) | |
246 | 237 | then throwIsNotRootCallerError() | |
247 | 238 | else WriteSet([setStatus(newStatus)]) | |
248 | 239 | ||
249 | 240 |
github/deemru/w8io/026f985 40.06 ms ◑