Commit 68b522fb authored by Masterdubs's avatar Masterdubs

fixing amount to take wallet

parent ebb2986e
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
......@@ -144,10 +144,18 @@ const takeResults = async () => {
const checkAddressIsMasternode = async (address) => {
let res = await contentNodeContract.methods.getNodeAddress(address).call()
if (!res.startsWith('0x0000')) return 10000
let balance1 = await web3.eth.getBalance(address)
let pirl1 = web3.utils.fromWei(balance1, 'ether')
if (!res.startsWith('0x0000')) return 10000 + Number(pirl1)
let res2 = await premiumMasternodeContract.methods.getNodeAddress(address).call()
if (!res2.startsWith('0x0000')) return 20000
else return 0
let balance = await web3.eth.getBalance(address)
let pirl = web3.utils.fromWei(balance, 'ether')
if (!res2.startsWith('0x0000')) return 20000 + Number(pirl)
else {
let balance3 = await web3.eth.getBalance(address)
let pirl3 = web3.utils.fromWei(balance3, 'ether')
return Number(pirl3)
}
}
const checkWithBlackList = (address) => {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment