tx · F9eXFKYMaCAQo7C2KukEhkZtdejke1yvGJc2Cx1fNFcB 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5: -0.03800000 Waves 2023.02.07 13:36 [2439071] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves
{ "type": 13, "id": "F9eXFKYMaCAQo7C2KukEhkZtdejke1yvGJc2Cx1fNFcB", "fee": 3800000, "feeAssetId": null, "timestamp": 1675766166560, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "5CAc9Kj8QrxQt2YpwMky4Us348xoyDGq3cADFs63xwuLQfV7FwLarfLTN1XpUD4edJsjPmFQepEprkqHpV7Dk3oY", "25QBFf8TfKDuZ4JEaNQiNuYRLFWw8CNNX854bCz38f4S9dEJFmECXF9HJ4YK6sPyxscfYGbdr7FfPK1AQi7MJ41q" ], "script": "base64:BgJKCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJOAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0RlcHJlY2F0ZWQCC2RlcHJlY2F0ZWRfAAlrQXNzZXRJZEECCkFfYXNzZXRfaWQACWtBc3NldElkQgIKQl9hc3NldF9pZAAJa0JhbGFuY2VBAg9BX2Fzc2V0X2JhbGFuY2UACWtCYWxhbmNlQgIPQl9hc3NldF9iYWxhbmNlAA1rQmFsYW5jZUluaXRBAgxBX2Fzc2V0X2luaXQADWtCYWxhbmNlSW5pdEICDEJfYXNzZXRfaW5pdAANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U3VwcGx5AhJzaGFyZV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WwAAAMJAAACBQZzdGFrZTIFBnN0YWtlMgkAlAoCBQNuaWwJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJa0JhbGFuY2VBCQBkAgUIYmFsYW5jZUEFDWFtb3VudEVucm9sbEEJAMwIAgkBDEludGVnZXJFbnRyeQIFCWtCYWxhbmNlQgkAZAIFCGJhbGFuY2VCBQ1hbW91bnRFbnJvbGxCBQNuaWwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEE211bHRpU2lnbmVkQnlBZG1pbnMEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgUTbXVsdGlTaWduZWRCeUFkbWluc+hU+uA=", "height": 2439071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hf4tnz5S7paMm127Q3ZbWyVjYC9npnCsdaPb8mfSPDMg Next: 3Es2KFXHrZroowb9sKDfmhFq5M3hXCGBRDMYKX4h8x7H Full:
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 kDeprecated = "deprecated_" | |
11 | 11 | ||
12 | 12 | let kAssetIdA = "A_asset_id" | |
13 | 13 | ||
14 | 14 | let kAssetIdB = "B_asset_id" | |
15 | 15 | ||
16 | 16 | let kBalanceA = "A_asset_balance" | |
17 | 17 | ||
18 | 18 | let kBalanceB = "B_asset_balance" | |
19 | 19 | ||
20 | 20 | let kBalanceInitA = "A_asset_init" | |
21 | 21 | ||
22 | 22 | let kBalanceInitB = "B_asset_init" | |
23 | 23 | ||
24 | 24 | let kShareAssetId = "share_asset_id" | |
25 | 25 | ||
26 | 26 | let kShareAssetSupply = "share_asset_supply" | |
27 | 27 | ||
28 | 28 | let kFee = "commission" | |
29 | 29 | ||
30 | 30 | let kCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let kFirstHarvest = "first_harvest" | |
33 | 33 | ||
34 | 34 | let kFirstHarvestHeight = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let kShareLimit = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let kBasePeriod = "base_period" | |
39 | 39 | ||
40 | 40 | let kPeriodLength = "period_length" | |
41 | 41 | ||
42 | 42 | let kStartHeight = "start_height" | |
43 | 43 | ||
44 | 44 | let kUSDNAddress = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | 46 | let kEURNAddress = "staking_eurn_address" | |
47 | 47 | ||
48 | 48 | let kLeasingAmount = "leasing_amount" | |
49 | 49 | ||
50 | 50 | let kUSDNAssetId = "usdn_asset_id" | |
51 | 51 | ||
52 | 52 | let kEURNAssetId = "eurn_asset_id" | |
53 | 53 | ||
54 | 54 | let kStakingAssets = "staking_assets" | |
55 | 55 | ||
56 | 56 | let kOracleActive = "active_all_contracts" | |
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 | 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 = getBooleanValue(oracle, kOracleActive) | |
129 | 129 | ||
130 | 130 | let feeScale6 = 1000000 | |
131 | 131 | ||
132 | 132 | let scale8 = 100000000 | |
133 | 133 | ||
134 | 134 | let scale16 = toBigInt(10000000000000000) | |
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 $t039714143 = 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 = $t039714143._1 | |
179 | 179 | let bytesId = $t039714143._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)), swopAmount) | |
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 calculateVirtPay (pmtAmount,balance,fee) = { | |
230 | 230 | let F = (feeScale6 - fee) | |
231 | 231 | let k = fraction(fee, 60, 100) | |
232 | 232 | let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6))) | |
233 | 233 | let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6))) | |
234 | 234 | let c = (-(toBigInt(balance)) * toBigInt(pmtAmount)) | |
235 | 235 | let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8))) | |
236 | 236 | toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a)))) | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func parsePaymentAsset (assetId) = if ((assetId == base58'')) | |
241 | 241 | then unit | |
242 | 242 | else assetId | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | 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)) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func isActive () = if (active) | |
249 | 249 | then unit | |
250 | 250 | else throw("DApp is inactive at this moment") | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress)))) | |
254 | 254 | then unit | |
255 | 255 | else throw("DApp is not registered pool") | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false))) | |
259 | 259 | then unit | |
260 | 260 | else throw("Pool is deprecated. Only withdraw action allowed.") | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func getPoolBalances (pool,assetIdA,assetIdB) = { | |
264 | 264 | let balanceA = getIntegerValue(pool, kBalanceA) | |
265 | 265 | let balanceB = getIntegerValue(pool, kBalanceB) | |
266 | 266 | let stakedAmountA = stakedAmount(assetIdA, pool) | |
267 | 267 | let stakedAmountB = stakedAmount(assetIdB, pool) | |
268 | 268 | let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA) | |
269 | 269 | let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB) | |
270 | 270 | let shareSupply = getIntegerValue(pool, kShareAssetSupply) | |
271 | 271 | $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply) | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func getPoolAssets (pool) = { | |
276 | 276 | let strAssetIdA = getStringValue(pool, kAssetIdA) | |
277 | 277 | let strAssetIdB = getStringValue(pool, kAssetIdB) | |
278 | 278 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
279 | 279 | then unit | |
280 | 280 | else fromBase58String(strAssetIdA) | |
281 | 281 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
282 | 282 | then unit | |
283 | 283 | else fromBase58String(strAssetIdB) | |
284 | 284 | let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId)) | |
285 | 285 | $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId) | |
286 | 286 | } | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func getFeeParams (pool,caller) = { | |
290 | 290 | let feeDiscount = calculateFeeDiscount(caller) | |
291 | 291 | let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING) | |
292 | 292 | let govFee = fraction(fee, 40, 100) | |
293 | 293 | $Tuple2(fee, govFee) | |
294 | 294 | } | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Callable(i) | |
298 | 298 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
299 | 299 | let caller = Address(callerBytes) | |
300 | 300 | let $t092919369 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
301 | 301 | let pmtAmountA = $t092919369._1 | |
302 | 302 | let pmtAssetIdA = $t092919369._2 | |
303 | 303 | let $t093749452 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
304 | 304 | let pmtAmountB = $t093749452._1 | |
305 | 305 | let pmtAssetIdB = $t093749452._2 | |
306 | 306 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
307 | 307 | then throw("Only admin can call this function") | |
308 | 308 | else if ((size(args) != 1)) | |
309 | 309 | then throw("Wrong args size") | |
310 | 310 | else if (isDefined(getBoolean(caller, kActive))) | |
311 | 311 | then throw("DApp is already active") | |
312 | 312 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
313 | 313 | then throw("Assets must be different") | |
314 | 314 | else { | |
315 | 315 | let $t098879964 = getAssetInfo(pmtAssetIdA) | |
316 | 316 | let pmtStrAssetIdA = $t098879964._1 | |
317 | 317 | let pmtAssetNameA = $t098879964._2 | |
318 | 318 | let pmtDecimalsA = $t098879964._3 | |
319 | 319 | let $t0997310050 = getAssetInfo(pmtAssetIdB) | |
320 | 320 | let pmtStrAssetIdB = $t0997310050._1 | |
321 | 321 | let pmtAssetNameB = $t0997310050._2 | |
322 | 322 | let pmtDecimalsB = $t0997310050._3 | |
323 | 323 | let firstHarvest = (args[0] == "true") | |
324 | 324 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
325 | 325 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
326 | 326 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
327 | 327 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
328 | 328 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
329 | 329 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
330 | 330 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
331 | 331 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
332 | 332 | let shareIssueId = calculateAssetId(shareIssue) | |
333 | 333 | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
334 | 334 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
335 | 335 | else 0 | |
336 | 336 | if ((stake1 == stake1)) | |
337 | 337 | then { | |
338 | 338 | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
339 | 339 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
340 | 340 | else 0 | |
341 | 341 | if ((stake2 == stake2)) | |
342 | 342 | then { | |
343 | 343 | 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)] | |
344 | 344 | if (firstHarvest) | |
345 | 345 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
346 | 346 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
347 | 347 | } | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | } | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | ||
356 | 356 | @Callable(i) | |
357 | 357 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
358 | 358 | let caller = Address(callerBytes) | |
359 | 359 | let $t01227112471 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
360 | 360 | let amtAssetA = $t01227112471._1 | |
361 | 361 | let amtAssetB = $t01227112471._2 | |
362 | 362 | let assetIdAStr = $t01227112471._3 | |
363 | 363 | let assetIdBStr = $t01227112471._4 | |
364 | 364 | let firstHarvest = $t01227112471._5 | |
365 | 365 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
366 | 366 | then throw("Only admin can call this function") | |
367 | 367 | else if ((size(args) != 5)) | |
368 | 368 | then throw("Wrong args size") | |
369 | 369 | else if (isDefined(getBoolean(caller, kActive))) | |
370 | 370 | then throw("DApp is already active") | |
371 | 371 | else if ((assetIdAStr == assetIdBStr)) | |
372 | 372 | then throw("Assets must be different") | |
373 | 373 | else { | |
374 | 374 | let $t01290612983 = getAssetInfo(assetIdAStr) | |
375 | 375 | let pmtStrAssetIdA = $t01290612983._1 | |
376 | 376 | let pmtAssetNameA = $t01290612983._2 | |
377 | 377 | let pmtDecimalsA = $t01290612983._3 | |
378 | 378 | let $t01299213069 = getAssetInfo(assetIdBStr) | |
379 | 379 | let pmtStrAssetIdB = $t01299213069._1 | |
380 | 380 | let pmtAssetNameB = $t01299213069._2 | |
381 | 381 | let pmtDecimalsB = $t01299213069._3 | |
382 | 382 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
383 | 383 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
384 | 384 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
385 | 385 | let shareInitialSupply = 0 | |
386 | 386 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
387 | 387 | let shareIssueId = calculateAssetId(shareIssue) | |
388 | 388 | 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)] | |
389 | 389 | if (firstHarvest) | |
390 | 390 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
391 | 391 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
392 | 392 | } | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(i) | |
398 | 398 | func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
399 | 399 | then throw("Only admin can call this function") | |
400 | 400 | else if ((size(args) != 1)) | |
401 | 401 | then throw("Wrong args size") | |
402 | 402 | else { | |
403 | 403 | let shareLimit = parseIntValue(args[0]) | |
404 | 404 | $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil)) | |
405 | 405 | })) | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | ||
409 | 409 | @Callable(i) | |
410 | 410 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
411 | 411 | let caller = Address(callerBytes) | |
412 | 412 | let $t01549515571 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
413 | 413 | let pmtAmount = $t01549515571._1 | |
414 | 414 | let pmtAssetId = $t01549515571._2 | |
415 | 415 | let minAmountToReceive = parseIntValue(args[0]) | |
416 | 416 | let $t01563615712 = getPoolAssets(i.caller) | |
417 | 417 | let strAssetIdA = $t01563615712._1 | |
418 | 418 | let strAssetIdB = $t01563615712._2 | |
419 | 419 | let assetIdA = $t01563615712._3 | |
420 | 420 | let assetIdB = $t01563615712._4 | |
421 | 421 | let $t01572115827 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
422 | 422 | let balanceA = $t01572115827._1 | |
423 | 423 | let balanceB = $t01572115827._2 | |
424 | 424 | let accountBalanceA = $t01572115827._3 | |
425 | 425 | let accountBalanceB = $t01572115827._4 | |
426 | 426 | if ((size(args) != 1)) | |
427 | 427 | then throw("Wrong args size") | |
428 | 428 | else if (if ((balanceA == 0)) | |
429 | 429 | then true | |
430 | 430 | else (balanceB == 0)) | |
431 | 431 | then throw("Can't exchange with zero balance") | |
432 | 432 | else if ((0 >= minAmountToReceive)) | |
433 | 433 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
434 | 434 | else if ((size(pAmounts) != 1)) | |
435 | 435 | then throw("One attached payment expected") | |
436 | 436 | else if (!(containsElement([assetIdA, assetIdB], pmtAssetId))) | |
437 | 437 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
438 | 438 | else if (if ((balanceA > accountBalanceA)) | |
439 | 439 | then true | |
440 | 440 | else (balanceB > accountBalanceB)) | |
441 | 441 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
442 | 442 | else { | |
443 | 443 | let $t01672716785 = getFeeParams(i.caller, i.originCaller) | |
444 | 444 | let fee = $t01672716785._1 | |
445 | 445 | let govFee = $t01672716785._2 | |
446 | 446 | let $t01679817119 = if ((pmtAssetId == assetIdA)) | |
447 | 447 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee) | |
448 | 448 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee) | |
449 | 449 | let amountWithoutFee = $t01679817119._1 | |
450 | 450 | let amountWithFee = $t01679817119._2 | |
451 | 451 | let governanceReward = $t01679817119._3 | |
452 | 452 | let $t01713317442 = if ((pmtAssetId == assetIdA)) | |
453 | 453 | then $Tuple3((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward), assetIdB) | |
454 | 454 | else $Tuple3(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount), assetIdA) | |
455 | 455 | let newBalanceA = $t01713317442._1 | |
456 | 456 | let newBalanceB = $t01713317442._2 | |
457 | 457 | let assetIdSend = $t01713317442._3 | |
458 | 458 | let $t01745617690 = if ((pmtAssetId == assetIdA)) | |
459 | 459 | then $Tuple2(pmtAmount, (amountWithFee + governanceReward)) | |
460 | 460 | else $Tuple2((amountWithFee + governanceReward), pmtAmount) | |
461 | 461 | let stakeAmountA = $t01745617690._1 | |
462 | 462 | let stakeAmountB = $t01745617690._2 | |
463 | 463 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
464 | 464 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
465 | 465 | else 0 | |
466 | 466 | if ((stake1 == stake1)) | |
467 | 467 | then { | |
468 | 468 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
469 | 469 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil) | |
470 | 470 | else 0 | |
471 | 471 | if ((stake2 == stake2)) | |
472 | 472 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend)], [amountWithFee, assetIdSend])) | |
473 | 473 | else throw("Strict value is not equal to itself.") | |
474 | 474 | } | |
475 | 475 | else throw("Strict value is not equal to itself.") | |
476 | 476 | } | |
477 | 477 | }))) | |
478 | 478 | ||
479 | 479 | ||
480 | 480 | ||
481 | 481 | @Callable(i) | |
482 | 482 | func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
483 | 483 | let caller = Address(callerBytes) | |
484 | 484 | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
485 | 485 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
486 | 486 | let stakeFarming = (args[0] == "true") | |
487 | 487 | let lockType = parseIntValue(args[1]) | |
488 | 488 | let $t01893219022 = getPoolAssets(i.caller) | |
489 | 489 | let strAssetIdA = $t01893219022._1 | |
490 | 490 | let strAssetIdB = $t01893219022._2 | |
491 | 491 | let assetIdA = $t01893219022._3 | |
492 | 492 | let assetIdB = $t01893219022._4 | |
493 | 493 | let shareAssetId = $t01893219022._5 | |
494 | 494 | let $t01903119155 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
495 | 495 | let balanceA = $t01903119155._1 | |
496 | 496 | let balanceB = $t01903119155._2 | |
497 | 497 | let accountBalanceA = $t01903119155._3 | |
498 | 498 | let accountBalanceB = $t01903119155._4 | |
499 | 499 | let shareAssetSupply = $t01903119155._5 | |
500 | 500 | if ((size(args) != 2)) | |
501 | 501 | then throw("Wrong args size") | |
502 | 502 | else if (if ((size(pAmounts) != 2)) | |
503 | 503 | then (size(pAmounts) != 3) | |
504 | 504 | else false) | |
505 | 505 | then throw("Two or three payments expected") | |
506 | 506 | else if (if ((pmtAssetIdA != assetIdA)) | |
507 | 507 | then true | |
508 | 508 | else (pmtAssetIdB != assetIdB)) | |
509 | 509 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
510 | 510 | else if (if ((balanceA > accountBalanceA)) | |
511 | 511 | then true | |
512 | 512 | else (balanceB > accountBalanceB)) | |
513 | 513 | then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3)) | |
514 | 514 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
515 | 515 | then unit | |
516 | 516 | else pAssetIds[2], pAmounts[2])] | |
517 | 517 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
518 | 518 | else { | |
519 | 519 | let $t02008820165 = getAssetInfo(pmtAssetIdA) | |
520 | 520 | let pmtStrAssetIdA = $t02008820165._1 | |
521 | 521 | let pmtAssetNameA = $t02008820165._2 | |
522 | 522 | let pmtDecimalsA = $t02008820165._3 | |
523 | 523 | let $t02017820255 = getAssetInfo(pmtAssetIdB) | |
524 | 524 | let pmtStrAssetIdB = $t02017820255._1 | |
525 | 525 | let pmtAssetNameB = $t02017820255._2 | |
526 | 526 | let pmtDecimalsB = $t02017820255._3 | |
527 | 527 | let initial = ((balanceA + balanceB) == 0) | |
528 | 528 | let $t02032221178 = if (initial) | |
529 | 529 | then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, toBigInt(1)) | |
530 | 530 | else { | |
531 | 531 | let ratioShareTokensInA = fraction(scale16, toBigInt(pAmounts[0]), toBigInt(balanceA)) | |
532 | 532 | let ratioShareTokensInB = fraction(scale16, toBigInt(pAmounts[1]), toBigInt(balanceB)) | |
533 | 533 | if ((ratioShareTokensInB > ratioShareTokensInA)) | |
534 | 534 | then { | |
535 | 535 | let pmt = fraction(pAmounts[0], balanceB, balanceA) | |
536 | 536 | $Tuple5(pAmounts[0], pmt, (pAmounts[1] - pmt), pmtAssetIdB, ratioShareTokensInA) | |
537 | 537 | } | |
538 | 538 | else { | |
539 | 539 | let pmt = fraction(pAmounts[1], balanceA, balanceB) | |
540 | 540 | $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB) | |
541 | 541 | } | |
542 | 542 | } | |
543 | 543 | let pmtAmountA = $t02032221178._1 | |
544 | 544 | let pmtAmountB = $t02032221178._2 | |
545 | 545 | let change = $t02032221178._3 | |
546 | 546 | let changeAssetId = $t02032221178._4 | |
547 | 547 | let shareTokenRatio = $t02032221178._5 | |
548 | 548 | let shareTokenToPayAmount = if (initial) | |
549 | 549 | then { | |
550 | 550 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
551 | 551 | fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
552 | 552 | } | |
553 | 553 | else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16)) | |
554 | 554 | if ((shareTokenToPayAmount == 0)) | |
555 | 555 | then throw("Too small amount to replenish") | |
556 | 556 | else if ((0 > change)) | |
557 | 557 | then throw("Change < 0") | |
558 | 558 | else { | |
559 | 559 | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
560 | 560 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
561 | 561 | else 0 | |
562 | 562 | if ((stake1 == stake1)) | |
563 | 563 | then { | |
564 | 564 | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
565 | 565 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
566 | 566 | else 0 | |
567 | 567 | if ((stake2 == stake2)) | |
568 | 568 | then { | |
569 | 569 | let shareTokenST = if (stakeFarming) | |
570 | 570 | then { | |
571 | 571 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3)) | |
572 | 572 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
573 | 573 | then unit | |
574 | 574 | else pAssetIds[2], pAmounts[2])] | |
575 | 575 | else nil)) | |
576 | 576 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
577 | 577 | if ((reissue == reissue)) | |
578 | 578 | then { | |
579 | 579 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
580 | 580 | if ((stake3 == stake3)) | |
581 | 581 | then nil | |
582 | 582 | else throw("Strict value is not equal to itself.") | |
583 | 583 | } | |
584 | 584 | else throw("Strict value is not equal to itself.") | |
585 | 585 | } | |
586 | 586 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
587 | 587 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil)) | |
588 | 588 | } | |
589 | 589 | else throw("Strict value is not equal to itself.") | |
590 | 590 | } | |
591 | 591 | else throw("Strict value is not equal to itself.") | |
592 | 592 | } | |
593 | 593 | } | |
594 | 594 | }))) | |
595 | 595 | ||
596 | 596 | ||
597 | 597 | ||
598 | 598 | @Callable(i) | |
599 | 599 | func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
600 | 600 | let caller = Address(callerBytes) | |
601 | 601 | let pmtAssetId = parsePaymentAsset(pAssetIds[0]) | |
602 | 602 | let pmtAmount = pAmounts[0] | |
603 | 603 | let virtGetMinAmount = parseIntValue(args[0]) | |
604 | 604 | let stakeFarming = (args[1] == "true") | |
605 | 605 | let lockType = parseIntValue(args[2]) | |
606 | 606 | let $t02393324023 = getPoolAssets(i.caller) | |
607 | 607 | let strAssetIdA = $t02393324023._1 | |
608 | 608 | let strAssetIdB = $t02393324023._2 | |
609 | 609 | let assetIdA = $t02393324023._3 | |
610 | 610 | let assetIdB = $t02393324023._4 | |
611 | 611 | let shareAssetId = $t02393324023._5 | |
612 | 612 | let $t02402824152 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
613 | 613 | let balanceA = $t02402824152._1 | |
614 | 614 | let balanceB = $t02402824152._2 | |
615 | 615 | let accountBalanceA = $t02402824152._3 | |
616 | 616 | let accountBalanceB = $t02402824152._4 | |
617 | 617 | let shareAssetSupply = $t02402824152._5 | |
618 | 618 | let initial = ((balanceA + balanceB) == 0) | |
619 | 619 | if ((size(args) != 3)) | |
620 | 620 | then throw("Wrong args size") | |
621 | 621 | else if (if ((size(pAmounts) != 1)) | |
622 | 622 | then (size(pAmounts) != 2) | |
623 | 623 | else false) | |
624 | 624 | then throw("Two or one attached assets expected") | |
625 | 625 | else if (if ((pmtAssetId != assetIdA)) | |
626 | 626 | then (pmtAssetId != assetIdB) | |
627 | 627 | else false) | |
628 | 628 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
629 | 629 | else if (initial) | |
630 | 630 | then throw("For initial exchanger you need to use two tokens") | |
631 | 631 | else if (if ((balanceA > accountBalanceA)) | |
632 | 632 | then true | |
633 | 633 | else (balanceB > accountBalanceB)) | |
634 | 634 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2)) | |
635 | 635 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
636 | 636 | then unit | |
637 | 637 | else pAssetIds[2], pAmounts[2])] | |
638 | 638 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
639 | 639 | else { | |
640 | 640 | let $t02506425122 = getFeeParams(i.caller, i.originCaller) | |
641 | 641 | let fee = $t02506425122._1 | |
642 | 642 | let govFee = $t02506425122._2 | |
643 | 643 | let $t02513127293 = if ((pmtAssetId == assetIdA)) | |
644 | 644 | then { | |
645 | 645 | let virtPayAmount = calculateVirtPay(pmtAmount, balanceA, fee) | |
646 | 646 | let $t02538625523 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee) | |
647 | 647 | let amountWithoutFee = $t02538625523._1 | |
648 | 648 | let amountWithFee = $t02538625523._2 | |
649 | 649 | let governanceReward = $t02538625523._3 | |
650 | 650 | let balanceAVirt = (balanceA + virtPayAmount) | |
651 | 651 | let balanceBVirt = ((balanceB + amountWithoutFee) - governanceReward) | |
652 | 652 | let newBalanceA = (balanceA + pmtAmount) | |
653 | 653 | let newBalanceB = (balanceB - governanceReward) | |
654 | 654 | let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt)) | |
655 | 655 | let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt)) | |
656 | 656 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16)) | |
657 | 657 | $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdB, strAssetIdB, strAssetIdA) | |
658 | 658 | } | |
659 | 659 | else { | |
660 | 660 | let virtPayAmount = calculateVirtPay(pmtAmount, balanceB, fee) | |
661 | 661 | let $t02639626533 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee) | |
662 | 662 | let amountWithoutFee = $t02639626533._1 | |
663 | 663 | let amountWithFee = $t02639626533._2 | |
664 | 664 | let governanceReward = $t02639626533._3 | |
665 | 665 | let balanceAVirt = ((balanceA + amountWithoutFee) - governanceReward) | |
666 | 666 | let balanceBVirt = (balanceB + virtPayAmount) | |
667 | 667 | let newBalanceA = (balanceA - governanceReward) | |
668 | 668 | let newBalanceB = (balanceB + pmtAmount) | |
669 | 669 | let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt)) | |
670 | 670 | let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt)) | |
671 | 671 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16)) | |
672 | 672 | $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB) | |
673 | 673 | } | |
674 | 674 | let newBalanceA = $t02513127293._1 | |
675 | 675 | let newBalanceB = $t02513127293._2 | |
676 | 676 | let shareTokenToPayAmount = $t02513127293._3 | |
677 | 677 | let govReward = $t02513127293._4 | |
678 | 678 | let govRewardAsset = $t02513127293._5 | |
679 | 679 | let govRewardAssetStr = $t02513127293._6 | |
680 | 680 | let pmtAssetIdStr = $t02513127293._7 | |
681 | 681 | if ((shareTokenToPayAmount == 0)) | |
682 | 682 | then throw("Too small amount to replenish") | |
683 | 683 | else { | |
684 | 684 | let stake1 = if (contains(stakingAssets, pmtAssetIdStr)) | |
685 | 685 | then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil) | |
686 | 686 | else 0 | |
687 | 687 | if ((stake1 == stake1)) | |
688 | 688 | then { | |
689 | 689 | let stake2 = if (contains(stakingAssets, govRewardAssetStr)) | |
690 | 690 | then invoke(i.caller, "stakeUnstake", [false, govReward, govRewardAssetStr], nil) | |
691 | 691 | else 0 | |
692 | 692 | if ((stake2 == stake2)) | |
693 | 693 | then { | |
694 | 694 | let shareTokenST = if (stakeFarming) | |
695 | 695 | then { | |
696 | 696 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2)) | |
697 | 697 | then [AttachedPayment(if ((pAssetIds[1] == base58'')) | |
698 | 698 | then unit | |
699 | 699 | else pAssetIds[1], pAmounts[1])] | |
700 | 700 | else nil)) | |
701 | 701 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
702 | 702 | if ((reissue == reissue)) | |
703 | 703 | then { | |
704 | 704 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
705 | 705 | if ((stake3 == stake3)) | |
706 | 706 | then nil | |
707 | 707 | else throw("Strict value is not equal to itself.") | |
708 | 708 | } | |
709 | 709 | else throw("Strict value is not equal to itself.") | |
710 | 710 | } | |
711 | 711 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
712 | 712 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset)] ++ shareTokenST), nil)) | |
713 | 713 | } | |
714 | 714 | else throw("Strict value is not equal to itself.") | |
715 | 715 | } | |
716 | 716 | else throw("Strict value is not equal to itself.") | |
717 | 717 | } | |
718 | 718 | } | |
719 | 719 | }))) | |
720 | 720 | ||
721 | 721 | ||
722 | 722 | ||
723 | 723 | @Callable(i) | |
724 | 724 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
725 | 725 | let time = lastBlock.timestamp | |
726 | 726 | let caller = Address(callerBytes) | |
727 | 727 | let $t02920829298 = getPoolAssets(i.caller) | |
728 | 728 | let strAssetIdA = $t02920829298._1 | |
729 | 729 | let strAssetIdB = $t02920829298._2 | |
730 | 730 | let assetIdA = $t02920829298._3 | |
731 | 731 | let assetIdB = $t02920829298._4 | |
732 | 732 | let shareAssetId = $t02920829298._5 | |
733 | 733 | let $t02930729431 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
734 | 734 | let balanceA = $t02930729431._1 | |
735 | 735 | let balanceB = $t02930729431._2 | |
736 | 736 | let accountBalanceA = $t02930729431._3 | |
737 | 737 | let accountBalanceB = $t02930729431._4 | |
738 | 738 | let shareAssetSupply = $t02930729431._5 | |
739 | 739 | let $t02944029820 = if ((size(pAmounts) == 1)) | |
740 | 740 | then { | |
741 | 741 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
742 | 742 | if ((pAsset != shareAssetId)) | |
743 | 743 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
744 | 744 | else $Tuple2(pAmounts[0], pAsset) | |
745 | 745 | } | |
746 | 746 | else $Tuple2(0, shareAssetId) | |
747 | 747 | let pmtAmount = $t02944029820._1 | |
748 | 748 | let pmtAssetId = $t02944029820._2 | |
749 | 749 | if ((size(args) != 1)) | |
750 | 750 | then throw("Wrong args size") | |
751 | 751 | else if ((size(pAmounts) > 1)) | |
752 | 752 | then throw("One attached payment expected") | |
753 | 753 | else if (if ((balanceA > accountBalanceA)) | |
754 | 754 | then true | |
755 | 755 | else (balanceB > accountBalanceB)) | |
756 | 756 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
757 | 757 | else { | |
758 | 758 | let unlockAmount = parseIntValue(valueOrElse(args[0], "0")) | |
759 | 759 | let unlock = if ((unlockAmount > 0)) | |
760 | 760 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
761 | 761 | else 0 | |
762 | 762 | if ((unlock == unlock)) | |
763 | 763 | then { | |
764 | 764 | let withdrawAmount = (pmtAmount + unlockAmount) | |
765 | 765 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
766 | 766 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
767 | 767 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
768 | 768 | then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
769 | 769 | else 0 | |
770 | 770 | if ((stake1 == stake1)) | |
771 | 771 | then { | |
772 | 772 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
773 | 773 | then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
774 | 774 | else 0 | |
775 | 775 | if ((stake2 == stake2)) | |
776 | 776 | 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)) | |
777 | 777 | else throw("Strict value is not equal to itself.") | |
778 | 778 | } | |
779 | 779 | else throw("Strict value is not equal to itself.") | |
780 | 780 | } | |
781 | 781 | else throw("Strict value is not equal to itself.") | |
782 | 782 | } | |
783 | 783 | })) | |
784 | 784 | ||
785 | 785 | ||
786 | 786 | ||
787 | 787 | @Callable(i) | |
788 | 788 | func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
789 | 789 | let caller = Address(callerBytes) | |
790 | 790 | let withdrawAsset = if ((args[0] == "")) | |
791 | 791 | then unit | |
792 | 792 | else fromBase58String(args[0]) | |
793 | 793 | let $t03203832128 = getPoolAssets(i.caller) | |
794 | 794 | let strAssetIdA = $t03203832128._1 | |
795 | 795 | let strAssetIdB = $t03203832128._2 | |
796 | 796 | let assetIdA = $t03203832128._3 | |
797 | 797 | let assetIdB = $t03203832128._4 | |
798 | 798 | let shareAssetId = $t03203832128._5 | |
799 | 799 | let $t03213732261 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
800 | 800 | let balanceA = $t03213732261._1 | |
801 | 801 | let balanceB = $t03213732261._2 | |
802 | 802 | let accountBalanceA = $t03213732261._3 | |
803 | 803 | let accountBalanceB = $t03213732261._4 | |
804 | 804 | let shareAssetSupply = $t03213732261._5 | |
805 | 805 | let $t03227032622 = if ((size(pAmounts) == 1)) | |
806 | 806 | then { | |
807 | 807 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
808 | 808 | if ((pAsset != shareAssetId)) | |
809 | 809 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
810 | 810 | else $Tuple2(pAmounts[0], pAsset) | |
811 | 811 | } | |
812 | 812 | else $Tuple2(0, shareAssetId) | |
813 | 813 | let pmtAmount = $t03227032622._1 | |
814 | 814 | let pmtAssetId = $t03227032622._2 | |
815 | 815 | let virtMinToRecive = parseIntValue(args[1]) | |
816 | 816 | if ((size(args) != 3)) | |
817 | 817 | then throw("Wrong args size") | |
818 | 818 | else if ((size(pAmounts) > 1)) | |
819 | 819 | then throw("One attached payment expected") | |
820 | 820 | else if ((pmtAssetId != shareAssetId)) | |
821 | 821 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
822 | 822 | else if (!(containsElement([assetIdA, assetIdB], withdrawAsset))) | |
823 | 823 | then throw("Incorrect withdraw asset.") | |
824 | 824 | else if (if ((balanceA > accountBalanceA)) | |
825 | 825 | then true | |
826 | 826 | else (balanceB > accountBalanceB)) | |
827 | 827 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
828 | 828 | else { | |
829 | 829 | let unlockAmount = parseIntValue(valueOrElse(args[2], "0")) | |
830 | 830 | let unlock = if ((unlockAmount > 0)) | |
831 | 831 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
832 | 832 | else 0 | |
833 | 833 | if ((unlock == unlock)) | |
834 | 834 | then { | |
835 | 835 | let withdrawAmount = (pmtAmount + unlockAmount) | |
836 | 836 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
837 | 837 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
838 | 838 | let $t03388933947 = getFeeParams(i.caller, i.originCaller) | |
839 | 839 | let fee = $t03388933947._1 | |
840 | 840 | let govFee = $t03388933947._2 | |
841 | 841 | let $t03396034344 = if ((withdrawAsset == assetIdA)) | |
842 | 842 | then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee) | |
843 | 843 | else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee) | |
844 | 844 | let amountWithoutFee = $t03396034344._1 | |
845 | 845 | let amountWithFee = $t03396034344._2 | |
846 | 846 | let governanceReward = $t03396034344._3 | |
847 | 847 | let $t03435735615 = if ((withdrawAsset == assetIdA)) | |
848 | 848 | then { | |
849 | 849 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
850 | 850 | then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil) | |
851 | 851 | else 0 | |
852 | 852 | if ((unstake == unstake)) | |
853 | 853 | then $Tuple4((((balanceA - amountToPayA) - amountWithFee) - governanceReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)]) | |
854 | 854 | else throw("Strict value is not equal to itself.") | |
855 | 855 | } | |
856 | 856 | else { | |
857 | 857 | let unstake = if (contains(stakingAssets, strAssetIdB)) | |
858 | 858 | then invoke(i.caller, "stakeUnstake", [false, ((amountToPayB + amountWithFee) + governanceReward), strAssetIdB], nil) | |
859 | 859 | else 0 | |
860 | 860 | if ((unstake == unstake)) | |
861 | 861 | then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
862 | 862 | else throw("Strict value is not equal to itself.") | |
863 | 863 | } | |
864 | 864 | let newBalanceA = $t03435735615._1 | |
865 | 865 | let newBalanceB = $t03435735615._2 | |
866 | 866 | let govRewardAssetId = $t03435735615._3 | |
867 | 867 | let userTransfer = $t03435735615._4 | |
868 | 868 | $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)) | |
869 | 869 | } | |
870 | 870 | else throw("Strict value is not equal to itself.") | |
871 | 871 | } | |
872 | 872 | }))) | |
873 | 873 | ||
874 | 874 | ||
875 | 875 | ||
876 | 876 | @Callable(i) | |
877 | 877 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
878 | 878 | let $t03629736373 = getPoolAssets(i.caller) | |
879 | 879 | let strAssetIdA = $t03629736373._1 | |
880 | 880 | let strAssetIdB = $t03629736373._2 | |
881 | 881 | let assetIdA = $t03629736373._3 | |
882 | 882 | let assetIdB = $t03629736373._4 | |
883 | 883 | let claim = if (if ((assetIdA == USDN)) | |
884 | 884 | then true | |
885 | 885 | else (assetIdB == USDN)) | |
886 | 886 | then invoke(i.caller, "claimNetrinoRewards", nil, nil) | |
887 | 887 | else 0 | |
888 | 888 | if ((claim == claim)) | |
889 | 889 | then { | |
890 | 890 | let $t03653336639 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
891 | 891 | let balanceA = $t03653336639._1 | |
892 | 892 | let balanceB = $t03653336639._2 | |
893 | 893 | let accountBalanceA = $t03653336639._3 | |
894 | 894 | let accountBalanceB = $t03653336639._4 | |
895 | 895 | let amountEnrollA = (accountBalanceA - balanceA) | |
896 | 896 | let amountEnrollB = (accountBalanceB - balanceB) | |
897 | 897 | if ((size(args) != 0)) | |
898 | 898 | then throw("Wrong args size") | |
899 | 899 | else if ((moneyBoxAddress != i.originCaller)) | |
900 | 900 | then throw("Only the wallet can call this function") | |
901 | 901 | else if (if ((0 > amountEnrollA)) | |
902 | 902 | then true | |
903 | 903 | else (0 > amountEnrollB)) | |
904 | 904 | then suspend("Enroll amount negative") | |
905 | 905 | else if (if ((amountEnrollA == 0)) | |
906 | 906 | then (amountEnrollB == 0) | |
907 | 907 | else false) | |
908 | 908 | then throw("No money to take") | |
909 | 909 | else { | |
910 | 910 | let stake1 = if (if (contains(stakingAssets, strAssetIdA)) | |
911 | 911 | then (amountEnrollA > 0) | |
912 | 912 | else false) | |
913 | 913 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
914 | 914 | else 0 | |
915 | 915 | if ((stake1 == stake1)) | |
916 | 916 | then { | |
917 | 917 | let stake2 = if (if (contains(stakingAssets, strAssetIdB)) | |
918 | 918 | then (amountEnrollB > 0) | |
919 | 919 | else false) | |
920 | 920 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
921 | 921 | else 0 | |
922 | 922 | if ((stake2 == stake2)) | |
923 | 923 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil)) | |
924 | 924 | else throw("Strict value is not equal to itself.") | |
925 | 925 | } | |
926 | 926 | else throw("Strict value is not equal to itself.") | |
927 | 927 | } | |
928 | 928 | } | |
929 | 929 | else throw("Strict value is not equal to itself.") | |
930 | 930 | })) | |
931 | 931 | ||
932 | 932 | ||
933 | 933 | @Verifier(tx) | |
934 | 934 | func verify () = { | |
935 | 935 | let multiSignedByAdmins = { | |
936 | 936 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
937 | 937 | then 1 | |
938 | 938 | else 0 | |
939 | 939 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
940 | 940 | then 1 | |
941 | 941 | else 0 | |
942 | 942 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
943 | 943 | then 1 | |
944 | 944 | else 0 | |
945 | 945 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
946 | 946 | } | |
947 | 947 | multiSignedByAdmins | |
948 | 948 | } | |
949 | 949 |
github/deemru/w8io/169f3d6 92.78 ms ◑