tx · 2v3UcPQ8aQ9K9NgV1i29iTTLkcg2kMAyWLFUGzYEpihR 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5: -0.10000000 Waves 2022.10.11 12:36 [2267512] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves
{ "type": 13, "id": "2v3UcPQ8aQ9K9NgV1i29iTTLkcg2kMAyWLFUGzYEpihR", "fee": 10000000, "feeAssetId": null, "timestamp": 1665481019709, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "2KjtaRbLsxmCpxajTe2qDveCKvpSozH6M6va9sdUDLGUdE7wN2MFJSwqzRPGgXxbUgMjjREY4JXCbGe5Uza5WbaR" ], "script": "base64:BgJKCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJLAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa0JhbGFuY2VJbml0QQIMQV9hc3NldF9pbml0AA1rQmFsYW5jZUluaXRCAgxCX2Fzc2V0X2luaXQADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBseQISc2hhcmVfYXNzZXRfc3VwcGx5AARrRmVlAgpjb21taXNzaW9uAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rRmlyc3RIYXJ2ZXN0Ag1maXJzdF9oYXJ2ZXN0ABN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gUNYW1vdW50RW5yb2xsQgkAzAgCBQtzdHJBc3NldElkQgUDbmlsBQNuaWwAAAMJAAACBQZzdGFrZTIFBnN0YWtlMgkAlAoCBQNuaWwJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJa0JhbGFuY2VBCQBkAgUIYmFsYW5jZUEFDWFtb3VudEVucm9sbEEJAMwIAgkBDEludGVnZXJFbnRyeQIFCWtCYWxhbmNlQgkAZAIFCGJhbGFuY2VCBQ1hbW91bnRFbnJvbGxCBQNuaWwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEE211bHRpU2lnbmVkQnlBZG1pbnMEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgUTbXVsdGlTaWduZWRCeUFkbWluc8zRSA4=", "height": 2267512, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 5fZqheZtq9gTrnkG96avFqnLfvyw1UHTaku8H7QG7Bdw Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let version = "1.0.0" | |
5 | + | ||
6 | + | let kVersion = "version" | |
7 | + | ||
8 | + | let kActive = "active" | |
9 | + | ||
10 | + | let kAssetIdA = "A_asset_id" | |
11 | + | ||
12 | + | let kAssetIdB = "B_asset_id" | |
13 | + | ||
14 | + | let kBalanceA = "A_asset_balance" | |
15 | + | ||
16 | + | let kBalanceB = "B_asset_balance" | |
17 | + | ||
18 | + | let kBalanceInitA = "A_asset_init" | |
19 | + | ||
20 | + | let kBalanceInitB = "B_asset_init" | |
21 | + | ||
22 | + | let kShareAssetId = "share_asset_id" | |
23 | + | ||
24 | + | let kShareAssetSupply = "share_asset_supply" | |
25 | + | ||
26 | + | let kFee = "commission" | |
27 | + | ||
28 | + | let kCause = "shutdown_cause" | |
29 | + | ||
30 | + | let kFirstHarvest = "first_harvest" | |
31 | + | ||
32 | + | let kFirstHarvestHeight = "first_harvest_height" | |
33 | + | ||
34 | + | let kShareLimit = "share_limit_on_first_harvest" | |
35 | + | ||
36 | + | let kBasePeriod = "base_period" | |
37 | + | ||
38 | + | let kPeriodLength = "period_length" | |
39 | + | ||
40 | + | let kStartHeight = "start_height" | |
41 | + | ||
42 | + | let kUSDNAddress = "staking_usdnnsbt_address" | |
43 | + | ||
44 | + | let kEURNAddress = "staking_eurn_address" | |
45 | + | ||
46 | + | let kLeasingAmount = "leasing_amount" | |
47 | + | ||
48 | + | let kUSDNAssetId = "usdn_asset_id" | |
49 | + | ||
50 | + | let kEURNAssetId = "eurn_asset_id" | |
51 | + | ||
52 | + | let kStakingAssets = "staking_assets" | |
53 | + | ||
54 | + | let kOracleActive = "active_all_contracts" | |
55 | + | ||
56 | + | let kOracleActiveExchangers = "active_global_exchangers" | |
57 | + | ||
58 | + | let kDiscounts = "discounts" | |
59 | + | ||
60 | + | let kDiscountValues = "discount_values" | |
61 | + | ||
62 | + | let kUserSwopInGov = "_SWOP_amount" | |
63 | + | ||
64 | + | let kOraclePool = "pool_" | |
65 | + | ||
66 | + | let kAdminPubKey1 = "admin_pub_1" | |
67 | + | ||
68 | + | let kAdminPubKey2 = "admin_pub_2" | |
69 | + | ||
70 | + | let kAdminPubKey3 = "admin_pub_3" | |
71 | + | ||
72 | + | let kAdminInvokePubKey = "admin_invoke_pub" | |
73 | + | ||
74 | + | let kMoneyBoxAddress = "money_box_address" | |
75 | + | ||
76 | + | let kVotingAddress = "voting_address" | |
77 | + | ||
78 | + | let kGovAddress = "governance_address" | |
79 | + | ||
80 | + | let kFarmingAddress = "farming_address" | |
81 | + | ||
82 | + | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
83 | + | ||
84 | + | func getBase58FromOracle (key) = match getString(oracle, key) { | |
85 | + | case string: String => | |
86 | + | fromBase58String(string) | |
87 | + | case nothing => | |
88 | + | throw((key + "is empty")) | |
89 | + | } | |
90 | + | ||
91 | + | ||
92 | + | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
93 | + | ||
94 | + | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
95 | + | ||
96 | + | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
97 | + | ||
98 | + | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
99 | + | ||
100 | + | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
101 | + | ||
102 | + | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
103 | + | ||
104 | + | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
105 | + | ||
106 | + | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
107 | + | ||
108 | + | let USDN = getBase58FromOracle(kUSDNAssetId) | |
109 | + | ||
110 | + | let EURN = getBase58FromOracle(kEURNAssetId) | |
111 | + | ||
112 | + | let stakingAssets = getStringValue(oracle, kStakingAssets) | |
113 | + | ||
114 | + | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
115 | + | ||
116 | + | let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress)) | |
117 | + | ||
118 | + | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
119 | + | ||
120 | + | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
121 | + | ||
122 | + | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
123 | + | ||
124 | + | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
125 | + | ||
126 | + | let active = if (getBooleanValue(oracle, kOracleActive)) | |
127 | + | then getBooleanValue(oracle, kOracleActiveExchangers) | |
128 | + | else false | |
129 | + | ||
130 | + | let feeScale6 = 1000000 | |
131 | + | ||
132 | + | let scale8 = 100000000 | |
133 | + | ||
134 | + | func accountBalance (assetId,pool) = match assetId { | |
135 | + | case id: ByteVector => | |
136 | + | assetBalance(pool, id) | |
137 | + | case waves: Unit => | |
138 | + | wavesBalance(pool).available | |
139 | + | case _ => | |
140 | + | throw("Match error") | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | func stakedAmount (assetId,pool) = { | |
145 | + | let stakedAmountCalculated = match assetId { | |
146 | + | case aId: ByteVector => | |
147 | + | if ((aId == USDN)) | |
148 | + | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool))) | |
149 | + | else if ((aId == EURN)) | |
150 | + | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool))) | |
151 | + | else 0 | |
152 | + | case _: Unit => | |
153 | + | valueOrElse(getInteger(pool, kLeasingAmount), 0) | |
154 | + | case _ => | |
155 | + | throw("Match error") | |
156 | + | } | |
157 | + | match stakedAmountCalculated { | |
158 | + | case i: Int => | |
159 | + | i | |
160 | + | case _ => | |
161 | + | 0 | |
162 | + | } | |
163 | + | } | |
164 | + | ||
165 | + | ||
166 | + | func getAssetInfo (assetId) = match assetId { | |
167 | + | case id: String|ByteVector => | |
168 | + | let $t039674139 = match id { | |
169 | + | case aId: ByteVector => | |
170 | + | $Tuple2(toBase58String(aId), aId) | |
171 | + | case aId: String => | |
172 | + | $Tuple2(aId, fromBase58String(aId)) | |
173 | + | case _ => | |
174 | + | throw("Match error") | |
175 | + | } | |
176 | + | let stringId = $t039674139._1 | |
177 | + | let bytesId = $t039674139._2 | |
178 | + | let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist")) | |
179 | + | $Tuple3(stringId, info.name, info.decimals) | |
180 | + | case waves: Unit => | |
181 | + | $Tuple3("WAVES", "WAVES", 8) | |
182 | + | case _ => | |
183 | + | throw("Match error") | |
184 | + | } | |
185 | + | ||
186 | + | ||
187 | + | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
188 | + | ||
189 | + | ||
190 | + | func calculateFeeDiscount (userAddr) = { | |
191 | + | let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0) | |
192 | + | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
193 | + | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
194 | + | if (if ((swopAmount >= parseIntValue(discountValues[0]))) | |
195 | + | then (parseIntValue(discountValues[1]) > swopAmount) | |
196 | + | else false) | |
197 | + | then (feeScale6 - parseIntValue(discounts[0])) | |
198 | + | else if (if ((swopAmount >= parseIntValue(discountValues[1]))) | |
199 | + | then (parseIntValue(discountValues[2]) > swopAmount) | |
200 | + | else false) | |
201 | + | then (feeScale6 - parseIntValue(discounts[1])) | |
202 | + | else if (if ((swopAmount >= parseIntValue(discountValues[2]))) | |
203 | + | then (parseIntValue(discountValues[3]) > swopAmount) | |
204 | + | else false) | |
205 | + | then (feeScale6 - parseIntValue(discounts[2])) | |
206 | + | else if (if ((swopAmount >= parseIntValue(discountValues[3]))) | |
207 | + | then (parseIntValue(discountValues[4]) > swopAmount) | |
208 | + | else false) | |
209 | + | then (feeScale6 - parseIntValue(discounts[3])) | |
210 | + | else if ((swopAmount >= parseIntValue(discountValues[4]))) | |
211 | + | then (feeScale6 - parseIntValue(discounts[4])) | |
212 | + | else feeScale6 | |
213 | + | } | |
214 | + | ||
215 | + | ||
216 | + | func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGovernance) = { | |
217 | + | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
218 | + | let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6) | |
219 | + | let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScale6) | |
220 | + | if ((minAmountToReceive > amountWithFee)) | |
221 | + | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
222 | + | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
223 | + | } | |
224 | + | ||
225 | + | ||
226 | + | func calculateVirtGet (pmtAmount,balance,fee) = { | |
227 | + | let a = 1 | |
228 | + | let b = (((balance + fraction(balance, (feeScale6 - fee), feeScale6)) + fraction(pmtAmount, (feeScale6 - fee), feeScale6)) - pmtAmount) | |
229 | + | let c = (-(toBigInt(balance)) * toBigInt(pmtAmount)) | |
230 | + | let D = ((toBigInt(b) * toBigInt(b)) - ((toBigInt(4) * toBigInt(a)) * c)) | |
231 | + | (toInt(((-(toBigInt(b)) + pow(D, 0, toBigInt(5), 1, 0, DOWN)) / toBigInt(2))) * a) | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | func parsePaymentAsset (assetId) = if ((assetId == base58'')) | |
236 | + | then unit | |
237 | + | else assetId | |
238 | + | ||
239 | + | ||
240 | + | func suspendSuspicious (accountBalanceA,accountBalanceB,balanceA,balanceB,assetIdA,assetIdB) = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceA)) + " ") + assetIdA) + ", ") + toString(accountBalanceB)) + " ") + assetIdB) + ". State: ") + toString(balanceA)) + " ") + assetIdA) + ", ") + toString(balanceB)) + " ") + assetIdB)) | |
241 | + | ||
242 | + | ||
243 | + | func isActive () = if (active) | |
244 | + | then unit | |
245 | + | else throw("DApp is inactive at this moment") | |
246 | + | ||
247 | + | ||
248 | + | func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress)))) | |
249 | + | then unit | |
250 | + | else throw("DApp is not registered pool") | |
251 | + | ||
252 | + | ||
253 | + | func getPoolBalances (pool,assetIdA,assetIdB) = { | |
254 | + | let balanceA = getIntegerValue(pool, kBalanceA) | |
255 | + | let balanceB = getIntegerValue(pool, kBalanceB) | |
256 | + | let stakedAmountA = stakedAmount(assetIdA, pool) | |
257 | + | let stakedAmountB = stakedAmount(assetIdB, pool) | |
258 | + | let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA) | |
259 | + | let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB) | |
260 | + | let shareSupply = getIntegerValue(pool, kShareAssetSupply) | |
261 | + | $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply) | |
262 | + | } | |
263 | + | ||
264 | + | ||
265 | + | func getPoolAssets (pool) = { | |
266 | + | let strAssetIdA = getStringValue(pool, kAssetIdA) | |
267 | + | let strAssetIdB = getStringValue(pool, kAssetIdB) | |
268 | + | let assetIdA = if ((strAssetIdA == "WAVES")) | |
269 | + | then unit | |
270 | + | else fromBase58String(strAssetIdA) | |
271 | + | let assetIdB = if ((strAssetIdB == "WAVES")) | |
272 | + | then unit | |
273 | + | else fromBase58String(strAssetIdB) | |
274 | + | let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId)) | |
275 | + | $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId) | |
276 | + | } | |
277 | + | ||
278 | + | ||
279 | + | func getFeeParams (pool,caller) = { | |
280 | + | let feeDiscount = calculateFeeDiscount(caller) | |
281 | + | let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING) | |
282 | + | let govFee = fraction(fraction(fee, 40, 100), feeDiscount, feeScale6, CEILING) | |
283 | + | $Tuple2(fee, govFee) | |
284 | + | } | |
285 | + | ||
286 | + | ||
287 | + | @Callable(i) | |
288 | + | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
289 | + | let caller = Address(callerBytes) | |
290 | + | let $t088518929 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
291 | + | let pmtAmountA = $t088518929._1 | |
292 | + | let pmtAssetIdA = $t088518929._2 | |
293 | + | let $t089349012 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
294 | + | let pmtAmountB = $t089349012._1 | |
295 | + | let pmtAssetIdB = $t089349012._2 | |
296 | + | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
297 | + | then throw("Only admin can call this function") | |
298 | + | else if (isDefined(getBoolean(caller, kActive))) | |
299 | + | then throw("DApp is already active") | |
300 | + | else if ((pmtAssetIdA == pmtAssetIdB)) | |
301 | + | then throw("Assets must be different") | |
302 | + | else { | |
303 | + | let $t093829459 = getAssetInfo(pmtAssetIdA) | |
304 | + | let pmtStrAssetIdA = $t093829459._1 | |
305 | + | let pmtAssetNameA = $t093829459._2 | |
306 | + | let pmtDecimalsA = $t093829459._3 | |
307 | + | let $t094689545 = getAssetInfo(pmtAssetIdB) | |
308 | + | let pmtStrAssetIdB = $t094689545._1 | |
309 | + | let pmtAssetNameB = $t094689545._2 | |
310 | + | let pmtDecimalsB = $t094689545._3 | |
311 | + | let firstHarvest = (args[0] == "true") | |
312 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
313 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
314 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
315 | + | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
316 | + | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
317 | + | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
318 | + | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
319 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
320 | + | let shareIssueId = calculateAssetId(shareIssue) | |
321 | + | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
322 | + | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
323 | + | else 0 | |
324 | + | if ((stake1 == stake1)) | |
325 | + | then { | |
326 | + | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
327 | + | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
328 | + | else 0 | |
329 | + | if ((stake2 == stake2)) | |
330 | + | then { | |
331 | + | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(caller, shareInitialSupply, shareIssueId)] | |
332 | + | if (firstHarvest) | |
333 | + | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
334 | + | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
335 | + | } | |
336 | + | else throw("Strict value is not equal to itself.") | |
337 | + | } | |
338 | + | else throw("Strict value is not equal to itself.") | |
339 | + | } | |
340 | + | } | |
341 | + | ||
342 | + | ||
343 | + | ||
344 | + | @Callable(i) | |
345 | + | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
346 | + | let caller = Address(callerBytes) | |
347 | + | let $t01179011990 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
348 | + | let amtAssetA = $t01179011990._1 | |
349 | + | let amtAssetB = $t01179011990._2 | |
350 | + | let assetIdAStr = $t01179011990._3 | |
351 | + | let assetIdBStr = $t01179011990._4 | |
352 | + | let firstHarvest = $t01179011990._5 | |
353 | + | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
354 | + | then throw("Only admin can call this function") | |
355 | + | else if (isDefined(getBoolean(caller, kActive))) | |
356 | + | then throw("DApp is already active") | |
357 | + | else if ((assetIdAStr == assetIdBStr)) | |
358 | + | then throw("Assets must be different") | |
359 | + | else { | |
360 | + | let $t01236012437 = getAssetInfo(assetIdAStr) | |
361 | + | let pmtStrAssetIdA = $t01236012437._1 | |
362 | + | let pmtAssetNameA = $t01236012437._2 | |
363 | + | let pmtDecimalsA = $t01236012437._3 | |
364 | + | let $t01244612523 = getAssetInfo(assetIdBStr) | |
365 | + | let pmtStrAssetIdB = $t01244612523._1 | |
366 | + | let pmtAssetNameB = $t01244612523._2 | |
367 | + | let pmtDecimalsB = $t01244612523._3 | |
368 | + | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
369 | + | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
370 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
371 | + | let shareInitialSupply = 0 | |
372 | + | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
373 | + | let shareIssueId = calculateAssetId(shareIssue) | |
374 | + | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceInitA, amtAssetA), IntegerEntry(kBalanceInitB, amtAssetB), IntegerEntry(kBalanceA, 0), IntegerEntry(kBalanceB, 0), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply)] | |
375 | + | if (firstHarvest) | |
376 | + | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
377 | + | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
378 | + | } | |
379 | + | } | |
380 | + | ||
381 | + | ||
382 | + | ||
383 | + | @Callable(i) | |
384 | + | func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
385 | + | then throw("Only admin can call this function") | |
386 | + | else { | |
387 | + | let shareLimit = parseIntValue(args[0]) | |
388 | + | $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil)) | |
389 | + | })) | |
390 | + | ||
391 | + | ||
392 | + | ||
393 | + | @Callable(i) | |
394 | + | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
395 | + | let caller = Address(callerBytes) | |
396 | + | let $t01484814924 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
397 | + | let pmtAmount = $t01484814924._1 | |
398 | + | let pmtAssetId = $t01484814924._2 | |
399 | + | let minAmountToReceive = parseIntValue(args[0]) | |
400 | + | let $t01499715073 = getPoolAssets(i.caller) | |
401 | + | let strAssetIdA = $t01499715073._1 | |
402 | + | let strAssetIdB = $t01499715073._2 | |
403 | + | let assetIdA = $t01499715073._3 | |
404 | + | let assetIdB = $t01499715073._4 | |
405 | + | let $t01508615192 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
406 | + | let balanceA = $t01508615192._1 | |
407 | + | let balanceB = $t01508615192._2 | |
408 | + | let accountBalanceA = $t01508615192._3 | |
409 | + | let accountBalanceB = $t01508615192._4 | |
410 | + | if (if ((balanceA == 0)) | |
411 | + | then true | |
412 | + | else (balanceB == 0)) | |
413 | + | then throw("Can't exchange with zero balance") | |
414 | + | else if ((0 >= minAmountToReceive)) | |
415 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
416 | + | else if ((size(pAmounts) != 1)) | |
417 | + | then throw("One attached payment expected") | |
418 | + | else if (!(containsElement([assetIdA, assetIdB], pmtAssetId))) | |
419 | + | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
420 | + | else if (if ((balanceA > accountBalanceA)) | |
421 | + | then true | |
422 | + | else (balanceB > accountBalanceB)) | |
423 | + | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
424 | + | else { | |
425 | + | let $t01607716135 = getFeeParams(i.caller, i.originCaller) | |
426 | + | let fee = $t01607716135._1 | |
427 | + | let govFee = $t01607716135._2 | |
428 | + | let $t01615216489 = if ((pmtAssetId == assetIdA)) | |
429 | + | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee) | |
430 | + | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee) | |
431 | + | let amountWithoutFee = $t01615216489._1 | |
432 | + | let amountWithFee = $t01615216489._2 | |
433 | + | let governanceReward = $t01615216489._3 | |
434 | + | let $t01650716832 = if ((pmtAssetId == assetIdA)) | |
435 | + | then $Tuple3((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward), assetIdB) | |
436 | + | else $Tuple3(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount), assetIdA) | |
437 | + | let newBalanceA = $t01650716832._1 | |
438 | + | let newBalanceB = $t01650716832._2 | |
439 | + | let assetIdSend = $t01650716832._3 | |
440 | + | let $t01685017100 = if ((pmtAssetId == assetIdA)) | |
441 | + | then $Tuple2(pmtAmount, (amountWithFee + governanceReward)) | |
442 | + | else $Tuple2((amountWithFee + governanceReward), pmtAmount) | |
443 | + | let stakeAmountA = $t01685017100._1 | |
444 | + | let stakeAmountB = $t01685017100._2 | |
445 | + | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
446 | + | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
447 | + | else 0 | |
448 | + | if ((stake1 == stake1)) | |
449 | + | then { | |
450 | + | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
451 | + | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil) | |
452 | + | else 0 | |
453 | + | if ((stake2 == stake2)) | |
454 | + | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend)], [amountWithFee, assetIdSend])) | |
455 | + | else throw("Strict value is not equal to itself.") | |
456 | + | } | |
457 | + | else throw("Strict value is not equal to itself.") | |
458 | + | } | |
459 | + | })) | |
460 | + | ||
461 | + | ||
462 | + | ||
463 | + | @Callable(i) | |
464 | + | func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
465 | + | let caller = Address(callerBytes) | |
466 | + | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
467 | + | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
468 | + | let stakeFarming = (args[0] == "true") | |
469 | + | let $t01831218402 = getPoolAssets(i.caller) | |
470 | + | let strAssetIdA = $t01831218402._1 | |
471 | + | let strAssetIdB = $t01831218402._2 | |
472 | + | let assetIdA = $t01831218402._3 | |
473 | + | let assetIdB = $t01831218402._4 | |
474 | + | let shareAssetId = $t01831218402._5 | |
475 | + | let $t01841518539 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
476 | + | let balanceA = $t01841518539._1 | |
477 | + | let balanceB = $t01841518539._2 | |
478 | + | let accountBalanceA = $t01841518539._3 | |
479 | + | let accountBalanceB = $t01841518539._4 | |
480 | + | let shareAssetSupply = $t01841518539._5 | |
481 | + | if ((size(pAmounts) != 2)) | |
482 | + | then throw("Two attached assets expected") | |
483 | + | else if (if ((pmtAssetIdA != assetIdA)) | |
484 | + | then true | |
485 | + | else (pmtAssetIdB != assetIdB)) | |
486 | + | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
487 | + | else if (if ((balanceA > accountBalanceA)) | |
488 | + | then true | |
489 | + | else (balanceB > accountBalanceB)) | |
490 | + | then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
491 | + | else { | |
492 | + | let $t01921119288 = getAssetInfo(pmtAssetIdA) | |
493 | + | let pmtStrAssetIdA = $t01921119288._1 | |
494 | + | let pmtAssetNameA = $t01921119288._2 | |
495 | + | let pmtDecimalsA = $t01921119288._3 | |
496 | + | let $t01930519382 = getAssetInfo(pmtAssetIdB) | |
497 | + | let pmtStrAssetIdB = $t01930519382._1 | |
498 | + | let pmtAssetNameB = $t01930519382._2 | |
499 | + | let pmtDecimalsB = $t01930519382._3 | |
500 | + | let initial = ((balanceA + balanceB) == 0) | |
501 | + | let $t01945720300 = if (initial) | |
502 | + | then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, 1) | |
503 | + | else { | |
504 | + | let ratioShareTokensInA = fraction(scale8, pAmounts[0], balanceA) | |
505 | + | let ratioShareTokensInB = fraction(scale8, pAmounts[1], balanceB) | |
506 | + | if ((ratioShareTokensInB > ratioShareTokensInA)) | |
507 | + | then { | |
508 | + | let pmt = fraction(pAmounts[0], balanceB, balanceA) | |
509 | + | $Tuple5(pAmounts[0], pmt, (pAmounts[1] - pmt), pmtAssetIdB, ratioShareTokensInA) | |
510 | + | } | |
511 | + | else { | |
512 | + | let pmt = fraction(pAmounts[1], balanceA, balanceB) | |
513 | + | $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB) | |
514 | + | } | |
515 | + | } | |
516 | + | let pmtAmountA = $t01945720300._1 | |
517 | + | let pmtAmountB = $t01945720300._2 | |
518 | + | let change = $t01945720300._3 | |
519 | + | let changeAssetId = $t01945720300._4 | |
520 | + | let shareTokenRatio = $t01945720300._5 | |
521 | + | let shareTokenToPayAmount = if (initial) | |
522 | + | then { | |
523 | + | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
524 | + | fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
525 | + | } | |
526 | + | else fraction(shareTokenRatio, shareAssetSupply, scale8) | |
527 | + | if ((shareTokenToPayAmount == 0)) | |
528 | + | then throw("Too small amount to replenish") | |
529 | + | else if ((0 > change)) | |
530 | + | then throw("Change < 0") | |
531 | + | else { | |
532 | + | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
533 | + | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
534 | + | else 0 | |
535 | + | if ((stake1 == stake1)) | |
536 | + | then { | |
537 | + | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
538 | + | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
539 | + | else 0 | |
540 | + | if ((stake2 == stake2)) | |
541 | + | then { | |
542 | + | let shareTokenST = if (stakeFarming) | |
543 | + | then { | |
544 | + | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
545 | + | if ((reissue == reissue)) | |
546 | + | then { | |
547 | + | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller)], [AttachedPayment(shareAssetId, shareTokenToPayAmount)]) | |
548 | + | if ((stake3 == stake3)) | |
549 | + | then nil | |
550 | + | else throw("Strict value is not equal to itself.") | |
551 | + | } | |
552 | + | else throw("Strict value is not equal to itself.") | |
553 | + | } | |
554 | + | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
555 | + | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil)) | |
556 | + | } | |
557 | + | else throw("Strict value is not equal to itself.") | |
558 | + | } | |
559 | + | else throw("Strict value is not equal to itself.") | |
560 | + | } | |
561 | + | } | |
562 | + | })) | |
563 | + | ||
564 | + | ||
565 | + | ||
566 | + | @Callable(i) | |
567 | + | func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
568 | + | let caller = Address(callerBytes) | |
569 | + | let pmtAssetId = parsePaymentAsset(pAssetIds[0]) | |
570 | + | let pmtAmount = pAmounts[0] | |
571 | + | let virtGetMinAmount = parseIntValue(args[0]) | |
572 | + | let stakeFarming = (args[1] == "true") | |
573 | + | let $t02285522945 = getPoolAssets(i.caller) | |
574 | + | let strAssetIdA = $t02285522945._1 | |
575 | + | let strAssetIdB = $t02285522945._2 | |
576 | + | let assetIdA = $t02285522945._3 | |
577 | + | let assetIdB = $t02285522945._4 | |
578 | + | let shareAssetId = $t02285522945._5 | |
579 | + | let $t02295823082 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
580 | + | let balanceA = $t02295823082._1 | |
581 | + | let balanceB = $t02295823082._2 | |
582 | + | let accountBalanceA = $t02295823082._3 | |
583 | + | let accountBalanceB = $t02295823082._4 | |
584 | + | let shareAssetSupply = $t02295823082._5 | |
585 | + | let initial = ((balanceA + balanceB) == 0) | |
586 | + | if ((size(pAmounts) != 1)) | |
587 | + | then throw("One attached assets expected") | |
588 | + | else if (if ((pmtAssetId != assetIdA)) | |
589 | + | then (pmtAssetId != assetIdB) | |
590 | + | else false) | |
591 | + | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
592 | + | else if (initial) | |
593 | + | then throw("For initial exchanger you need to use two tokens") | |
594 | + | else if (if ((balanceA > accountBalanceA)) | |
595 | + | then true | |
596 | + | else (balanceB > accountBalanceB)) | |
597 | + | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
598 | + | else { | |
599 | + | let $t02383623894 = getFeeParams(i.caller, i.originCaller) | |
600 | + | let fee = $t02383623894._1 | |
601 | + | let govFee = $t02383623894._2 | |
602 | + | let $t02391125797 = if ((pmtAssetId == assetIdA)) | |
603 | + | then { | |
604 | + | let virtPayAmount = calculateVirtGet(pmtAmount, balanceA, fee) | |
605 | + | let $t02419024327 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee) | |
606 | + | let amountWithoutFee = $t02419024327._1 | |
607 | + | let amountWithFee = $t02419024327._2 | |
608 | + | let governanceReward = $t02419024327._3 | |
609 | + | let newBalanceA = (balanceA + pmtAmount) | |
610 | + | let newBalanceB = (balanceB - governanceReward) | |
611 | + | let ratioShareTokensInA = fraction((pmtAmount - virtPayAmount), scale8, newBalanceA) | |
612 | + | let ratioShareTokensInB = fraction(amountWithFee, scale8, newBalanceB) | |
613 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
614 | + | $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdB, strAssetIdB, strAssetIdA) | |
615 | + | } | |
616 | + | else { | |
617 | + | let virtPayAmount = calculateVirtGet(pmtAmount, balanceB, fee) | |
618 | + | let $t02506225199 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee) | |
619 | + | let amountWithoutFee = $t02506225199._1 | |
620 | + | let amountWithFee = $t02506225199._2 | |
621 | + | let governanceReward = $t02506225199._3 | |
622 | + | let newBalanceA = (balanceA - governanceReward) | |
623 | + | let newBalanceB = (balanceB + pmtAmount) | |
624 | + | let ratioShareTokensInA = fraction(amountWithFee, scale8, newBalanceA) | |
625 | + | let ratioShareTokensInB = fraction((pmtAmount - virtPayAmount), scale8, newBalanceB) | |
626 | + | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
627 | + | $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB) | |
628 | + | } | |
629 | + | let newBalanceA = $t02391125797._1 | |
630 | + | let newBalanceB = $t02391125797._2 | |
631 | + | let shareTokenToPayAmount = $t02391125797._3 | |
632 | + | let govReward = $t02391125797._4 | |
633 | + | let govRewardAsset = $t02391125797._5 | |
634 | + | let govRewardAssetStr = $t02391125797._6 | |
635 | + | let pmtAssetIdStr = $t02391125797._7 | |
636 | + | if ((shareTokenToPayAmount == 0)) | |
637 | + | then throw("Too small amount to replenish") | |
638 | + | else { | |
639 | + | let stake1 = if (contains(stakingAssets, pmtAssetIdStr)) | |
640 | + | then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil) | |
641 | + | else 0 | |
642 | + | if ((stake1 == stake1)) | |
643 | + | then { | |
644 | + | let stake2 = if (contains(stakingAssets, govRewardAssetStr)) | |
645 | + | then invoke(i.caller, "stakeUnstake", [false, govReward, govRewardAssetStr], nil) | |
646 | + | else 0 | |
647 | + | if ((stake2 == stake2)) | |
648 | + | then { | |
649 | + | let shareTokenST = if (stakeFarming) | |
650 | + | then { | |
651 | + | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
652 | + | if ((reissue == reissue)) | |
653 | + | then { | |
654 | + | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller)], [AttachedPayment(shareAssetId, shareTokenToPayAmount)]) | |
655 | + | if ((stake3 == stake3)) | |
656 | + | then nil | |
657 | + | else throw("Strict value is not equal to itself.") | |
658 | + | } | |
659 | + | else throw("Strict value is not equal to itself.") | |
660 | + | } | |
661 | + | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
662 | + | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset)] ++ shareTokenST), nil)) | |
663 | + | } | |
664 | + | else throw("Strict value is not equal to itself.") | |
665 | + | } | |
666 | + | else throw("Strict value is not equal to itself.") | |
667 | + | } | |
668 | + | } | |
669 | + | })) | |
670 | + | ||
671 | + | ||
672 | + | ||
673 | + | @Callable(i) | |
674 | + | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
675 | + | let caller = Address(callerBytes) | |
676 | + | let $t02760927699 = getPoolAssets(i.caller) | |
677 | + | let strAssetIdA = $t02760927699._1 | |
678 | + | let strAssetIdB = $t02760927699._2 | |
679 | + | let assetIdA = $t02760927699._3 | |
680 | + | let assetIdB = $t02760927699._4 | |
681 | + | let shareAssetId = $t02760927699._5 | |
682 | + | let $t02771227836 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
683 | + | let balanceA = $t02771227836._1 | |
684 | + | let balanceB = $t02771227836._2 | |
685 | + | let accountBalanceA = $t02771227836._3 | |
686 | + | let accountBalanceB = $t02771227836._4 | |
687 | + | let shareAssetSupply = $t02771227836._5 | |
688 | + | let $t02784928257 = if ((size(pAmounts) == 1)) | |
689 | + | then { | |
690 | + | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
691 | + | if ((pAsset != shareAssetId)) | |
692 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
693 | + | else $Tuple2(pAmounts[0], pAsset) | |
694 | + | } | |
695 | + | else $Tuple2(0, shareAssetId) | |
696 | + | let pmtAmount = $t02784928257._1 | |
697 | + | let pmtAssetId = $t02784928257._2 | |
698 | + | if ((size(pAmounts) > 1)) | |
699 | + | then throw("One attached payment expected") | |
700 | + | else if (if ((balanceA > accountBalanceA)) | |
701 | + | then true | |
702 | + | else (balanceB > accountBalanceB)) | |
703 | + | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
704 | + | else { | |
705 | + | let unlockAmount = parseIntValue(valueOrElse(args[0], "0")) | |
706 | + | let unlock = if ((unlockAmount > 0)) | |
707 | + | then invoke(farmingAddress, "withdrawShareTokens", [toString(i.caller), unlockAmount], nil) | |
708 | + | else 0 | |
709 | + | if ((unlock == unlock)) | |
710 | + | then { | |
711 | + | let withdrawAmount = (pmtAmount + unlockAmount) | |
712 | + | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
713 | + | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
714 | + | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
715 | + | then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
716 | + | else 0 | |
717 | + | if ((stake1 == stake1)) | |
718 | + | then { | |
719 | + | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
720 | + | then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
721 | + | else 0 | |
722 | + | if ((stake2 == stake2)) | |
723 | + | then $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2([IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(caller, amountToPayA, assetIdA), ScriptTransfer(caller, amountToPayB, assetIdB)], nil)) | |
724 | + | else throw("Strict value is not equal to itself.") | |
725 | + | } | |
726 | + | else throw("Strict value is not equal to itself.") | |
727 | + | } | |
728 | + | else throw("Strict value is not equal to itself.") | |
729 | + | } | |
730 | + | })) | |
731 | + | ||
732 | + | ||
733 | + | ||
734 | + | @Callable(i) | |
735 | + | func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
736 | + | let caller = Address(callerBytes) | |
737 | + | let withdrawAsset = if ((args[0] == "")) | |
738 | + | then unit | |
739 | + | else fromBase58String(args[0]) | |
740 | + | let $t03046530555 = getPoolAssets(i.caller) | |
741 | + | let strAssetIdA = $t03046530555._1 | |
742 | + | let strAssetIdB = $t03046530555._2 | |
743 | + | let assetIdA = $t03046530555._3 | |
744 | + | let assetIdB = $t03046530555._4 | |
745 | + | let shareAssetId = $t03046530555._5 | |
746 | + | let $t03056830692 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
747 | + | let balanceA = $t03056830692._1 | |
748 | + | let balanceB = $t03056830692._2 | |
749 | + | let accountBalanceA = $t03056830692._3 | |
750 | + | let accountBalanceB = $t03056830692._4 | |
751 | + | let shareAssetSupply = $t03056830692._5 | |
752 | + | let $t03070531085 = if ((size(pAmounts) == 1)) | |
753 | + | then { | |
754 | + | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
755 | + | if ((pAsset != shareAssetId)) | |
756 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
757 | + | else $Tuple2(pAmounts[0], pAsset) | |
758 | + | } | |
759 | + | else $Tuple2(0, shareAssetId) | |
760 | + | let pmtAmount = $t03070531085._1 | |
761 | + | let pmtAssetId = $t03070531085._2 | |
762 | + | let virtMinToRecive = parseIntValue(args[1]) | |
763 | + | if ((size(pAmounts) != 1)) | |
764 | + | then throw("One attached payment expected") | |
765 | + | else if ((pmtAssetId != shareAssetId)) | |
766 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
767 | + | else if (!(containsElement([assetIdA, assetIdB], withdrawAsset))) | |
768 | + | then throw("Incorrect withdraw asset.") | |
769 | + | else if (if ((balanceA > accountBalanceA)) | |
770 | + | then true | |
771 | + | else (balanceB > accountBalanceB)) | |
772 | + | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
773 | + | else { | |
774 | + | let unlockAmount = parseIntValue(valueOrElse(args[2], "0")) | |
775 | + | let unlock = if ((unlockAmount > 0)) | |
776 | + | then invoke(farmingAddress, "withdrawShareTokens", [toString(i.caller), unlockAmount], nil) | |
777 | + | else 0 | |
778 | + | if ((unlock == unlock)) | |
779 | + | then { | |
780 | + | let withdrawAmount = (pmtAmount + unlockAmount) | |
781 | + | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
782 | + | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
783 | + | let $t03233032388 = getFeeParams(i.caller, i.originCaller) | |
784 | + | let fee = $t03233032388._1 | |
785 | + | let govFee = $t03233032388._2 | |
786 | + | let $t03240532745 = if ((withdrawAsset == assetIdA)) | |
787 | + | then calculateFees(amountToPayB, virtMinToRecive, balanceB, balanceA, fee, govFee) | |
788 | + | else calculateFees(amountToPayA, virtMinToRecive, balanceA, balanceB, fee, govFee) | |
789 | + | let amountWithoutFee = $t03240532745._1 | |
790 | + | let amountWithFee = $t03240532745._2 | |
791 | + | let governanceReward = $t03240532745._3 | |
792 | + | let $t03276234108 = if ((withdrawAsset == assetIdA)) | |
793 | + | then { | |
794 | + | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
795 | + | then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil) | |
796 | + | else 0 | |
797 | + | if ((unstake == unstake)) | |
798 | + | then $Tuple4((((balanceA - amountToPayA) - amountWithFee) - governanceReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)]) | |
799 | + | else throw("Strict value is not equal to itself.") | |
800 | + | } | |
801 | + | else { | |
802 | + | let unstake = if (contains(stakingAssets, strAssetIdB)) | |
803 | + | then invoke(i.caller, "stakeUnstake", [false, ((amountToPayB + amountWithFee) + governanceReward), strAssetIdB], nil) | |
804 | + | else 0 | |
805 | + | if ((unstake == unstake)) | |
806 | + | then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
807 | + | else throw("Strict value is not equal to itself.") | |
808 | + | } | |
809 | + | let newBalanceA = $t03276234108._1 | |
810 | + | let newBalanceB = $t03276234108._2 | |
811 | + | let govRewardAssetId = $t03276234108._3 | |
812 | + | let userTransfer = $t03276234108._4 | |
813 | + | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId)] ++ userTransfer), nil)) | |
814 | + | } | |
815 | + | else throw("Strict value is not equal to itself.") | |
816 | + | } | |
817 | + | })) | |
818 | + | ||
819 | + | ||
820 | + | ||
821 | + | @Callable(i) | |
822 | + | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
823 | + | let $t03483334909 = getPoolAssets(i.caller) | |
824 | + | let strAssetIdA = $t03483334909._1 | |
825 | + | let strAssetIdB = $t03483334909._2 | |
826 | + | let assetIdA = $t03483334909._3 | |
827 | + | let assetIdB = $t03483334909._4 | |
828 | + | let $t03492235028 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
829 | + | let balanceA = $t03492235028._1 | |
830 | + | let balanceB = $t03492235028._2 | |
831 | + | let accountBalanceA = $t03492235028._3 | |
832 | + | let accountBalanceB = $t03492235028._4 | |
833 | + | let amountEnrollA = (accountBalanceA - balanceA) | |
834 | + | let amountEnrollB = (accountBalanceB - balanceB) | |
835 | + | if ((moneyBoxAddress != i.originCaller)) | |
836 | + | then throw("Only the wallet can call this function") | |
837 | + | else if (if ((0 > amountEnrollA)) | |
838 | + | then true | |
839 | + | else (0 > amountEnrollB)) | |
840 | + | then suspend("Enroll amount negative") | |
841 | + | else if (if ((amountEnrollA == 0)) | |
842 | + | then (amountEnrollB == 0) | |
843 | + | else false) | |
844 | + | then throw("No money to take") | |
845 | + | else { | |
846 | + | let stake1 = if (if (contains(stakingAssets, strAssetIdA)) | |
847 | + | then (amountEnrollA > 0) | |
848 | + | else false) | |
849 | + | then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
850 | + | else 0 | |
851 | + | if ((stake1 == stake1)) | |
852 | + | then { | |
853 | + | let stake2 = if (if (contains(stakingAssets, strAssetIdB)) | |
854 | + | then (amountEnrollB > 0) | |
855 | + | else false) | |
856 | + | then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
857 | + | else 0 | |
858 | + | if ((stake2 == stake2)) | |
859 | + | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil)) | |
860 | + | else throw("Strict value is not equal to itself.") | |
861 | + | } | |
862 | + | else throw("Strict value is not equal to itself.") | |
863 | + | } | |
864 | + | })) | |
865 | + | ||
866 | + | ||
867 | + | @Verifier(tx) | |
868 | + | func verify () = { | |
869 | + | let multiSignedByAdmins = { | |
870 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
871 | + | then 1 | |
872 | + | else 0 | |
873 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
874 | + | then 1 | |
875 | + | else 0 | |
876 | + | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
877 | + | then 1 | |
878 | + | else 0 | |
879 | + | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
880 | + | } | |
881 | + | multiSignedByAdmins | |
882 | + | } | |
883 | + |
github/deemru/w8io/026f985 46.41 ms ◑