tx · 4XdiVAKVicTo3q7yQLR6YfzsSXZfTobCYbymbsoLr1s1

3MqsiNaG42muSdN4QxfMQqiwCWccvH368W2:  -0.01400000 Waves

2021.07.07 14:08 [1603110] smart account 3MqsiNaG42muSdN4QxfMQqiwCWccvH368W2 > SELF 0.00000000 Waves

{ "type": 13, "id": "4XdiVAKVicTo3q7yQLR6YfzsSXZfTobCYbymbsoLr1s1", "fee": 1400000, "feeAssetId": null, "timestamp": 1625656122280, "version": 2, "chainId": 84, "sender": "3MqsiNaG42muSdN4QxfMQqiwCWccvH368W2", "senderPublicKey": "6wE73N4bMbmjbcyUmThmPeeibTebXptgAEaRipnobJLu", "proofs": [ "5YtSXBZP6rp5923QVkP7MryoY6k6a6KYo63aKeXQ4ZNkVZjwvRU5AG8My8CTRrWB1hF7aT1iL9dfWNbR87hGa9ZA", "4g86tUxSXsrUMbtSgsxEW2NLVYRzwFd959H9UBACQTxYgMj9kvhcHefMB5PUxTpj1jcyGaBhBsjDDud5nDUmw5Qv" ], "script": "base64:AAIEAAAAAAAAACoIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQEAAABGAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAC2tleUFzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAtrZXlBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAALa2V5QmFsYW5jZUECAAAAD0FfYXNzZXRfYmFsYW5jZQAAAAALa2V5QmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAAPa2V5QmFsYW5jZUluaXRBAgAAAAxBX2Fzc2V0X2luaXQAAAAAD2tleUJhbGFuY2VJbml0QgIAAAAMQl9hc3NldF9pbml0AAAAAA9rZXlTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2lkAAAAABNrZXlT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nR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACCzoc0A==", "height": 1603110, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: acfibe37dEyHpy22DGXRS3Md1jVWentqkc68xGuZJh6 Next: CVAQasa3WK2z5YTWXhntgwrTzmXjFnXJoYv9wMRMxMdU Diff:
OldNewDifferences
5858 let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
5959
6060 let stakingAddress = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE')
61+
62+let EURNToWavesExchanger = Address(base58'3MqsiNaG42muSdN4QxfMQqiwCWccvH368W2')
6163
6264 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
6365
209211 func throwInsufficientAvailableBalances (amountA,amountB) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(amountA)) + " ") + assetNameA) + " and ") + toString(amountB)) + " ") + assetNameB) + " due to staking. Available: ") + toString(availableBalanceA)) + " ") + assetNameA) + " and ") + toString(availableBalanceB)) + " ") + assetNameB) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
210212
211213
212-func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB))
214+func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB))
213215
214216
215217 @Callable(i)
216218 func init (firstHarvest) = {
217- let $t063186395 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
218- let pmtAmountA = $t063186395._1
219- let pmtAssetIdA = $t063186395._2
220- let $t064006477 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
221- let pmtAmountB = $t064006477._1
222- let pmtAssetIdB = $t064006477._2
223- let $t064826559 = getAssetInfo(pmtAssetIdA)
224- let pmtStrAssetIdA = $t064826559._1
225- let pmtAssetNameA = $t064826559._2
226- let pmtDecimalsA = $t064826559._3
227- let $t065646641 = getAssetInfo(pmtAssetIdB)
228- let pmtStrAssetIdB = $t065646641._1
229- let pmtAssetNameB = $t065646641._2
230- let pmtDecimalsB = $t065646641._3
219+ let $t063986475 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
220+ let pmtAmountA = $t063986475._1
221+ let pmtAssetIdA = $t063986475._2
222+ let $t064806557 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
223+ let pmtAmountB = $t064806557._1
224+ let pmtAssetIdB = $t064806557._2
225+ let $t065626639 = getAssetInfo(pmtAssetIdA)
226+ let pmtStrAssetIdA = $t065626639._1
227+ let pmtAssetNameA = $t065626639._2
228+ let pmtDecimalsA = $t065626639._3
229+ let $t066446721 = getAssetInfo(pmtAssetIdB)
230+ let pmtStrAssetIdB = $t066446721._1
231+ let pmtAssetNameB = $t066446721._2
232+ let pmtDecimalsB = $t066446721._3
231233 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
232234 then throw("Only admin can call this function")
233235 else if (isDefined(getBoolean(this, keyActive)))
252254
253255 @Callable(i)
254256 func initWithInitRatio (amtAssetA,amtAssetB,strAssetIdA,strAssetIdB,firstHarvest) = {
255- let $t088498936 = getAssetInfoFromString(strAssetIdA)
256- let pmtStrAssetIdA = $t088498936._1
257- let pmtAssetNameA = $t088498936._2
258- let pmtDecimalsA = $t088498936._3
259- let $t089419028 = getAssetInfoFromString(strAssetIdB)
260- let pmtStrAssetIdB = $t089419028._1
261- let pmtAssetNameB = $t089419028._2
262- let pmtDecimalsB = $t089419028._3
257+ let $t089299016 = getAssetInfoFromString(strAssetIdA)
258+ let pmtStrAssetIdA = $t089299016._1
259+ let pmtAssetNameA = $t089299016._2
260+ let pmtDecimalsA = $t089299016._3
261+ let $t090219108 = getAssetInfoFromString(strAssetIdB)
262+ let pmtStrAssetIdB = $t090219108._1
263+ let pmtAssetNameB = $t090219108._2
264+ let pmtDecimalsB = $t090219108._3
263265 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
264266 then throw("Only admin can call this function")
265267 else if (isDefined(getBoolean(this, keyActive)))
301303 then (balanceB == 0)
302304 else false)
303305 then {
304- let $t01171311790 = getAssetInfo(pmtAssetIdA)
305- let pmtStrAssetIdA = $t01171311790._1
306- let pmtAssetNameA = $t01171311790._2
307- let pmtDecimalsA = $t01171311790._3
308- let $t01179911876 = getAssetInfo(pmtAssetIdB)
309- let pmtStrAssetIdB = $t01179911876._1
310- let pmtAssetNameB = $t01179911876._2
311- let pmtDecimalsB = $t01179911876._3
306+ let $t01179311870 = getAssetInfo(pmtAssetIdA)
307+ let pmtStrAssetIdA = $t01179311870._1
308+ let pmtAssetNameA = $t01179311870._2
309+ let pmtDecimalsA = $t01179311870._3
310+ let $t01187911956 = getAssetInfo(pmtAssetIdB)
311+ let pmtStrAssetIdB = $t01187911956._1
312+ let pmtAssetNameB = $t01187911956._2
313+ let pmtDecimalsB = $t01187911956._3
312314 let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB))
313315 if ((pmtAssetIdA == pmtAssetIdB))
314316 then throw("Assets must be different")
371373
372374 @Callable(i)
373375 func withdraw () = {
374- let $t01628816438 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
375- let pmtAmount = $t01628816438._1
376- let pmtAssetId = $t01628816438._2
376+ let $t01636816518 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
377+ let pmtAmount = $t01636816518._1
378+ let pmtAssetId = $t01636816518._2
377379 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA)
378380 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB)
379381 if (!(isActive))
395397
396398 @Callable(i)
397399 func exchange (minAmountToReceive) = {
398- let $t01764417719 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
399- let pmtAmount = $t01764417719._1
400- let pmtAssetId = $t01764417719._2
400+ let $t01772417799 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
401+ let pmtAmount = $t01772417799._1
402+ let pmtAssetId = $t01772417799._2
401403 func calculateFees (tokenFrom,tokenTo) = {
402404 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
403405 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
422424 else if ((pmtAssetId == assetIdA))
423425 then {
424426 let assetIdSend = assetIdB
425- let $t01899319084 = calculateFees(balanceA, balanceB)
426- let amountWithoutFee = $t01899319084._1
427- let amountWithFee = $t01899319084._2
428- let governanceReward = $t01899319084._3
427+ let $t01907319164 = calculateFees(balanceA, balanceB)
428+ let amountWithoutFee = $t01907319164._1
429+ let amountWithFee = $t01907319164._2
430+ let governanceReward = $t01907319164._3
429431 let newBalanceA = (balanceA + pmtAmount)
430432 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
431433 if (if (if ((assetIdA == EURN))
441443 else if ((pmtAssetId == assetIdB))
442444 then {
443445 let assetIdSend = assetIdA
444- let $t01995320044 = calculateFees(balanceB, balanceA)
445- let amountWithoutFee = $t01995320044._1
446- let amountWithFee = $t01995320044._2
447- let governanceReward = $t01995320044._3
446+ let $t02003320124 = calculateFees(balanceB, balanceA)
447+ let amountWithoutFee = $t02003320124._1
448+ let amountWithFee = $t02003320124._2
449+ let governanceReward = $t02003320124._3
448450 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
449451 let newBalanceB = (balanceB + pmtAmount)
450452 if (if (if ((assetIdA == EURN))
525527 then (size(invoke.payments) == 0)
526528 else false
527529 else false
530+ let exchangeToWaves = if (if (if ((invoke.dApp == EURNToWavesExchanger))
531+ then (invoke.function == "exchange")
532+ else false)
533+ then (assetIdA == EURN)
534+ else false)
535+ then true
536+ else if ((assetIdB == EURN))
537+ then (invoke.payments[0].assetId == EURN)
538+ else false
528539 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
529540 then true
530541 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
532543 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
533544 then true
534545 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
535- if (if (callTakeIntoAccount)
546+ if (if (if (callTakeIntoAccount)
536547 then true
537548 else callStaking)
549+ then true
550+ else exchangeToWaves)
538551 then signedByAdmin
539552 else false
540553 case _ =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "1.0.0"
55
66 let keyVersion = "version"
77
88 let keyActive = "active"
99
1010 let keyAssetIdA = "A_asset_id"
1111
1212 let keyAssetIdB = "B_asset_id"
1313
1414 let keyBalanceA = "A_asset_balance"
1515
1616 let keyBalanceB = "B_asset_balance"
1717
1818 let keyBalanceInitA = "A_asset_init"
1919
2020 let keyBalanceInitB = "B_asset_init"
2121
2222 let keyShareAssetId = "share_asset_id"
2323
2424 let keyShareAssetSupply = "share_asset_supply"
2525
2626 let keyCommission = "commission"
2727
2828 let keyCommissionScaleDelimiter = "commission_scale_delimiter"
2929
3030 let keyCause = "shutdown_cause"
3131
3232 let keyFirstHarvest = "first_harvest"
3333
3434 let keyFirstHarvestHeight = "first_harvest_height"
3535
3636 let kShareLimit = "share_limit_on_first_harvest"
3737
3838 let kBasePeriod = "base_period"
3939
4040 let kPeriodLength = "period_length"
4141
4242 let kStartHeight = "start_height"
4343
4444 let kFirstHarvestHeight = "first_harvest_height"
4545
4646 let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
4747
4848 let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
4949
5050 let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5151
5252 let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5353
5454 let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5555
5656 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
5757
5858 let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
5959
6060 let stakingAddress = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE')
61+
62+let EURNToWavesExchanger = Address(base58'3MqsiNaG42muSdN4QxfMQqiwCWccvH368W2')
6163
6264 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
6365
6466 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
6567
6668 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
6769
6870 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
6971
7072 let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
7173
7274 let stakingFeeInEURN = 234000
7375
7476 let isActive = getBooleanValue(this, keyActive)
7577
7678 let strAssetIdA = getStringValue(this, keyAssetIdA)
7779
7880 let strAssetIdB = getStringValue(this, keyAssetIdB)
7981
8082 let assetIdA = if ((strAssetIdA == "WAVES"))
8183 then unit
8284 else fromBase58String(strAssetIdA)
8385
8486 let assetIdB = if ((strAssetIdB == "WAVES"))
8587 then unit
8688 else fromBase58String(strAssetIdB)
8789
8890 let assetNameA = match assetIdA {
8991 case id: ByteVector =>
9092 value(assetInfo(id)).name
9193 case waves: Unit =>
9294 "WAVES"
9395 case _ =>
9496 throw("Match error")
9597 }
9698
9799 let assetNameB = match assetIdB {
98100 case id: ByteVector =>
99101 value(assetInfo(id)).name
100102 case waves: Unit =>
101103 "WAVES"
102104 case _ =>
103105 throw("Match error")
104106 }
105107
106108 let balanceA = getIntegerValue(this, keyBalanceA)
107109
108110 let balanceB = getIntegerValue(this, keyBalanceB)
109111
110112 let shareAssetId = fromBase58String(getStringValue(this, keyShareAssetId))
111113
112114 let shareAssetSupply = getIntegerValue(this, keyShareAssetSupply)
113115
114116 let commission = 3000
115117
116118 let commissionGovernance = 1200
117119
118120 let commissionScaleDelimiter = 1000000
119121
120122 let scaleValue3 = 1000
121123
122124 let scaleValue8 = 100000000
123125
124126 let slippageToleranceDelimiter = 1000
125127
126128 let scaleValue8Digits = 8
127129
128130 func accountBalance (assetId) = match assetId {
129131 case id: ByteVector =>
130132 assetBalance(this, id)
131133 case waves: Unit =>
132134 wavesBalance(this).available
133135 case _ =>
134136 throw("Match error")
135137 }
136138
137139
138140 let stakedAmountEURN = match getInteger(stakingAddress, ((("%s%s%s__stakingBalance__" + toBase58String(EURN)) + "__") + toString(this))) {
139141 case staked: Int =>
140142 staked
141143 case nothing: Unit =>
142144 0
143145 case _ =>
144146 throw("Match error")
145147 }
146148
147149 let assetInitA = getIntegerValue(this, keyBalanceInitA)
148150
149151 let assetInitB = getIntegerValue(this, keyBalanceInitB)
150152
151153 let availableBalanceA = (balanceA - (if ((assetIdA == EURN))
152154 then stakedAmountEURN
153155 else 0))
154156
155157 let availableBalanceB = (balanceB - (if ((assetIdB == EURN))
156158 then stakedAmountEURN
157159 else 0))
158160
159161 let accountBalanceWithStakedA = (accountBalance(assetIdA) + (if ((assetIdA == EURN))
160162 then stakedAmountEURN
161163 else 0))
162164
163165 let accountBalanceWithStakedB = (accountBalance(assetIdB) + (if ((assetIdB == EURN))
164166 then stakedAmountEURN
165167 else 0))
166168
167169 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
168170 then (accountBalanceWithStakedB >= balanceB)
169171 else false
170172
171173 func getAssetInfo (assetId) = match assetId {
172174 case id: ByteVector =>
173175 let stringId = toBase58String(id)
174176 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
175177 $Tuple3(stringId, info.name, info.decimals)
176178 case waves: Unit =>
177179 $Tuple3("WAVES", "WAVES", 8)
178180 case _ =>
179181 throw("Match error")
180182 }
181183
182184
183185 func getAssetInfoFromString (assetStr) = if ((assetStr == "WAVES"))
184186 then $Tuple3("WAVES", "WAVES", 8)
185187 else {
186188 let stringId = assetStr
187189 let id = fromBase58String(assetStr)
188190 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
189191 $Tuple3(stringId, info.name, info.decimals)
190192 }
191193
192194
193195 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
194196
195197
196198 func deductStakingFee (amount,assetId) = if ((assetId == EURN))
197199 then {
198200 let result = (amount - stakingFeeInEURN)
199201 if ((0 >= result))
200202 then throw((((("Insufficient amount " + toString(amount)) + " to deduct staking fee ") + toString(stakingFeeInEURN)) + " USD-N"))
201203 else result
202204 }
203205 else amount
204206
205207
206208 func throwInsufficientAvailableBalance (amount,available,assetName) = throw((((((((("Insufficient DApp balance to pay " + toString(amount)) + " ") + assetName) + " due to staking. Available: ") + toString(available)) + " ") + assetName) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
207209
208210
209211 func throwInsufficientAvailableBalances (amountA,amountB) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(amountA)) + " ") + assetNameA) + " and ") + toString(amountB)) + " ") + assetNameB) + " due to staking. Available: ") + toString(availableBalanceA)) + " ") + assetNameA) + " and ") + toString(availableBalanceB)) + " ") + assetNameB) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
210212
211213
212-func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB))
214+func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceWithStakedA)) + " ") + assetNameA) + ", ") + toString(accountBalanceWithStakedB)) + " ") + assetNameB) + ". State: ") + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB))
213215
214216
215217 @Callable(i)
216218 func init (firstHarvest) = {
217- let $t063186395 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
218- let pmtAmountA = $t063186395._1
219- let pmtAssetIdA = $t063186395._2
220- let $t064006477 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
221- let pmtAmountB = $t064006477._1
222- let pmtAssetIdB = $t064006477._2
223- let $t064826559 = getAssetInfo(pmtAssetIdA)
224- let pmtStrAssetIdA = $t064826559._1
225- let pmtAssetNameA = $t064826559._2
226- let pmtDecimalsA = $t064826559._3
227- let $t065646641 = getAssetInfo(pmtAssetIdB)
228- let pmtStrAssetIdB = $t065646641._1
229- let pmtAssetNameB = $t065646641._2
230- let pmtDecimalsB = $t065646641._3
219+ let $t063986475 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
220+ let pmtAmountA = $t063986475._1
221+ let pmtAssetIdA = $t063986475._2
222+ let $t064806557 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
223+ let pmtAmountB = $t064806557._1
224+ let pmtAssetIdB = $t064806557._2
225+ let $t065626639 = getAssetInfo(pmtAssetIdA)
226+ let pmtStrAssetIdA = $t065626639._1
227+ let pmtAssetNameA = $t065626639._2
228+ let pmtDecimalsA = $t065626639._3
229+ let $t066446721 = getAssetInfo(pmtAssetIdB)
230+ let pmtStrAssetIdB = $t066446721._1
231+ let pmtAssetNameB = $t066446721._2
232+ let pmtDecimalsB = $t066446721._3
231233 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
232234 then throw("Only admin can call this function")
233235 else if (isDefined(getBoolean(this, keyActive)))
234236 then throw("DApp is already active")
235237 else if ((pmtAssetIdA == pmtAssetIdB))
236238 then throw("Assets must be different")
237239 else {
238240 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
239241 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
240242 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
241243 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN))
242244 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
243245 let shareIssueId = calculateAssetId(shareIssue)
244246 let baseEntry = [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
245247 if (firstHarvest)
246248 then (baseEntry ++ [BooleanEntry(keyFirstHarvest, firstHarvest), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
247249 else baseEntry
248250 }
249251 }
250252
251253
252254
253255 @Callable(i)
254256 func initWithInitRatio (amtAssetA,amtAssetB,strAssetIdA,strAssetIdB,firstHarvest) = {
255- let $t088498936 = getAssetInfoFromString(strAssetIdA)
256- let pmtStrAssetIdA = $t088498936._1
257- let pmtAssetNameA = $t088498936._2
258- let pmtDecimalsA = $t088498936._3
259- let $t089419028 = getAssetInfoFromString(strAssetIdB)
260- let pmtStrAssetIdB = $t089419028._1
261- let pmtAssetNameB = $t089419028._2
262- let pmtDecimalsB = $t089419028._3
257+ let $t089299016 = getAssetInfoFromString(strAssetIdA)
258+ let pmtStrAssetIdA = $t089299016._1
259+ let pmtAssetNameA = $t089299016._2
260+ let pmtDecimalsA = $t089299016._3
261+ let $t090219108 = getAssetInfoFromString(strAssetIdB)
262+ let pmtStrAssetIdB = $t090219108._1
263+ let pmtAssetNameB = $t090219108._2
264+ let pmtDecimalsB = $t090219108._3
263265 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
264266 then throw("Only admin can call this function")
265267 else if (isDefined(getBoolean(this, keyActive)))
266268 then throw("DApp is already active")
267269 else if ((strAssetIdA == strAssetIdB))
268270 then throw("Assets must be different")
269271 else {
270272 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
271273 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
272274 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
273275 let shareInitialSupply = 0
274276 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
275277 let shareIssueId = calculateAssetId(shareIssue)
276278 let baseEntry = [StringEntry(keyVersion, version), BooleanEntry(keyActive, true), StringEntry(keyAssetIdA, pmtStrAssetIdA), StringEntry(keyAssetIdB, pmtStrAssetIdB), IntegerEntry(keyBalanceInitA, amtAssetA), IntegerEntry(keyBalanceInitB, amtAssetB), IntegerEntry(keyBalanceA, 0), IntegerEntry(keyBalanceB, 0), IntegerEntry(keyCommission, commission), IntegerEntry(keyCommissionScaleDelimiter, commissionScaleDelimiter), shareIssue, StringEntry(keyShareAssetId, toBase58String(shareIssueId)), IntegerEntry(keyShareAssetSupply, shareInitialSupply)]
277279 if (firstHarvest)
278280 then (baseEntry ++ [BooleanEntry(keyFirstHarvest, firstHarvest), IntegerEntry(keyFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
279281 else baseEntry
280282 }
281283 }
282284
283285
284286
285287 @Callable(i)
286288 func keepLimitForFirstHarvest (shareLimit) = if (!(isActive))
287289 then throw("DApp is inactive at this moment")
288290 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStaking], i.callerPublicKey)))
289291 then throw("Only admin can call this function")
290292 else [IntegerEntry(kShareLimit, shareLimit)]
291293
292294
293295
294296 @Callable(i)
295297 func replenishWithTwoTokens (slippageTolerance) = {
296298 let pmtAssetIdA = i.payments[0].assetId
297299 let pmtAssetIdB = i.payments[1].assetId
298300 let pmtAmountA = deductStakingFee(i.payments[0].amount, pmtAssetIdA)
299301 let pmtAmountB = deductStakingFee(i.payments[1].amount, pmtAssetIdB)
300302 if (if ((balanceA == 0))
301303 then (balanceB == 0)
302304 else false)
303305 then {
304- let $t01171311790 = getAssetInfo(pmtAssetIdA)
305- let pmtStrAssetIdA = $t01171311790._1
306- let pmtAssetNameA = $t01171311790._2
307- let pmtDecimalsA = $t01171311790._3
308- let $t01179911876 = getAssetInfo(pmtAssetIdB)
309- let pmtStrAssetIdB = $t01179911876._1
310- let pmtAssetNameB = $t01179911876._2
311- let pmtDecimalsB = $t01179911876._3
306+ let $t01179311870 = getAssetInfo(pmtAssetIdA)
307+ let pmtStrAssetIdA = $t01179311870._1
308+ let pmtAssetNameA = $t01179311870._2
309+ let pmtDecimalsA = $t01179311870._3
310+ let $t01187911956 = getAssetInfo(pmtAssetIdB)
311+ let pmtStrAssetIdB = $t01187911956._1
312+ let pmtAssetNameB = $t01187911956._2
313+ let pmtDecimalsB = $t01187911956._3
312314 let tokenRatio = fraction(fraction(assetInitA, scaleValue8, pmtAmountA), scaleValue3, fraction(assetInitB, scaleValue8, pmtAmountB))
313315 if ((pmtAssetIdA == pmtAssetIdB))
314316 then throw("Assets must be different")
315317 else {
316318 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
317319 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, HALFDOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, HALFDOWN), pow(10, 0, shareDecimals, 0, 0, HALFDOWN))
318320 if (!(isActive))
319321 then throw("DApp is inactive at this moment")
320322 else if (if ((0 > slippageTolerance))
321323 then true
322324 else (slippageTolerance > slippageToleranceDelimiter))
323325 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
324326 else if ((size(i.payments) != 2))
325327 then throw("Two attached assets expected")
326328 else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
327329 then true
328330 else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
329331 then throw("Incorrect assets amount: amounts must have the contract ratio")
330332 else if (if ((pmtAssetIdA != assetIdA))
331333 then true
332334 else (pmtAssetIdB != assetIdB))
333335 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
334336 else if ((shareInitialSupply == 0))
335337 then throw("Too small amount to replenish")
336338 else if (!(hasEnoughBalance))
337339 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
338340 else [Reissue(shareAssetId, shareInitialSupply, true), IntegerEntry(keyBalanceA, pmtAmountA), IntegerEntry(keyBalanceB, pmtAmountB), IntegerEntry(keyShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareAssetId)]
339341 }
340342 }
341343 else {
342344 let tokenRatio = fraction(fraction(balanceA, scaleValue8, pmtAmountA), scaleValue3, fraction(balanceB, scaleValue8, pmtAmountB))
343345 let ratioShareTokensInA = fraction(pmtAmountA, scaleValue8, balanceA)
344346 let ratioShareTokensInB = fraction(pmtAmountB, scaleValue8, balanceB)
345347 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scaleValue8)
346348 if (!(isActive))
347349 then throw("DApp is inactive at this moment")
348350 else if (if ((0 > slippageTolerance))
349351 then true
350352 else (slippageTolerance > slippageToleranceDelimiter))
351353 then throw(((("Slippage tolerance must be between 0 and " + toString(slippageToleranceDelimiter)) + " inclusively. Actual: ") + toString(slippageTolerance)))
352354 else if ((size(i.payments) != 2))
353355 then throw("Two attached assets expected")
354356 else if (if ((pmtAssetIdA != assetIdA))
355357 then true
356358 else (pmtAssetIdB != assetIdB))
357359 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
358360 else if (if ((((scaleValue3 * (slippageToleranceDelimiter - slippageTolerance)) / slippageToleranceDelimiter) > tokenRatio))
359361 then true
360362 else (tokenRatio > ((scaleValue3 * (slippageToleranceDelimiter + slippageTolerance)) / slippageToleranceDelimiter)))
361363 then throw("Incorrect assets amount: amounts must have the contract ratio")
362364 else if ((shareTokenToPayAmount == 0))
363365 then throw("Too small amount to replenish")
364366 else if (!(hasEnoughBalance))
365367 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
366368 else [IntegerEntry(keyBalanceA, (balanceA + pmtAmountA)), IntegerEntry(keyBalanceB, (balanceB + pmtAmountB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)]
367369 }
368370 }
369371
370372
371373
372374 @Callable(i)
373375 func withdraw () = {
374- let $t01628816438 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
375- let pmtAmount = $t01628816438._1
376- let pmtAssetId = $t01628816438._2
376+ let $t01636816518 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
377+ let pmtAmount = $t01636816518._1
378+ let pmtAssetId = $t01636816518._2
377379 let amountToPayA = deductStakingFee(fraction(pmtAmount, balanceA, shareAssetSupply), assetIdA)
378380 let amountToPayB = deductStakingFee(fraction(pmtAmount, balanceB, shareAssetSupply), assetIdB)
379381 if (!(isActive))
380382 then throw("DApp is inactive at this moment")
381383 else if ((size(i.payments) != 1))
382384 then throw("One attached payment expected")
383385 else if ((pmtAssetId != shareAssetId))
384386 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
385387 else if (!(hasEnoughBalance))
386388 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
387389 else if (if ((amountToPayA > availableBalanceA))
388390 then true
389391 else (amountToPayB > availableBalanceB))
390392 then throwInsufficientAvailableBalances(amountToPayA, amountToPayB)
391393 else [IntegerEntry(keyBalanceA, (balanceA - amountToPayA)), IntegerEntry(keyBalanceB, (balanceB - amountToPayB)), IntegerEntry(keyShareAssetSupply, (shareAssetSupply - pmtAmount)), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)]
392394 }
393395
394396
395397
396398 @Callable(i)
397399 func exchange (minAmountToReceive) = {
398- let $t01764417719 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
399- let pmtAmount = $t01764417719._1
400- let pmtAssetId = $t01764417719._2
400+ let $t01772417799 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
401+ let pmtAmount = $t01772417799._1
402+ let pmtAssetId = $t01772417799._2
401403 func calculateFees (tokenFrom,tokenTo) = {
402404 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
403405 let amountWithFee = fraction(amountWithoutFee, (commissionScaleDelimiter - commission), commissionScaleDelimiter)
404406 let governanceReward = fraction(amountWithoutFee, commissionGovernance, commissionScaleDelimiter)
405407 if ((minAmountToReceive > amountWithFee))
406408 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
407409 else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
408410 }
409411
410412 if (!(isActive))
411413 then throw("DApp is inactive at this moment")
412414 else if (if ((balanceA == 0))
413415 then true
414416 else (balanceB == 0))
415417 then throw("Can't exchange with zero balance")
416418 else if ((0 >= minAmountToReceive))
417419 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
418420 else if ((size(i.payments) != 1))
419421 then throw("One attached payment expected")
420422 else if (!(hasEnoughBalance))
421423 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
422424 else if ((pmtAssetId == assetIdA))
423425 then {
424426 let assetIdSend = assetIdB
425- let $t01899319084 = calculateFees(balanceA, balanceB)
426- let amountWithoutFee = $t01899319084._1
427- let amountWithFee = $t01899319084._2
428- let governanceReward = $t01899319084._3
427+ let $t01907319164 = calculateFees(balanceA, balanceB)
428+ let amountWithoutFee = $t01907319164._1
429+ let amountWithFee = $t01907319164._2
430+ let governanceReward = $t01907319164._3
429431 let newBalanceA = (balanceA + pmtAmount)
430432 let newBalanceB = ((balanceB - amountWithFee) - governanceReward)
431433 if (if (if ((assetIdA == EURN))
432434 then (stakedAmountEURN >= newBalanceA)
433435 else false)
434436 then true
435437 else if ((assetIdB == EURN))
436438 then (stakedAmountEURN >= newBalanceB)
437439 else false)
438440 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceB, assetNameB)
439441 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
440442 }
441443 else if ((pmtAssetId == assetIdB))
442444 then {
443445 let assetIdSend = assetIdA
444- let $t01995320044 = calculateFees(balanceB, balanceA)
445- let amountWithoutFee = $t01995320044._1
446- let amountWithFee = $t01995320044._2
447- let governanceReward = $t01995320044._3
446+ let $t02003320124 = calculateFees(balanceB, balanceA)
447+ let amountWithoutFee = $t02003320124._1
448+ let amountWithFee = $t02003320124._2
449+ let governanceReward = $t02003320124._3
448450 let newBalanceA = ((balanceA - amountWithFee) - governanceReward)
449451 let newBalanceB = (balanceB + pmtAmount)
450452 if (if (if ((assetIdA == EURN))
451453 then (stakedAmountEURN >= newBalanceA)
452454 else false)
453455 then true
454456 else if ((assetIdB == EURN))
455457 then (stakedAmountEURN >= newBalanceB)
456458 else false)
457459 then throwInsufficientAvailableBalance(amountWithFee, availableBalanceA, assetNameA)
458460 else [IntegerEntry(keyBalanceA, newBalanceA), IntegerEntry(keyBalanceB, newBalanceB), ScriptTransfer(i.caller, amountWithFee, assetIdSend), ScriptTransfer(walletAddress, governanceReward, assetIdSend)]
459461 }
460462 else throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
461463 }
462464
463465
464466
465467 @Callable(i)
466468 func shutdown () = if (!(isActive))
467469 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
468470 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
469471 then throw("Only admin can call this function")
470472 else suspend("Paused by admin")
471473
472474
473475
474476 @Callable(i)
475477 func activate () = if (isActive)
476478 then throw("DApp is already active")
477479 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
478480 then throw("Only admin can call this function")
479481 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
480482
481483
482484
483485 @Callable(i)
484486 func takeIntoAccountExtraFunds (amountLeave) = {
485487 let uncountableAmountEnrollAssetA = (accountBalanceWithStakedA - balanceA)
486488 let uncountableAmountEnrollAssetB = (accountBalanceWithStakedB - balanceB)
487489 let amountEnrollA = (uncountableAmountEnrollAssetA - (if ((assetIdA == unit))
488490 then amountLeave
489491 else 0))
490492 let amountEnrollB = (uncountableAmountEnrollAssetB - (if ((assetIdB == unit))
491493 then amountLeave
492494 else 0))
493495 if (!(isActive))
494496 then throw("DApp is inactive at this moment")
495497 else if ((i.caller != this))
496498 then throw("Only the DApp itself can call this function")
497499 else if ((0 > amountLeave))
498500 then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(amountLeave)))
499501 else if (if ((0 > uncountableAmountEnrollAssetA))
500502 then true
501503 else (0 > uncountableAmountEnrollAssetB))
502504 then suspend("Enroll amount negative")
503505 else if (if ((0 > amountEnrollA))
504506 then true
505507 else (0 > amountEnrollB))
506508 then throw("Too large amountLeave")
507509 else [IntegerEntry(keyBalanceA, (balanceA + amountEnrollA)), IntegerEntry(keyBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
508510 }
509511
510512
511513 @Verifier(tx)
512514 func verify () = match tx {
513515 case invoke: InvokeScriptTransaction =>
514516 let callTakeIntoAccount = if ((invoke.dApp == this))
515517 then (invoke.function == "takeIntoAccountExtraFunds")
516518 else false
517519 let callStaking = if ((invoke.dApp == stakingAddress))
518520 then if (if (if ((invoke.function == "startStaking"))
519521 then (size(invoke.payments) == 1)
520522 else false)
521523 then (invoke.payments[0].assetId == EURN)
522524 else false)
523525 then true
524526 else if ((invoke.function == "stopStaking"))
525527 then (size(invoke.payments) == 0)
526528 else false
527529 else false
530+ let exchangeToWaves = if (if (if ((invoke.dApp == EURNToWavesExchanger))
531+ then (invoke.function == "exchange")
532+ else false)
533+ then (assetIdA == EURN)
534+ else false)
535+ then true
536+ else if ((assetIdB == EURN))
537+ then (invoke.payments[0].assetId == EURN)
538+ else false
528539 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
529540 then true
530541 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
531542 then true
532543 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
533544 then true
534545 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking)
535- if (if (callTakeIntoAccount)
546+ if (if (if (callTakeIntoAccount)
536547 then true
537548 else callStaking)
549+ then true
550+ else exchangeToWaves)
538551 then signedByAdmin
539552 else false
540553 case _ =>
541554 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
542555 then 1
543556 else 0
544557 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
545558 then 1
546559 else 0
547560 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
548561 then 1
549562 else 0
550563 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
551564 }
552565

github/deemru/w8io/026f985 
110.20 ms