Bitcoin Forum
September 24, 2018, 12:47:48 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: A little Help need with the staking pool  (Read 20 times)
sumair7230
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile WWW
January 12, 2018, 10:21:03 AM
 #1

Hello i am looking to open a staking pool but there is one thing i dont get it

If there are 10000000abc coin and a for sure some would have deposit 1000abc some would have 10abc ...
so when ever i get stake how will i  decide how much balance i have to put in all those accounts who deposit in the pool , how will i know the % of abc coin holder ,

Thank you anyone who help me out

http://Coinsteacher.com a simple blog for simple readers .
1537793268
Hero Member
*
Offline Offline

Posts: 1537793268

View Profile Personal Message (Offline)

Ignore
1537793268
Reply with quote  #2

1537793268
Report to moderator
1537793268
Hero Member
*
Offline Offline

Posts: 1537793268

View Profile Personal Message (Offline)

Ignore
1537793268
Reply with quote  #2

1537793268
Report to moderator
Einax Airdrops and Bounties made easy! List your ERC-20 token
FREE
ETH markets launching soon!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537793268
Hero Member
*
Offline Offline

Posts: 1537793268

View Profile Personal Message (Offline)

Ignore
1537793268
Reply with quote  #2

1537793268
Report to moderator
1537793268
Hero Member
*
Offline Offline

Posts: 1537793268

View Profile Personal Message (Offline)

Ignore
1537793268
Reply with quote  #2

1537793268
Report to moderator
adroitful_one
Legendary
*
Offline Offline

Activity: 1190
Merit: 1037


★Nitrogensports.eu★


View Profile WWW
January 12, 2018, 11:42:05 AM
 #2

Hello i am looking to open a staking pool but there is one thing i dont get it

If there are 10000000abc coin and a for sure some would have deposit 1000abc some would have 10abc ...
so when ever i get stake how will i  decide how much balance i have to put in all those accounts who deposit in the pool , how will i know the % of abc coin holder ,

Thank you anyone who help me out

I would say you would run a while/wend statement on all users balances and get the percentage of their balance compared to the total balance. Then, you would just distribute the staking rewards based off of that percentage. For example. If the total balance is 1,000 coins and a user has 100 coins, his percentage is 10%. So if the staking rewards were 10 coins, that user gets 1 coin. Hope this helps.


           █████████████████     ████████
          █████████████████     ████████
         █████████████████     ████████
        █████████████████     ████████
       ████████              ████████
      ████████              ████████
     ████████     ███████  ████████     ████████
    ████████     █████████████████     ████████
   ████████     █████████████████     ████████
  ████████     █████████████████     ████████
 ████████     █████████████████     ████████
████████     ████████  ███████     ████████
            ████████              ████████
           ████████              ████████
          ████████     █████████████████
         ████████     █████████████████
        ████████     █████████████████
       ████████     █████████████████
▄▄
██
██
██
██
██
██
██
██
██
██     
██
██
▬▬ THE LARGEST & MOST TRUSTED ▬▬
      BITCOIN SPORTSBOOK     
   ▄▄
██
██
██
██
██
██
██
██
██
██     
██
██
             ▄▄▄▄▀▀▀▀▄
     ▄▄▄▄▀▀▀▀        ▀▄▄▄▄          
▄▀▀▀▀                 █   ▀▀▀▀▀▀▀▄▄
█                    ▀▄          █
 █   ▀▌     ██▄        █          █              
 ▀▄        ▐████▄       █        █
  █        ███████▄     ▀▄       █
   █      ▐████▄█████████████████████▄
   ▀▄     ███████▀                  ▀██
    █      ▀█████    ▄▄        ▄▄    ██
     █       ▀███   ████      ████   ██
     ▀▄        ██    ▀▀        ▀▀    ██
      █        ██        ▄██▄        ██
       █       ██        ▀██▀        ██
       ▀▄      ██    ▄▄        ▄▄    ██
        █      ██   ████      ████   ██
         █▄▄▄▄▀██    ▀▀        ▀▀    ██
               ██▄                  ▄██
                ▀████████████████████▀




  CASINO  ●  DICE  ●  POKER  
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   24 hour Customer Support   

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
sumair7230
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile WWW
January 13, 2018, 09:47:07 PM
 #3

Hello i am looking to open a staking pool but there is one thing i dont get it

If there are 10000000abc coin and a for sure some would have deposit 1000abc some would have 10abc ...
so when ever i get stake how will i  decide how much balance i have to put in all those accounts who deposit in the pool , how will i know the % of abc coin holder ,

Thank you anyone who help me out

I would say you would run a while/wend statement on all users balances and get the percentage of their balance compared to the total balance. Then, you would just distribute the staking rewards based off of that percentage. For example. If the total balance is 1,000 coins and a user has 100 coins, his percentage is 10%. So if the staking rewards were 10 coins, that user gets 1 coin. Hope this helps.
i am talking how can i get each persons % easily ,

http://Coinsteacher.com a simple blog for simple readers .
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!