tx · DPGyJwiTZotnCSNMm9YXD9JRSrJxWtSBHymJ2qqBoRiF

3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph:  -0.01400000 Waves

2021.11.05 17:22 [1777799] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves

{ "type": 13, "id": "DPGyJwiTZotnCSNMm9YXD9JRSrJxWtSBHymJ2qqBoRiF", "fee": 1400000, "feeAssetId": null, "timestamp": 1636122139643, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "278DCBixxPa92U5wmD9qtGnMaZRHSGq7S54g8V3XFaN66AX7vx4uoBoLoiRdUN1W5SHH2kwdoKkDkfDvCiwZfbhy" ], "script": "base64:AAIFAAAAAAAAABkIAhIAEgYKBBgYGBESABIDCgEIEgQKAggBAAAAAwAAAAAKZGVwb3NpdEZlZQAAAAAAAAAD6AAAAAANY29udHJvbGxlckZlZQAAAAAAAAAnEAAAAAALcGxhdGZvcm1GZWUAAAAAAAAAJxAAAAAFAAAAAmE4AQAAAARpbml0AAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAxM1BQSDd4N2lxb2JXNXppeWlSQ2ljMTlyUXFLcjZuUFlhSzFfYXNzZXRfYmFsYW5jZQAAAAAAAG3UrQUAAAADbmlsAAAAAWkBAAAACGFkZFBvb2xzAAAABAAAAAVwb29scwAAAA9saXF1aWRpdHlUb2tlbnMAAAANc2VydmljZVRva2VucwAAABZsaXF1aWRpdHlUb2tlbkRlY2ltYWxzCgEAAAAQZ2VuZXJhdGVQb29sS2V5cwAAAAIAAAALYWNjdW11bGF0ZWQAAAAEcG9vbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACBQAAAARwb29sAgAAAA5fYXNzZXRfYmFsYW5jZQAAA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bEFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAARdXNlclBvb2xBbW91bnRLZXkFAAAAEW5ld1VzZXJQb29sQW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABF1c2VyUG9vbEVhcm5lZEtleQUAAAAPdXNlckVhcm5lZFRvdGFsBQAAAANuaWwJAAACAAAAAQIAAAAmWW91IGhhdmUgbm90IHN1Y2ggYmFsYW5jZSBmb3Igd2l0aGRyYXcAAAABAAAAAmI2AQAAAAJiNwAAAAAJAAH0AAAAAwgFAAAAAmI2AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYjYAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACYjYAAAAPc2VuZGVyUHVibGljS2V53udBzw==", "height": 1777799, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AJtyQqfcBfweA2uoLAqTnXu8ZjtgDZothrZugZtC61Bi Next: HvJpmPVyW3XcxzFKSePh1FXWyvq3zmjMNnxf2HE6QTiD Diff:
OldNewDifferences
9292
9393 2(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
9494 }
95- poolServiceTokenKeys
95+ poolLiquidityTokenDecimalKeys
9696 }
9797
9898
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let depositFee = 1000
55
66 let controllerFee = 10000
77
88 let platformFee = 10000
99
1010 @Callable(a8)
1111 func init () = [IntegerEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_asset_balance", 7197869)]
1212
1313
1414
1515 @Callable(i)
1616 func addPools (pools,liquidityTokens,serviceTokens,liquidityTokenDecimals) = {
1717 func generatePoolKeys (accumulated,pool) = IntegerEntry((pool + "_asset_balance"), 0) :: accumulated
1818
1919 func generatePoolLiquidityTokenKeys (accumulated,pool) = {
2020 let poolIndex = value(indexOf(pools, pool))
2121 let liquidityToken = liquidityTokens[poolIndex]
2222 StringEntry((pool + "_liquidity_token"), liquidityToken)
2323 }
2424
2525 func generatePoolServiceTokenKeys (accumulated,pool) = {
2626 let poolIndex = value(indexOf(pools, pool))
2727 let liquidityToken = serviceTokens[poolIndex]
2828 StringEntry((pool + "_service_token"), liquidityToken)
2929 }
3030
3131 func generatePoolLiquidityTokenDecimalKeys (accumulated,pool) = {
3232 let poolIndex = value(indexOf(pools, pool))
3333 let liquidityToken = liquidityTokenDecimals[poolIndex]
3434 IntegerEntry((pool + "_service_token"), liquidityToken)
3535 }
3636
3737 func generatePoolActiveKeys (accumulated,pool) = BooleanEntry((pool + "_active"), true)
3838
3939 let poolLiquidityTokenKeys = {
4040 let $l = pools
4141 let $s = size($l)
4242 let $acc0 = nil
4343 func 1 ($a,$i) = if (($i >= $s))
4444 then $a
4545 else generatePoolLiquidityTokenKeys($a, $l[$i])
4646
4747 func 2 ($a,$i) = if (($i >= $s))
4848 then $a
4949 else throw("List size exceeds 20")
5050
5151 2(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
5252 }
5353 let poolServiceTokenKeys = {
5454 let $l = pools
5555 let $s = size($l)
5656 let $acc0 = nil
5757 func 1 ($a,$i) = if (($i >= $s))
5858 then $a
5959 else generatePoolServiceTokenKeys($a, $l[$i])
6060
6161 func 2 ($a,$i) = if (($i >= $s))
6262 then $a
6363 else throw("List size exceeds 20")
6464
6565 2(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
6666 }
6767 let poolLiquidityTokenDecimalKeys = {
6868 let $l = pools
6969 let $s = size($l)
7070 let $acc0 = nil
7171 func 1 ($a,$i) = if (($i >= $s))
7272 then $a
7373 else generatePoolLiquidityTokenDecimalKeys($a, $l[$i])
7474
7575 func 2 ($a,$i) = if (($i >= $s))
7676 then $a
7777 else throw("List size exceeds 20")
7878
7979 2(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
8080 }
8181 let poolActiveKeys = {
8282 let $l = pools
8383 let $s = size($l)
8484 let $acc0 = nil
8585 func 1 ($a,$i) = if (($i >= $s))
8686 then $a
8787 else generatePoolActiveKeys($a, $l[$i])
8888
8989 func 2 ($a,$i) = if (($i >= $s))
9090 then $a
9191 else throw("List size exceeds 20")
9292
9393 2(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
9494 }
95- poolServiceTokenKeys
95+ poolLiquidityTokenDecimalKeys
9696 }
9797
9898
9999
100100 @Callable(a8)
101101 func call () = {
102102 let a9 = Issue("Asset1", "Asset from dApp", 100000, 2, true, unit, 0)
103103 let b1 = calculateAssetId(a9)
104104 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), a9]
105105 }
106106
107107
108108
109109 @Callable(i)
110110 func deposit (pool) = {
111111 let amount = i.payments[0].amount
112112 let assetId = i.payments[0].assetId
113113 let poolAmountKey = (pool + "_asset_balance")
114114 let userAddress = toString(i.caller)
115115 let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance")
116116 let dAppAssetAddress = getStringValue(this, (pool + "_service_token"))
117117 let poolAmount = getIntegerValue(this, poolAmountKey)
118118 let userAmount = match getInteger(userPoolAmountKey) {
119119 case int: Int =>
120120 int
121121 case nothing =>
122122 0
123123 }
124124 let newPoolAmount = (poolAmount + amount)
125125 let userAmountWithoutFee = ((amount - fraction(amount, 1, depositFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP))
126126 let newUserPoolAmount = (userAmount + userAmountWithoutFee)
127127 [Reissue(fromBase58String(dAppAssetAddress), userAmountWithoutFee, true), ScriptTransfer(i.caller, userAmountWithoutFee, fromBase58String(dAppAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount)]
128128 }
129129
130130
131131
132132 @Callable(i)
133133 func withdraw (pool,userEarned) = {
134134 let amount = i.payments[0].amount
135135 let assetId = i.payments[0].assetId
136136 let poolAmountKey = (pool + "_asset_balance")
137137 let userAddress = toString(i.caller)
138138 let userPoolAmountKey = (((pool + "_") + userAddress) + "_asset_balance")
139139 let userPoolEarnedKey = (((pool + "_") + userAddress) + "_earned")
140140 let poolAmount = getIntegerValue(this, poolAmountKey)
141141 let userAmount = match getInteger(userPoolAmountKey) {
142142 case int: Int =>
143143 int
144144 case nothing =>
145145 0
146146 }
147147 let userEarnedBefore = match getInteger(userPoolEarnedKey) {
148148 case int: Int =>
149149 int
150150 case nothing =>
151151 0
152152 }
153153 let liquidutyAssetAddress = getStringValue(this, (pool + "_liquidity_token"))
154154 let liquidityTokenDecimal = match assetInfo(fromBase58String(liquidutyAssetAddress)) {
155155 case asset: Asset =>
156156 asset.decimals
157157 case _ =>
158158 throw("Can't find asset")
159159 }
160160 let dAppAssetAddress = getStringValue(this, (pool + "_service_token"))
161161 let userEarnedTotal = (userEarned + userEarnedBefore)
162162 let amountWithoutFee = ((amount - fraction(amount, 1, platformFee, HALFUP)) - fraction(amount, 1, controllerFee, HALFUP))
163163 let newPoolAmount = (poolAmount - amountWithoutFee)
164164 if ((userAmount >= amount))
165165 then {
166166 let newUserPoolAmount = (userAmount - amountWithoutFee)
167167 [Burn(fromBase58String(dAppAssetAddress), amountWithoutFee), ScriptTransfer(i.caller, amountWithoutFee, fromBase58String(liquidutyAssetAddress)), IntegerEntry(poolAmountKey, newPoolAmount), IntegerEntry(userPoolAmountKey, newUserPoolAmount), IntegerEntry(userPoolEarnedKey, userEarnedTotal)]
168168 }
169169 else throw("You have not such balance for withdraw")
170170 }
171171
172172
173173 @Verifier(b6)
174174 func b7 () = sigVerify(b6.bodyBytes, b6.proofs[0], b6.senderPublicKey)
175175

github/deemru/w8io/026f985 
35.41 ms