tx · DY6kY6kUE4ijNarzsd2Q9kxWvCDYMpLEqqFyDfB7iixq

3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT:  -0.01400000 Waves

2020.12.07 16:40 [1298306] smart account 3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT > SELF 0.00000000 Waves

{ "type": 13, "id": "DY6kY6kUE4ijNarzsd2Q9kxWvCDYMpLEqqFyDfB7iixq", "fee": 1400000, "feeAssetId": null, "timestamp": 1607348412484, "version": 2, "chainId": 84, "sender": "3MzGHDJgHnpSnBYScnzg93pWoS27M7cBuVT", "senderPublicKey": "EEG3yJvW1pyCtw138vRpByPpVgrN9VUW9X7G3b9qnwAU", "proofs": [ "36bBPDUeWoSAvnRU6TDKWPjy9WxVE6MUj2dbWtG9CEbkYuA63w73gahRbvx3QdpuZ2pm8DLC5c6qUqgBkUSHBcdB" ], "script": "base64:AAIDAAAAAAAAABUIARIAEgASBAoCCAESABIDCgEBEgAAAAAAAAAABgAAAAFpAQAAAAxSZWFkUG9vbERhdGEAAAAABAAAAA5Hb3Zlcm5Ub2tlbktleQIAAAAVR292ZXJuVG9rZW5NYXhEZXBvc2l0BAAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQIAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkEAAAAC1N0YWtlZFRva2VuAQAAACCOrPKFX9iyxI4BbdwwZEALQLKrVFO/ELkmmh2Y+mC8aAQAAAALR292ZXJuVG9rZW4BAAAAIMtrm7pE5/6PvpYJJCZ4VYOnbodph6rsi95jG/KBisX4BAAAABJVc2VyU3Rha2VkVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAAAV8JAAJYAAAAAQUAAAALU3Rha2VkVG9rZW4EAAAAElVzZXJHb3Zlcm5Ub2tlbktleQkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlc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gMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAACbzWIJ", "height": 1298306, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DJwVDAh3nQDyL5ER23hCXczUiEZdb39LWuzNnWBAfHk7 Next: 7XN7NpFnsjv5te3R46fVKBWiLcY5ymiB5eJrziiBCGiw Diff:
OldNewDifferences
6969 }
7070 let newAmountStakedToken = (currentAmountStakedToken + amount)
7171 let StakedTokenSmartContractBalance = assetBalance(this, StakedToken)
72- ScriptResult(WriteSet([DataEntry(UserStakedTokenKey, newAmountStakedToken)]), TransferSet([ScriptTransfer(i.caller, 10, StakedToken)]))
72+ ScriptResult(WriteSet([DataEntry(UserStakedTokenKey, newAmountStakedToken)]), TransferSet([ScriptTransfer(i.caller, 1, StakedToken)]))
7373 }
7474 else throw("Can deposit only StakeToken")
7575 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func ReadPoolData () = {
88 let GovernTokenKey = "GovernTokenMaxDeposit"
99 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
1010 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
1111 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
1212 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
1313 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
1414 let Winner = getStringValue(this, MaxGovernTokenDepositerKey)
1515 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
1616 case a: Int =>
1717 a
1818 case _ =>
1919 0
2020 }
2121 let ReadUserGovernTokenKey = getStringValue(this, UserGovernTokenKey)
2222 let UserGovernTokenBalance = match getInteger(this, UserGovernTokenKey) {
2323 case a: Int =>
2424 a
2525 case _ =>
2626 0
2727 }
2828 let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey)
2929 let UserStakedTokenBalance = match getInteger(this, UserStakedTokenKey) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
3535 throw(((((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + "
3636 Staked Token in your Balance is.....: ") + toString(UserStakedTokenBalance)) + "
3737 Govern Token in your Balance is.....: ") + toString(UserGovernTokenBalance)))
3838 }
3939
4040
4141
4242 @Callable(i)
4343 func ResetAccount () = {
4444 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
4545 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
4646 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
4747 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
4848 let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions")
4949 WriteSet([DataEntry(UserGovernTokenKey, 0), DataEntry(UserStakedTokenKey, 0), DataEntry(UserStakeTransactionsKey, 0)])
5050 }
5151
5252
5353
5454 @Callable(i)
5555 func Stake (TokenId,amount) = {
5656 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
5757 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
5858 if (if ((amount > 0))
5959 then (TokenId == toBase58String(StakedToken))
6060 else false)
6161 then {
6262 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
6363 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
6464 let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) {
6565 case a: Int =>
6666 a
6767 case _ =>
6868 0
6969 }
7070 let newAmountStakedToken = (currentAmountStakedToken + amount)
7171 let StakedTokenSmartContractBalance = assetBalance(this, StakedToken)
72- ScriptResult(WriteSet([DataEntry(UserStakedTokenKey, newAmountStakedToken)]), TransferSet([ScriptTransfer(i.caller, 10, StakedToken)]))
72+ ScriptResult(WriteSet([DataEntry(UserStakedTokenKey, newAmountStakedToken)]), TransferSet([ScriptTransfer(i.caller, 1, StakedToken)]))
7373 }
7474 else throw("Can deposit only StakeToken")
7575 }
7676
7777
7878
7979 @Callable(i)
8080 func DepositGovernToken () = {
8181 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
8282 let GovernTokenMaxDeposit = toBase58String(GovernToken)
8383 let pmt = extract(i.payment)
8484 if (if (isDefined(pmt.assetId))
8585 then (extract(pmt.assetId) == GovernToken)
8686 else false)
8787 then {
8888 let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
8989 let currentAmount = match getInteger(this, currentKey) {
9090 case a: Int =>
9191 a
9292 case _ =>
9393 0
9494 }
9595 let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount)
9696 let GovernTokenKey = "GovernTokenMaxDeposit"
9797 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
9898 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
9999 case a: Int =>
100100 a
101101 case _ =>
102102 0
103103 }
104104 if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit))
105105 then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)])
106106 else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)])
107107 }
108108 else throw("Can deposit only Govern Token")
109109 }
110110
111111
112112
113113 @Callable(i)
114114 func WithdrawStakedFunds (amount) = {
115115 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
116116 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
117117 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
118118 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
119119 let currentKey = toBase58String(i.caller.bytes)
120120 let currentAmount = match getInteger(this, UserStakedTokenKey) {
121121 case a: Int =>
122122 a
123123 case _ =>
124124 0
125125 }
126126 let newAmount = (currentAmount - amount)
127127 if ((0 > amount))
128128 then throw("Can't withdraw negative amount")
129129 else if ((0 > newAmount))
130130 then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(currentAmount)))
131131 else {
132132 let GovernTokenAmount = assetBalance(this, GovernToken)
133133 if ((1 > GovernTokenAmount))
134134 then throw("No enough GovernToken In Contract")
135135 else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 1), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)]))
136136 }
137137 }
138138
139139
140140
141141 @Callable(i)
142142 func ClaimPrize () = {
143143 let StakedToken = base58'AbwrDfhBTCFySqCzhwcC6CaXTNKC7tFq5nx1cVUxqT2w'
144144 let GovernToken = base58'Eh4w4BjT7Qn51eXFV9tLzymsepCo8oPLxBRBg5aog98j'
145145 let FundBoxAddress58 = base58'3MsH5Hr1qQYUnwq4HTpiaGpXQi6cGPUsa5n'
146146 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
147147 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
148148 let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken))
149149 let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) {
150150 case a: Int =>
151151 a
152152 case _ =>
153153 0
154154 }
155155 let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
156156 case a: Int =>
157157 a
158158 case _ =>
159159 0
160160 }
161161 let PrizeAmount = match getInteger(this, FundBoxStakedToken) {
162162 case a: Int =>
163163 a
164164 case _ =>
165165 0
166166 }
167167 let GovernTokenKey = "GovernTokenMaxDeposit"
168168 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
169169 let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey)
170170 if ((PrizeAmount == 0))
171171 then throw("No prize to Claim")
172172 else if ((UserGovernTokenKey != PrizeWinner))
173173 then throw("You are not the winner hence cannot claim the reward ")
174174 else if ((1 > UserStakedTokenAmount))
175175 then throw(("You have to Stake StakedToken to claim reward
176176 Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount)))
177177 else if ((UserGovernTokenAmount > 100))
178178 then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry(FundBoxStakedToken, 0), DataEntry(GovernTokenKey, 0), DataEntry(UserGovernTokenKey, 0), DataEntry(MaxGovernTokenDepositerKey, "")]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 100, GovernToken)]))
179179 else throw(("You have to deposit 100 GovernToken to claim Reward
180180 Your Balance is: " + toString(UserGovernTokenAmount)))
181181 }
182182
183183

github/deemru/w8io/169f3d6 
33.61 ms