Hello experts....! Please help me.. How to lock liquidity through iuniswap router contract... If we want to lock liquidity for a specific time, what's the code to be modified in router contract... Is it the one I shared here??
Jun 8, 2021, 8:25 AM
Jun 8, 2021, 8:25 AM
no you have to add a timelock, but the LP in default code usually go to owner. Check your swap function. You can use a thir party service like unicrypt
Jun 8, 2021, 8:33 AM
But the auto Liquidity % go to liquidity pool, so how to lock it for 5 years etc.. please guide
Jun 8, 2021, 9:17 AM
you lock LP
which you get after adding liquidity
Jun 8, 2021, 9:19 AM
How to add lock function in smart contract
I think it is locked forever, so how to lock for specific time
Jun 8, 2021, 9:20 AM
for newbie,,what piece of code to looking for lock liquidity pool
Jun 8, 2021, 9:22 AM
As some projects says that on every transaction N% of tokens go to Liquidity pool and locked forever
Jun 8, 2021, 9:24 AM
create timelock smartconttract (if you don't wanna use unicrypt)
Jun 8, 2021, 9:24 AM
So my point is, how it is locked
How to modify iuniswap router contract for Liquidity lock
Jun 8, 2021, 9:25 AM
Liquidity is being added by mechanism sent by owner of smartcontract. but as long as he didn't renounced the ownership, he has the access to those lp
by renouncing the ownership. (assuming that your token smartcontract and adding liquidity function for each transaction)
Jun 8, 2021, 9:26 AM
I'm talking about this
Jun 8, 2021, 9:28 AM
contract sell 1.5% token of every transaction and take 1.5% of safemoon to add liquidity continuously. and these LP are locked as ownership is transferred to 0x000 address.
Jun 8, 2021, 9:30 AM
It means without renounce ownership liquidity is not locked forever?
But most of the people demand that we need auto Liquidity to be locked for specific time?
Jun 8, 2021, 9:34 AM
are you sure?
you can change the receiver of LP
Jun 8, 2021, 9:35 AM
Where it is mentioned in code?
Jun 8, 2021, 9:36 AM
Jun 8, 2021, 9:36 AM
didn't checked, talked about something else. 😇
Jun 8, 2021, 9:37 AM
testnet?
Jun 8, 2021, 9:43 AM
You can test and check
Jun 8, 2021, 9:45 AM
bro ahahh
I told you set gas limit to 299999
you left it at 21k
Jun 8, 2021, 9:48 AM
kk
0xce72c8c184629266926a946f12d12dd95643d4c3
Jun 8, 2021, 9:58 AM
oh god safe erc20 error
Jun 8, 2021, 9:59 AM
you can even try
Jun 8, 2021, 10:00 AM
ok replace safeTransfer with normal transfer
yes I tried
Jun 8, 2021, 10:01 AM
can you send some bnb test to this address 0xce72c8c184629266926a946f12d12dd95643d4c3 min: 0.1
Jun 8, 2021, 10:06 AM
I tried
0.1 and 0.2
Jun 8, 2021, 10:06 AM
so i have make safeTransfer to transfer()?
still same
Jun 8, 2021, 10:21 AM
show me
come in private
Jun 8, 2021, 11:23 AM