I have added the following information in the RentSP
Here is the code:
steem.api.getAccounts(["justyy"], function (err, result) {
if (err || (!result)) {
return;
}
result = result[0];
steem.api.getDynamicGlobalProperties(function (err, result1) {
var vesting_shares, delegated_vesting_shares, received_vesting_shares, total_vesting_shares, total_vesting_fund_steem = null;
total_vesting_shares = result1.total_vesting_shares;
total_vesting_fund = result1.total_vesting_fund_steem;
vesting_shares = result.vesting_shares;
delegated_vesting_shares = result.delegated_vesting_shares;
received_vesting_shares = result.received_vesting_shares;
var steem_power = steem.formatter.vestToSteem(vesting_shares, total_vesting_shares, total_vesting_fund).toFixed(3);
var delegated_steem_power = steem.formatter.vestToSteem((received_vesting_shares.split(' ')[0] - delegated_vesting_shares.split(' ')[0]) + ' VESTS', total_vesting_shares, total_vesting_fund).toFixed(3);
var delegated_steem_powerPlus = steem.formatter.vestToSteem(received_vesting_shares, total_vesting_shares, total_vesting_fund).toFixed(3);
var delegated_steem_powerMinus = steem.formatter.vestToSteem(delegated_vesting_shares, total_vesting_shares, total_vesting_fund).toFixed(3);
var powerdown_minus = steem.formatter.vestToSteem(result.vesting_withdraw_rate, total_vesting_shares, total_vesting_fund).toFixed(3);
var cur = $("#output").val();
var s = "Total Steem Power For Rent/Lease: " + steem_power + " SP\n";
s += "Rented: " + delegated_steem_powerMinus + " SP\n";
s += "Power Down: " + powerdown_minus + " SP\n";
s += "Available For Rent: " + (steem_power - powerdown_minus - delegated_steem_powerMinus).toFixed(3) + " SP\n";
$("#output").val(cur + "\n" + s);
});
});
Steem to the Moon🚀!
- You can rent Steem Power via rentsp!
- You can swap the STEEM/SBD to SOL Solana via steem2sol!
- You can swap the STEEM/SBD to ETH Ethereum via steem2eth!
- You can swap the STEEM/SBD to Tether USDT (TRC-20) via steem2usdt!
- You can swap the STEEM/SBD to TRX (TRON) via steem2trx!
- You can swap the STEEM/SBD to BTS (BitShares) via steem2bts!
- Register a free STEEM account at SteemYY!
- Steem Block Explorer
- ChatGPT/Steem Integration: You can type !ask command to invoke ChatGPT
- Steem Witness Table and API
- Other Steem Tools
Greetings
It is a nice opportunity for all token holders
Thank you so much
Peace
Telegram and Whatsapp