tx · G656L6rdpNU1cUYQEjyQLLpQQ5v9vFk6De3XZLwRnLTu

3MymToccYDK8vuwr1LMzxVp51X6WmsafFit:  -0.01400000 Waves

2020.10.27 23:53 [1239534] smart account 3MymToccYDK8vuwr1LMzxVp51X6WmsafFit > SELF 0.00000000 Waves

{ "type": 13, "id": "G656L6rdpNU1cUYQEjyQLLpQQ5v9vFk6De3XZLwRnLTu", "fee": 1400000, "feeAssetId": null, "timestamp": 1603831999982, "version": 1, "sender": "3MymToccYDK8vuwr1LMzxVp51X6WmsafFit", "senderPublicKey": "95zM5yLX9Tu2LveeQnFdr16kXErmdFxxv1zsy5BpUcc6", "proofs": [ "4QaoBgCsWuiHTXnXKEvVu7nvF4iNsWcFY1mNNu9D37nqhgWzrdQor3HCtyrki2Met7gtvoM8FnRRq8TCRABZEVTj" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgASABIAEgMKAQEAAAASAAAAABFnb3Zlcm5hbmNlQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVF6YEMHl9HWSG0PCLWD9SJEGklQoyOQRRAAAAAAISWRUb2tlbkEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAADWFzc2V0SWRUb2tlbkEAAAAACElkVG9rZW5CCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1hc3NldElkVG9rZW5CAAAAAAxhbW91bnRUb2tlbkIJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADGFtb3VudFRva2VuQgAAAAAMYW1vdW50VG9rZW5BCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAxhbW91bnRUb2tlbkEAAAAADElkVG9rZW5TaGFyZQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAOc2hhcmVfdG9rZW5faWQAAAAAEHRva2VuU2hhcmVTdXBwb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AAAFnRva2VuU2VuZEFtb3VudFdpdGhGZWUFAAAAE3Rva2VuU2VuZEdvdmVybmFuY2UJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyBQAAABZ0b2tlblNlbmRBbW91bnRXaXRoRmVlBQAAAAthc3NldElkU2VuZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABFnb3Zlcm5hbmNlQWRkcmVzcwUAAAATdG9rZW5TZW5kR292ZXJuYW5jZQUAAAALYXNzZXRJZFNlbmQFAAAAA25pbAkAAAIAAAABAgAAABRBc3NldCBpcyBub3QgYWxsb3dlZAAAAABZLpJa", "chainId": 84, "height": 1239534, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HzoFrGixaASNTb4Zi4armBqWtr7acxAcYcpu9GfvGPV8 Next: none Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let governanceAddress = Address(base58'3MSNMcqyweiM9cWpvf4Fn8GAWeuPstxj2hK')
4+let governanceAddress = Address(base58'3MxYFTeR3zyt474rNiKiMDh4Njpf8Mdt7um')
55
66 let IdTokenA = getStringValue(this, "assetIdTokenA")
77
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let governanceAddress = Address(base58'3MSNMcqyweiM9cWpvf4Fn8GAWeuPstxj2hK')
4+let governanceAddress = Address(base58'3MxYFTeR3zyt474rNiKiMDh4Njpf8Mdt7um')
55
66 let IdTokenA = getStringValue(this, "assetIdTokenA")
77
88 let IdTokenB = getStringValue(this, "assetIdTokenB")
99
1010 let amountTokenB = getIntegerValue(this, "amountTokenB")
1111
1212 let amountTokenA = getIntegerValue(this, "amountTokenA")
1313
1414 let IdTokenShare = getStringValue(this, "share_token_id")
1515
1616 let tokenShareSupply = getIntegerValue(this, "share_token_supply")
1717
1818 let comission = 300
1919
2020 let commisionGovernance = 200
2121
2222 let comissionScaleDelimiter = 1000000
2323
2424 let version = "1.0.0"
2525
2626 let scaleValue3 = 1000
2727
2828 let scaleValue8 = 100000000
2929
3030 let scaleValue8Digits = 8
3131
3232 func assetId (asset) = if ((asset == "WAVES"))
3333 then unit
3434 else fromBase58String(asset)
3535
3636
3737 let assetIdTokenA = assetId(IdTokenA)
3838
3939 let assetIdTokenB = assetId(IdTokenB)
4040
4141 let assetIdTokenShare = fromBase58String(IdTokenShare)
4242
4343 @Callable(contextObj)
4444 func fund () = {
4545 let paymentA = value(contextObj.payments[0])
4646 let paymentB = value(contextObj.payments[1])
4747 let assetIdReceivedA = paymentA.assetId
4848 let tokenReceiveAmountA = paymentA.amount
4949 let assetIdReceivedB = paymentB.assetId
5050 let tokenReceiveAmountB = paymentB.amount
5151 let digitTokenA = match assetIdReceivedA {
5252 case p: Unit =>
5353 8
5454 case p: ByteVector =>
5555 value(assetInfo(p)).decimals
5656 case _ =>
5757 throw("Match error")
5858 }
5959 let digitTokenB = match assetIdReceivedB {
6060 case p: Unit =>
6161 8
6262 case p: ByteVector =>
6363 value(assetInfo(p)).decimals
6464 case _ =>
6565 throw("Match error")
6666 }
6767 if (isDefined(getBoolean(this, "status")))
6868 then throw("already active")
6969 else {
7070 let shareTokenName = ("ShareT_" + takeRight(toString(this), 5))
7171 let digitsInShareToken = ((digitTokenA + digitTokenB) / 2)
7272 let shareTokenInitialAmount = fraction(pow(tokenReceiveAmountA, digitTokenA, 5, 1, digitTokenA, HALFDOWN), pow(tokenReceiveAmountB, digitTokenB, 5, 1, digitTokenB, HALFDOWN), pow(10, 0, digitsInShareToken, 0, 0, HALFDOWN))
7373 let shareTokenAssetId = calculateAssetId(Issue(shareTokenName, shareTokenName, shareTokenInitialAmount, digitsInShareToken, true))
7474 let assetIdTokenStringA = match assetIdReceivedA {
7575 case t: Unit =>
7676 "WAVES"
7777 case t: ByteVector =>
7878 toBase58String(value(assetIdReceivedA))
7979 case _ =>
8080 throw("Match error")
8181 }
8282 let assetIdTokenStringB = match assetIdReceivedB {
8383 case t: Unit =>
8484 "WAVES"
8585 case t: ByteVector =>
8686 toBase58String(value(assetIdReceivedB))
8787 case _ =>
8888 throw("Match error")
8989 }
9090 [IntegerEntry("amountTokenA", tokenReceiveAmountA), IntegerEntry("amountTokenB", tokenReceiveAmountB), StringEntry("assetIdTokenA", assetIdTokenStringA), StringEntry("assetIdTokenB", assetIdTokenStringB), BooleanEntry("status", true), IntegerEntry("comission", comission), IntegerEntry("comissionScaleDelimiter", comissionScaleDelimiter), StringEntry("version", version), Issue(shareTokenName, shareTokenName, shareTokenInitialAmount, digitsInShareToken, true), ScriptTransfer(contextObj.caller, shareTokenInitialAmount, shareTokenAssetId), StringEntry("share_token_id", toBase58String(shareTokenAssetId)), IntegerEntry("share_token_supply", shareTokenInitialAmount)]
9191 }
9292 }
9393
9494
9595
9696 @Callable(contextObj)
9797 func replenishmentWithTwoToken () = {
9898 let paymentA = value(contextObj.payments[0])
9999 let paymentB = value(contextObj.payments[1])
100100 let assetIdReceivedA = paymentA.assetId
101101 let tokenReceiveAmountA = paymentA.amount
102102 let assetIdReceivedB = paymentB.assetId
103103 let tokenReceiveAmountB = paymentB.amount
104104 let dAppTokensAmountA = getIntegerValue(this, "amountTokenA")
105105 let dAppTokensAmountB = getIntegerValue(this, "amountTokenB")
106106 if (if ((assetIdReceivedA != assetIdTokenA))
107107 then true
108108 else (assetIdReceivedB != assetIdTokenB))
109109 then throw("incorrect assets")
110110 else {
111111 let tokenRatio = (fraction(dAppTokensAmountA, (1000000000000 * scaleValue3), tokenReceiveAmountA) / fraction(dAppTokensAmountB, 1000000000000, tokenReceiveAmountB))
112112 if (!((tokenRatio == scaleValue3)))
113113 then throw("incorrect assets amount: amounts must have the contract ratio")
114114 else {
115115 let shareTokenToPayAmount = fraction(tokenReceiveAmountA, tokenShareSupply, dAppTokensAmountA)
116116 if ((shareTokenToPayAmount == 0))
117117 then throw("you try replansish with very small amount")
118118 else [Reissue(assetIdTokenShare, shareTokenToPayAmount, true), ScriptTransfer(contextObj.caller, shareTokenToPayAmount, assetIdTokenShare), IntegerEntry("share_token_supply", (tokenShareSupply + shareTokenToPayAmount)), IntegerEntry("amountTokenA", (dAppTokensAmountA + tokenReceiveAmountA)), IntegerEntry("amountTokenB", (dAppTokensAmountB + tokenReceiveAmountB))]
119119 }
120120 }
121121 }
122122
123123
124124
125125 @Callable(contextObj)
126126 func replanishmentWithOneToken () = {
127127 let payment = value(contextObj.payments[0])
128128 let assetIdReceived = payment.assetId
129129 let tokenReceiveAmount = payment.amount
130130 if ((assetIdReceived == assetIdTokenA))
131131 then {
132132 let newAmountTokenA = (amountTokenA + tokenReceiveAmount)
133133 let priceAtoBwith8digits = fraction(newAmountTokenA, scaleValue8, amountTokenB)
134134 let tokenAmountBNewPriceOldInvariant = pow(fraction(amountTokenA, amountTokenB, priceAtoBwith8digits), 0, 5, 1, 0, HALFDOWN)
135135 let newTokenShareSupply = fraction(amountTokenB, tokenShareSupply, tokenAmountBNewPriceOldInvariant)
136136 let shareTokenToPayAmount = (newTokenShareSupply - tokenShareSupply)
137137 [Reissue(assetIdTokenShare, shareTokenToPayAmount, true), ScriptTransfer(contextObj.caller, shareTokenToPayAmount, assetIdTokenShare), IntegerEntry("share_token_supply", (tokenShareSupply + shareTokenToPayAmount)), IntegerEntry("amountTokenA", newAmountTokenA)]
138138 }
139139 else if ((assetIdReceived == assetIdTokenB))
140140 then {
141141 let newAmountTokenB = (amountTokenB + tokenReceiveAmount)
142142 let priceAtoBwith8digits = fraction(amountTokenA, scaleValue8, newAmountTokenB)
143143 let tokenAmountBNewPriceOldInvariant = pow(fraction(amountTokenA, amountTokenB, priceAtoBwith8digits), 0, 5, 1, 0, HALFDOWN)
144144 let newTokenShareSupply = fraction(amountTokenB, tokenShareSupply, tokenAmountBNewPriceOldInvariant)
145145 let shareTokenToPayAmount = (newTokenShareSupply - tokenShareSupply)
146146 [Reissue(assetIdTokenShare, shareTokenToPayAmount, true), ScriptTransfer(contextObj.caller, shareTokenToPayAmount, assetIdTokenShare), IntegerEntry("share_token_supply", (tokenShareSupply + shareTokenToPayAmount)), IntegerEntry("amountTokenB", newAmountTokenB)]
147147 }
148148 else throw("incorrect assets in payment")
149149 }
150150
151151
152152
153153 @Callable(contextObj)
154154 func withdraw () = {
155155 let dAppTokensAmountA = getIntegerValue(this, "amountTokenA")
156156 let dAppTokensAmountB = getIntegerValue(this, "amountTokenB")
157157 let payment = value(contextObj.payments[0])
158158 let assetIdReceived = payment.assetId
159159 let tokenReceiveAmount = payment.amount
160160 if ((assetIdTokenShare != assetIdReceived))
161161 then throw(("you need to attach share token for this dApp " + toBase58String(assetIdTokenShare)))
162162 else {
163163 let tokensToPayA = fraction(tokenReceiveAmount, dAppTokensAmountA, tokenShareSupply)
164164 let tokensToPayB = fraction(tokenReceiveAmount, dAppTokensAmountB, tokenShareSupply)
165165 if ((getBooleanValue(this, "status") != true))
166166 then throw("status: Unactive")
167167 else [ScriptTransfer(contextObj.caller, tokensToPayA, assetIdTokenA), ScriptTransfer(contextObj.caller, tokensToPayB, assetIdTokenB), IntegerEntry("amountTokenA", (dAppTokensAmountA - tokensToPayA)), IntegerEntry("amountTokenB", (dAppTokensAmountB - tokensToPayB)), IntegerEntry("share_token_supply", (tokenShareSupply - tokenReceiveAmount)), Burn(assetIdTokenShare, tokenReceiveAmount)]
168168 }
169169 }
170170
171171
172172
173173 @Callable(contextObj)
174174 func exchanger (minTokenRecieve) = {
175175 let payment = value(contextObj.payments[0])
176176 let assetIdReceived = payment.assetId
177177 let tokenReceiveAmount = payment.amount
178178 if ((getBooleanValue(this, "status") != true))
179179 then throw("status: Unactive")
180180 else if ((assetIdReceived == assetIdTokenB))
181181 then {
182182 let tokenSendAmountWithoutFee = fraction(amountTokenA, tokenReceiveAmount, (tokenReceiveAmount + amountTokenB))
183183 let tokenSendAmountWithFee = fraction(tokenSendAmountWithoutFee, (comissionScaleDelimiter - comission), comissionScaleDelimiter)
184184 let tokenSendGovernance = fraction(tokenSendAmountWithoutFee, commisionGovernance, comissionScaleDelimiter)
185185 if ((minTokenRecieve > tokenSendAmountWithFee))
186186 then throw("Price has changed dramaticaly. Receiving token amount don't satisfy specified price level")
187187 else {
188188 let assetIdSend = assetIdTokenA
189189 [IntegerEntry("amountTokenA", ((amountTokenA - tokenSendAmountWithFee) - tokenSendGovernance)), IntegerEntry("amountTokenB", (amountTokenB + tokenReceiveAmount)), ScriptTransfer(contextObj.caller, tokenSendAmountWithFee, assetIdSend), ScriptTransfer(governanceAddress, tokenSendGovernance, assetIdSend)]
190190 }
191191 }
192192 else if ((assetIdReceived == assetIdTokenA))
193193 then {
194194 let tokenSendAmountWithoutFee = fraction(amountTokenB, tokenReceiveAmount, (tokenReceiveAmount + amountTokenA))
195195 let tokenSendAmountWithFee = fraction(tokenSendAmountWithoutFee, (comissionScaleDelimiter - comission), comissionScaleDelimiter)
196196 let tokenSendGovernance = fraction(tokenSendAmountWithoutFee, commisionGovernance, comissionScaleDelimiter)
197197 if ((minTokenRecieve > tokenSendAmountWithFee))
198198 then throw("Price has changed dramaticaly. Receiving token amount don't satisfy specified price level")
199199 else {
200200 let assetIdSend = assetIdTokenB
201201 [IntegerEntry("amountTokenA", (amountTokenA + tokenReceiveAmount)), IntegerEntry("amountTokenB", ((amountTokenB - tokenSendAmountWithFee) - tokenSendGovernance)), ScriptTransfer(contextObj.caller, tokenSendAmountWithFee, assetIdSend), ScriptTransfer(governanceAddress, tokenSendGovernance, assetIdSend)]
202202 }
203203 }
204204 else throw("Asset is not allowed")
205205 }
206206
207207

github/deemru/w8io/169f3d6 
114.87 ms