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