Hello
Anyone with experience on how to deploy contract on KCC? KCC=kucoin chain=similar to BSC
Jul 8, 2021, 9:11 AM
just ask
Jul 8, 2021, 9:12 AM
if similar shouldnt be hard
Jul 8, 2021, 9:12 AM
Happy to pay someone to show me
Jul 8, 2021, 9:12 AM
same
Jul 8, 2021, 9:12 AM
use remix change the rpc to kcc
and deploy
Jul 8, 2021, 9:12 AM
No edit in the code?
Jul 8, 2021, 9:12 AM
what do you want to edit?
Jul 8, 2021, 9:13 AM
nope
Jul 8, 2021, 9:13 AM
Just name and ticker
Jul 8, 2021, 9:13 AM
ofcourse router address must ve changed
Jul 8, 2021, 9:13 AM
no edit, just like from eth to bsc
same
Jul 8, 2021, 9:13 AM
also, the swap functions on koffe are different from uniswap
Jul 8, 2021, 9:13 AM
But if I copy existing code on KCC no need to change router, right
Jul 8, 2021, 9:14 AM
right
Jul 8, 2021, 9:14 AM
if there is any yes, change the router to match the swap on kcc
Jul 8, 2021, 9:14 AM
hoping they work
Jul 8, 2021, 9:14 AM
Ok
Jul 8, 2021, 9:14 AM
you must change Interface too
Jul 8, 2021, 9:14 AM
What is that
Jul 8, 2021, 9:14 AM
report if it doesnt so that we can help
Jul 8, 2021, 9:14 AM
on KCC there is KoffeeSwap which has similar interface of uniswap but with different nams
Jul 8, 2021, 9:14 AM
so change the router address to that of koffeeswap
Jul 8, 2021, 9:15 AM
But if I use existing contract on KCC it should be ready right
Jul 8, 2021, 9:15 AM
yes
Jul 8, 2021, 9:15 AM
yes, plus some swap functions have different number of arguments, like msg.value is used instead of specifying buy amount
Jul 8, 2021, 9:15 AM
Or do I edit that after deploy
I'll try
Jul 8, 2021, 9:15 AM
been freelancing for a while
depends but the simplest method is
dividend = (userDeposit * totalReward) / (totalSupply);
Jul 8, 2021, 9:21 AM
I am not following the discussion
what happens?
what happens?
Jul 8, 2021, 9:29 AM
i was wondering, that the liquidity tax that projects use, seems useless, and actually devalues your token .
Since, to add to liquidity , you need to sell half the token, an ultimately the bnb in the lp pool will remain the same.
Since, to add to liquidity , you need to sell half the token, an ultimately the bnb in the lp pool will remain the same.
Jul 8, 2021, 9:30 AM
+++
Jul 8, 2021, 9:30 AM
ahh, glad to know, my thinking wasnt wrong .
Jul 8, 2021, 9:32 AM
guys there is no way to track top 20 holders right? I mean the contract should update the top20 positions at each trade
so will be too expensive
Jul 8, 2021, 9:34 AM
you can
but it would require loop, 20 might be an overkill
10 is ok
Jul 8, 2021, 9:36 AM
yes I thought too
well each trade could change the top20 holders
so at each trade you must compare the new balance of the recipient with the top20
how can you calculate all holders balance?
let's suppose you have 10k holders, you can't calculate each holder balance
Jul 8, 2021, 9:41 AM
or create a dapp, use bscan api
to get top 20 outside the token
Jul 8, 2021, 9:41 AM
yes I am talking with contract only
yes yes thanks to all
I know how to do with loops, and I know it woudl be a real shit
for this I asked maybe there was a magic trick
I know how to do with loops, and I know it woudl be a real shit
for this I asked maybe there was a magic trick
agree 100%
Jul 8, 2021, 9:50 AM
How do I set RPC in remix
Jul 8, 2021, 9:54 AM
you can just use metamask with remix
Jul 8, 2021, 9:55 AM
No need to edit anything in remix?
Jul 8, 2021, 9:55 AM
yep
just sign tx's with mm
but mm already does it for you for the popular networks
Jul 8, 2021, 9:58 AM
another question for you
if I use approve function in the same tansaction of transferFrom, the approve function that should ncrease allowance of my contract to use user tokens in reality increase its own alowance.
This because when I do: Token.approve(msg.sender, amount), the sender of the trx is not the user but the contract
This because when I do: Token.approve(msg.sender, amount), the sender of the trx is not the user but the contract
so how canI do, I want to avoid user to manual approve it using token contract
this is not related to liquidity
Jul 8, 2021, 10:22 AM
It won't be that expensive. After some optimization, worst case scenario is 21 iterations
21 is big though, but not as bad as it looks
Jul 8, 2021, 10:26 AM
I just read amother time what he asked and I was wrong. He need top20 traders per volume, not holders
so even worse
so even worse
Jul 8, 2021, 10:30 AM
😂
wouldnt that be the same technically freezy?
Jul 8, 2021, 10:31 AM
well there should be a mapping of all tradings of an owner
but the idea
really I don't like it
really I don't like it
let's say I start to buy/sell just to get volume trading
Jul 8, 2021, 10:33 AM
constructor (string memory _NAME, string memory _SYMBOL, uint256 _DECIMALS, uint256 _supply, uint256 _txFee,uint256 _lpFee,uint256 _DexFee,address routerAddress,address feeaddress,address tokenOwner,address service) public payable {
_name = _NAME;
_symbol = _SYMBOL;
_decimals = _DECIMALS;
_tTotal = _supply * 10 _decimals;
_rTotal = (MAX - (MAX % _tTotal));
_taxFee = _txFee;
_liquidityFee = _lpFee;
_previousTaxFee = _txFee;
_devFee = _DexFee;
_previousDevFee = _devFee;
_previousLiquidityFee = _lpFee;
_maxTxAmount = (_tTotal * 5 / 1000) * 10 _decimals;
numTokensSellToAddToLiquidity = (_tTotal * 5 / 10000) * 10 ** _decimals;
_devWalletAddress = feeaddress;
_name = _NAME;
_symbol = _SYMBOL;
_decimals = _DECIMALS;
_tTotal = _supply * 10 _decimals;
_rTotal = (MAX - (MAX % _tTotal));
_taxFee = _txFee;
_liquidityFee = _lpFee;
_previousTaxFee = _txFee;
_devFee = _DexFee;
_previousDevFee = _devFee;
_previousLiquidityFee = _lpFee;
_maxTxAmount = (_tTotal * 5 / 1000) * 10 _decimals;
numTokensSellToAddToLiquidity = (_tTotal * 5 / 10000) * 10 ** _decimals;
_devWalletAddress = feeaddress;
Jul 8, 2021, 10:33 AM
as I said
Jul 8, 2021, 10:33 AM
you set it
its a function
external onlyOwner
648
Jul 8, 2021, 10:36 AM
are you talking with me?
Jul 8, 2021, 10:36 AM
Pumpgame sorry
Jul 8, 2021, 10:36 AM
okkk ahah
Jul 8, 2021, 10:37 AM
he couldnt find the values for the fees
but there are external Owner functions to set the fees
_taxFee = 0;
_devFee = 0;
_liquidityFee = 0;
_devFee = 0;
_liquidityFee = 0;
line 757 is where it initializes
sorry thats remove all fees
Jul 8, 2021, 10:39 AM
you should stop spamming the same message
Jul 8, 2021, 11:18 AM
Hei freezy, do you think that's possible?
Jul 8, 2021, 11:21 AM
Im trying to get an answer on this matter and find someone
As in my opinion that eosio guy was spamming with 25 messages😒
ive been here for 3+ years in this group to
Please advise me on were to find an answer atleast!
Jul 8, 2021, 11:43 AM
maybe ask to Pancake devs no?
do you have proof?
Jul 8, 2021, 12:30 PM
Not a bad idea no
Jul 8, 2021, 12:42 PM
so what happened
0x94afdd8164c2e20761c907d49c4dd61edc0e99fb this is you?
and this should be the stealer:
0xEFbE8b45e5122A1172f7f991FCE44E2FB3075cCc ?
0xEFbE8b45e5122A1172f7f991FCE44E2FB3075cCc ?
well it has tons of tokens
well the only way to use the transfer in this way is to use the sender wallet
you have approved PORNROCKET
mmm don't find the bug
sorry
sorry
Jul 8, 2021, 12:57 PM