tx · BAGnj6tmuFk7V2GezpzPk5gudk6mfu5WitAtwC1cC6x1

3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua:  -0.01400000 Waves

2021.03.22 18:50 [1449154] smart account 3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua > SELF 0.00000000 Waves

{ "type": 13, "id": "BAGnj6tmuFk7V2GezpzPk5gudk6mfu5WitAtwC1cC6x1", "fee": 1400000, "feeAssetId": null, "timestamp": 1616428239780, "version": 2, "chainId": 84, "sender": "3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua", "senderPublicKey": "CTyHhnVTxf16Z4CmGGneAK8WB5g2QyT4MB8kUn8vPPcu", "proofs": [ "4jDZ5RDPL7d79S4RefWv2May64MfV2KW9Af1Sn6acEFXWDKUEDzTLR78uRVMjJYsCkVNWnCqTqp3x98ZnPq1pFw3" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAYAAAAABR2ZXJzaW9uU3Rha2VDb250cmFjdAAAAAAAAAAAAQAAAAALaGNTZXBhcmF0b3ICAAAAA19fXwAAAAAHaGNXYXZlcwIAAAAFV0FWRVMAAAAACmtleWRBcHBVUkwCAAAACERBUFBfVVJMAAAAAAtrZXlkQXBwTmFtZQIAAAAJREFQUF9OQU1FAAAAABNrZXlTdGFraW5nV2hpdGVsaXN0AgAAABFTVEFLSU5HX1dISVRFTElTVAAAAAAIa2V5Tm9uY2UCAAAABU5PTkNFAAAAABRrZXlTdGFrZUNvbnRyYWN0TmFtZQIAAAAQU3Rha2VDb250cmFjdE5GVAAAAAATa2V5U3Rha2VSZWNlaXB0TmFtZQIAAAAPU3Rha2VSZWNlaXB0TkZUAAAAAA9rZXlMb2NrZWRBbW91bnQCAAAADkxPQ0tFRF9BTU9VTlRfAAAAABtrZXlUb2tlbkNpcmN1bGF0aW5nU3VwcGxpZXMCAAAAGlRPS0VOX0NJUkNVTEFUSU5HX1NVUFBMSUVTAAAAABtrZXlUb2tlblRvdGFsSXNzdW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29udHJhY3RzBQAAABduZXdUb3RhbEJ1cm5lZENvbnRyYWN0cwkABEwAAAACBQAAAAxyZWNlaXB0SXNzdWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAAMcmVjZWlwdElzc3VlAAAACHF1YW50aXR5BQAAAAlyZWNlaXB0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAABNjb250cmFjdEFzc2V0QW1vdW50CAUAAAANY29udHJhY3RBc3NldAAAAAJpZAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB3Rva2VuSWQFAAAAGHVzZXJUb2tlbkFtb3VudFRvUmVjZWl2ZQYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAABh1c2VyVG9rZW5BbW91bnRUb1JlY2VpdmUFAAAAB3Rva2VuSWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5RC1Rag==", "height": 1449154, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8YwTxoUN3NHoT9WWRWe5zHb141dJa7FwQYtMsjGU3PQH Next: 6Tzz65bbwxtk3z2pDqNogbiC4CRubyok3eFHDo5ZaBkN Diff:
OldNewDifferences
164164 case _ =>
165165 throw("Token not existing bro")
166166 }
167- let receiptDesc = ((((((((((contractStakerId + " has locked ") + toString(contractAssetAmount)) + " ") + contractAsset.name) + " during ") + toString(blocksAway)) + " blocks and received ") + toString(userTokenAmountToReceive)) + " ") + tokenInfo.name)
167+ let receiptDesc = ((((((((((contractStakerId + " has locked ") + toString(contractAssetAmount)) + "
168+ ") + contractAsset.name) + " during ") + toString(blocksAway)) + " blocks and received ") + toString(userTokenAmountToReceive)) + " ") + tokenInfo.name)
168169 let receiptIssue = Issue(keyStakeReceiptName, receiptDesc, 1, 0, false, unit, nonce[0])
169170 let receiptId = calculateAssetId(receiptIssue)
170171 let newLockedAmount = (getIntegerValue(this, (keyLockedAmount + contractDescArray[3])) - contractAssetAmount)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let versionStakeContract = 1
55
66 let hcSeparator = "___"
77
88 let hcWaves = "WAVES"
99
1010 let keydAppURL = "DAPP_URL"
1111
1212 let keydAppName = "DAPP_NAME"
1313
1414 let keyStakingWhitelist = "STAKING_WHITELIST"
1515
1616 let keyNonce = "NONCE"
1717
1818 let keyStakeContractName = "StakeContractNFT"
1919
2020 let keyStakeReceiptName = "StakeReceiptNFT"
2121
2222 let keyLockedAmount = "LOCKED_AMOUNT_"
2323
2424 let keyTokenCirculatingSupplies = "TOKEN_CIRCULATING_SUPPLIES"
2525
2626 let keyTokenTotalIssuedSupplies = "TOKEN_TOTAL_ISSUED_SUPPLIES"
2727
2828 let keyTokenTotalBurnedSupplies = "TOKEN_TOTAL_BURNED_SUPPLIES"
2929
3030 let keyAssetOngoingContracts = "ASSET_ONGOING_CONTRACTS_"
3131
3232 let keyAssetIssuedContracts = "ASSET_ISSUED_CONTRACTS_"
3333
3434 let keyAssetBurnedContracts = "ASSET_BURNED_CONTRACTS_"
3535
3636 let keyTotalOngoingContracts = "TOTAL_ONGOING_CONTRACTS"
3737
3838 let keyTotalIssuedContracts = "TOTAL_ISSUED_CONTRACTS"
3939
4040 let keyTotalBurnedContracts = "TOTAL_BURNED_CONTRACTS"
4141
4242 let tokenId = base58'7J7kaZgCXKkWFxjths5ZuMGsrkpxoawPBUGaFvzpHe7V'
4343
4444 let tokenEligibilityPerBlock = (10 * 100000000)
4545
4646 func getStringOrEmpty (key) = match getString(this, key) {
4747 case dataFound: String =>
4848 dataFound
4949 case _ =>
5050 ""
5151 }
5252
5353
5454 func getIntegerOrZero (key) = match getInteger(this, key) {
5555 case isAnInteger: Int =>
5656 isAnInteger
5757 case _ =>
5858 0
5959 }
6060
6161
6262 func getNewNonce () = {
6363 let incrNonce = (getIntegerOrZero(keyNonce) + 1)
6464 [parseIntValue((toString(incrNonce) + toString(height))), incrNonce]
6565 }
6666
6767
6868 @Callable(i)
6969 func depositToStake () = if ((this == i.caller))
7070 then throw("dApp can't interact with self")
7171 else if ((size(i.payments) != 1))
7272 then throw("Not a valid amount of payments (require 1)")
7373 else if ((1 > i.payments[0].amount))
7474 then throw("Can't stake negatif or zero")
7575 else {
7676 let assetId = match i.payments[0].assetId {
7777 case isAnAsset: ByteVector =>
7878 toBase58String(isAnAsset)
7979 case _ =>
8080 hcWaves
8181 }
8282 if ((contains(getStringOrEmpty(keyStakingWhitelist), assetId) != true))
8383 then throw("Asset not on staking whitelist")
8484 else {
8585 let nonce = getNewNonce()
8686 let contractDesc = ((((((((toString(versionStakeContract) + hcSeparator) + toString(height)) + hcSeparator) + toBase58String(i.caller.bytes)) + hcSeparator) + assetId) + hcSeparator) + toString(i.payments[0].amount))
8787 let contractIssue = Issue(keyStakeContractName, contractDesc, 1, 0, false, unit, nonce[0])
8888 let contractId = calculateAssetId(contractIssue)
8989 let newLockedAmount = (getIntegerOrZero((keyLockedAmount + assetId)) + i.payments[0].amount)
9090 let newAssetOngoingContracts = (getIntegerOrZero((keyAssetOngoingContracts + assetId)) + 1)
9191 let newAssetIssuedContracts = (getIntegerOrZero((keyAssetIssuedContracts + assetId)) + 1)
9292 let newTotalOngoingContracts = (getIntegerOrZero(keyTotalOngoingContracts) + 1)
9393 let newTotalIssuedContracts = (getIntegerOrZero(keyTotalIssuedContracts) + 1)
9494 [IntegerEntry(keyNonce, nonce[1]), IntegerEntry((keyLockedAmount + assetId), newLockedAmount), IntegerEntry((keyAssetOngoingContracts + assetId), newAssetOngoingContracts), IntegerEntry((keyAssetIssuedContracts + assetId), newAssetIssuedContracts), IntegerEntry(keyTotalOngoingContracts, newTotalOngoingContracts), IntegerEntry(keyTotalIssuedContracts, newTotalIssuedContracts), contractIssue, ScriptTransfer(i.caller, contractIssue.quantity, contractId)]
9595 }
9696 }
9797
9898
9999
100100 @Callable(i)
101101 func withdrawStake () = if ((this == i.caller))
102102 then throw("dApp can't interact with self")
103103 else if ((size(i.payments) != 1))
104104 then throw("Not a valid amount of payments (require 1)")
105105 else if ((1 > i.payments[0].amount))
106106 then throw("Can't stake negatif or zero")
107107 else {
108108 let assetId = match i.payments[0].assetId {
109109 case isByteVector: ByteVector =>
110110 isByteVector
111111 case _ =>
112112 throw("Not an Asset")
113113 }
114114 let contractInfo = match assetInfo(assetId) {
115115 case isAnAsset: Asset =>
116116 isAnAsset
117117 case _ =>
118118 throw("Couldn't find Asset")
119119 }
120120 if (if (if (if (if ((contractInfo.issuer != this))
121121 then true
122122 else (contractInfo.decimals != 0))
123123 then true
124124 else (contractInfo.quantity != 1))
125125 then true
126126 else (contractInfo.reissuable != false))
127127 then true
128128 else (contractInfo.name != keyStakeContractName))
129129 then throw("Not a Contract")
130130 else {
131131 let contractDescArray = split(contractInfo.description, hcSeparator)
132132 let contractVersion = parseIntValue(contractDescArray[0])
133133 let contractStartingHeight = parseIntValue(contractDescArray[1])
134134 let contractStakerId = contractDescArray[2]
135135 let contractAsset = match assetInfo(fromBase58String(contractDescArray[3])) {
136136 case isAnAsset: Asset =>
137137 isAnAsset
138138 case _ =>
139139 throw("Contract error: asset")
140140 }
141141 let contractAssetAmount = parseIntValue(contractDescArray[4])
142142 if ((size(contractDescArray) != 5))
143143 then throw("Contract error: corrupted")
144144 else if ((contractVersion > versionStakeContract))
145145 then throw("Contract error: version")
146146 else if ((contractStartingHeight >= height))
147147 then throw("Contract error: starting height")
148148 else if (if ((1 > contractAssetAmount))
149149 then true
150150 else (contractAssetAmount > contractAsset.quantity))
151151 then throw("Contract error: quantity")
152152 else if ((contractAssetAmount > assetBalance(this, contractAsset.id)))
153153 then throw("Contract error: dApp balance")
154154 else {
155155 let assetIdString = toBase58String(contractAsset.id)
156156 let blocksAway = (height - contractStartingHeight)
157157 let userTokenEligibility = (blocksAway * tokenEligibilityPerBlock)
158158 let currentAssetLockedAmount = getIntegerValue(this, (keyLockedAmount + contractDescArray[3]))
159159 let userTokenAmountToReceive = fraction(userTokenEligibility, contractAssetAmount, currentAssetLockedAmount)
160160 let nonce = getNewNonce()
161161 let tokenInfo = match assetInfo(tokenId) {
162162 case isAnAsset: Asset =>
163163 isAnAsset
164164 case _ =>
165165 throw("Token not existing bro")
166166 }
167- let receiptDesc = ((((((((((contractStakerId + " has locked ") + toString(contractAssetAmount)) + " ") + contractAsset.name) + " during ") + toString(blocksAway)) + " blocks and received ") + toString(userTokenAmountToReceive)) + " ") + tokenInfo.name)
167+ let receiptDesc = ((((((((((contractStakerId + " has locked ") + toString(contractAssetAmount)) + "
168+ ") + contractAsset.name) + " during ") + toString(blocksAway)) + " blocks and received ") + toString(userTokenAmountToReceive)) + " ") + tokenInfo.name)
168169 let receiptIssue = Issue(keyStakeReceiptName, receiptDesc, 1, 0, false, unit, nonce[0])
169170 let receiptId = calculateAssetId(receiptIssue)
170171 let newLockedAmount = (getIntegerValue(this, (keyLockedAmount + contractDescArray[3])) - contractAssetAmount)
171172 let newCirculatingSupplies = (getIntegerOrZero(keyTokenCirculatingSupplies) + userTokenAmountToReceive)
172173 let newTotalIssuedSupplies = (getIntegerOrZero(keyTokenTotalIssuedSupplies) + userTokenAmountToReceive)
173174 let newAssetOngoingContracts = (getIntegerOrZero((keyAssetOngoingContracts + assetIdString)) - 1)
174175 let newAssetBurnedContracts = (getIntegerOrZero((keyAssetBurnedContracts + assetIdString)) + 1)
175176 let newTotalOngoingContracts = (getIntegerOrZero(keyTotalOngoingContracts) - 1)
176177 let newTotalBurnedContracts = (getIntegerOrZero(keyTotalBurnedContracts) + 1)
177178 [Burn(assetId, 1), IntegerEntry((keyLockedAmount + contractDescArray[3]), newLockedAmount), IntegerEntry(keyTokenCirculatingSupplies, newCirculatingSupplies), IntegerEntry(keyTokenTotalIssuedSupplies, newTotalIssuedSupplies), IntegerEntry((keyAssetOngoingContracts + assetIdString), newAssetOngoingContracts), IntegerEntry((keyAssetBurnedContracts + assetIdString), newAssetBurnedContracts), IntegerEntry(keyTotalOngoingContracts, newTotalOngoingContracts), IntegerEntry(keyTotalBurnedContracts, newTotalBurnedContracts), receiptIssue, ScriptTransfer(i.caller, receiptIssue.quantity, receiptId), ScriptTransfer(i.caller, contractAssetAmount, contractAsset.id), Reissue(tokenId, userTokenAmountToReceive, true), ScriptTransfer(i.caller, userTokenAmountToReceive, tokenId)]
178179 }
179180 }
180181 }
181182
182183
183184 @Verifier(tx)
184185 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
185186

github/deemru/w8io/169f3d6 
44.97 ms