Create Your Own Memecoin & Sell It On Uniswap

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

ความคิดเห็น • 264

  • @ismailhaider
    @ismailhaider ปีที่แล้ว +7

    Right time for the video. Subscribed.

    • @coinlisting_net
      @coinlisting_net หลายเดือนก่อน +1

      Have you crafted your own blockchain asset?

  • @Letssendit
    @Letssendit หลายเดือนก่อน +1

    Wonderful. You are rare to find

  • @coin383
    @coin383 ปีที่แล้ว +2

    I had this problem when publishing the contract
    This contract may be abstract, it may not implement an abstract parent's methods completely or it may not invoke an inherited
    contract's constructor correctly.

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Sounds like you need to switch the contract you are deploying from ERC20.sol to MyToken.sol in Remix
      There's an option on the left hand side. It changes back and is a bit annoying if you change other sertings

  • @Walooploop
    @Walooploop 10 หลายเดือนก่อน +1

    You are a great teacher, much appreciated.

    • @coinlisting_net
      @coinlisting_net หลายเดือนก่อน +1

      Did you create your own token?

  • @ismailhaider
    @ismailhaider ปีที่แล้ว +1

    If possible can you add blacklist function like pepe did to avoid other to buy max quantity ?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +3

      Pepe contract is open source so you can just copy it from there

  • @RichReflectionz
    @RichReflectionz ปีที่แล้ว

    Yay I’m 100th to comment, great work James, this has been very informative.
    Just a question, as the ratio is pegged 1:1 to ETH or MATIC, how would I create a pairing of eg. 10000 Memetokens is 1 ETH or MATIC, I’ve been banging my head for a bit to figure this out… thank you

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      You can just change the starting price. Easiest way to do this is to set up a pool on testnet first using app.uniswap.org Get the pricing right on there and then copy the sqrtPriceX96 value from the tx (decode the input) in a block explorer.
      Can also work it out manually and @smartcontractprogrammer has a good video about how to calculate it based on the desired exchange rate

  • @mozmorry
    @mozmorry 6 หลายเดือนก่อน +1

    Please do Pulsechain, i tried this but it does not work thanks.

  • @ShubhamSingh-mn7yj
    @ShubhamSingh-mn7yj ปีที่แล้ว +1

    Great tutorial James!!!! But, how can we add or change the logo of our memecoin?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      The logo is not part of the smart contract and each service that displays a logo is different. So for Metamask for example Google "add erc20 logo metamask" and there will be some frontend code that will implement it

  • @bernardyard-tv5uk
    @bernardyard-tv5uk ปีที่แล้ว +3

    hey @james bachini, thanks a lot for the video.
    i have a question and hope you can help out. If i try to create mymeme with a ratio of 500:1 matic it doesnt work in uniswap upon swaping and always give a price impact error. no matter how i create the sqrtx96 with any ratio it never work except for 1:1. i fixed the ticks for 3000 fee too.
    do you have any idea why it doesnt work with ratio other than 1:1?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      It will do you just need to get the tick bounds right. What I'd recommend is setting it up manually first on Goerli using app.uniswap.org then opening up the tx in etherscan. Go to the bottom and decode the input data. Use that in the contract and you should be good. Hope that helps

    • @bernardyard-tv5uk
      @bernardyard-tv5uk ปีที่แล้ว

      @@JamesBachini Thanks for your attention. I Spent most of the day working as you suggested with no avail. I would appreciate if you can give me the correct working ticks and sqrtx96 values for 500:1 ration of mymeme/matic ❤

    • @RichReflectionz
      @RichReflectionz ปีที่แล้ว

      @@bernardyard-tv5uk did you get this one working? I’m banging my head as anytime I change the ratio value, uniswap says that slippage is above 99% 😂 also it keeps erroring when I change the value of my fee to 3000, even though I changed uint value as well 😢

    • @aausstinn
      @aausstinn 9 หลายเดือนก่อน

      @@RichReflectionz Did you happen do sort this out? :)

    • @jaspersoomer9248
      @jaspersoomer9248 8 หลายเดือนก่อน

      Another month later, did you figure it out? Im looking to have 1:1000 ratio

  • @filayao6180
    @filayao6180 ปีที่แล้ว +3

    hello @JamesBachini
    Thanks for the informative tutorial.
    Nevertheless, While trying to test the contract it only succeeds once and fail thereafter due code on line 52
    Can you please confirm the issue and propose a fix?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Line 52 is setting up the liquidity pool. Are you deploying it on a network that has Uniswap v3? Deploying locally won't work for example

    • @user-ot8rh4qh1i
      @user-ot8rh4qh1i ปีที่แล้ว +1

      @@JamesBachini Its deployed on Eth Goerli testnet, for some reason it deploys the first time. Upon changing the contract a bit and trying to deploy again it errors. I suspect this is due the token0 name been already pooled? I didnt test this yet and need to see if this is the bottleneck. On another note upon the first deployment the liquidity addition also faulted and didnt know why yet

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@user-ot8rh4qh1i it should deploy a new token each time so there can't be a liquidity pool setup. Maybe try it in remix?

    • @user-ot8rh4qh1i
      @user-ot8rh4qh1i ปีที่แล้ว

      @@JamesBachini I do it in remix and indeed it must create it from scratch every time, yet its not working for some reason. I also noticed that it wasn't me alone who is having this issue so definitely there is something ought to be missing

  • @MrBillybathgate5
    @MrBillybathgate5 ปีที่แล้ว +1

    I saw your video !! its really good

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Thank you

    • @S_B_SHORTS09
      @S_B_SHORTS09 2 หลายเดือนก่อน

      @@JamesBachini hello my doubt is -
      Can i create my own meme coin on solana and wait for a pump bit and sell the 50% of supply is that legal and can i eran this way? please answer my doubt..

    • @JamesBachini
      @JamesBachini  2 หลายเดือนก่อน

      @@S_B_SHORTS09 You can certainly create a memecoin and sell some of the supply although if you are selling 50% then it's unlikely anyone would buy it or you would need to create massive demand to absorb that. Many memecoins have the full supply put into liquidity pools so there is no owner as such. Regarding legality you'd need to seek legal advice in your jurisdiction.

    • @S_B_SHORTS09
      @S_B_SHORTS09 2 หลายเดือนก่อน

      @@JamesBachini thanks a lot man to clear my doubt ... u are the first person who literally cleared my doubt SUBSCRIBED UR CHANNEL keep it up :)

  • @adammr8523
    @adammr8523 ปีที่แล้ว

    Hi , please Sir can you explain me your comment " When someone buys the token it adds the base asset to the other side of the pool which creates exit liquidity for anyone looking to sell their holdings. The liquidity provider receipt (NFT) is held by the token contract so it can never be used to remove liquidity." . Many thanks

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      That is just explaining how Uniswap v3 works when someone makes a swap

  • @RWoolf-jq9fz
    @RWoolf-jq9fz ปีที่แล้ว

    Nice video, any chance of making a rebase token video, I'm intrigued how they keep track of user balances

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Simple tutorial here: medium.com/coinmonks/solidity-tutorial-simple-tax-token-fd08bf90f351
      For production code I would take a look at some of the tokens trading on Dextools and check their code in Etherscan

  • @fatherrafaella
    @fatherrafaella 7 หลายเดือนก่อน

    How do I view the cryptocurrency source code of the Solana network? If I take the code of a certain cryptocurrency from the solana network, is it possible to manipulate and create my crypto by changing some parameters? If how do I do this procedure?

    • @JamesBachini
      @JamesBachini  7 หลายเดือนก่อน

      The block explorers are different on Solana but you should find the code in the projects GitHub repository

  • @Virability
    @Virability หลายเดือนก่อน

    So do you have to do coding to make a meme coin? And add ethereum, or other crypto to it

    • @JamesBachini
      @JamesBachini  หลายเดือนก่อน

      It certainly helps. A memecoin technically is just code in a smart contract

  • @OnceUponATymeTV
    @OnceUponATymeTV ปีที่แล้ว

    JERRY INU DONT SLEEP ON IT BUY IT AND HODL NOW!!!!!!

  • @deloir9773
    @deloir9773 6 หลายเดือนก่อน +1

    it say: execution failed.
    visible tokens: 0
    why?

    • @JamesBachini
      @JamesBachini  6 หลายเดือนก่อน +1

      Something failed in the transaction, hard to guess what without anything to go on. Perhaps check if there was an error code and Google it

    • @deloir9773
      @deloir9773 6 หลายเดือนก่อน

      thank you vm!
      is thre a way to generate like 1'000'000 coins which are then depositet directly into Metamask? that we can control all the supply? at the moment that just like a copy of matic with another name (if im not wrong)
      @@JamesBachini

  • @berkant.35
    @berkant.35 5 หลายเดือนก่อน

    I have a promising project in mind and I want to realize it, but I have a question. Can we increase the supply after creating this token? So it's like printing money

    • @JamesBachini
      @JamesBachini  5 หลายเดือนก่อน

      Not by default but you can add an owner function to the contract before you deploy it which allows a single wallet to be able to mint new tokens

    • @berkant.35
      @berkant.35 5 หลายเดือนก่อน

      @@JamesBachini Thanks!

  • @trailzenmtb
    @trailzenmtb ปีที่แล้ว +1

    When I attempt to compile it just spins forever. Did I do something wrong? 🤔

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Strange, perhaps try clearing the browser cache and reloading remix. Never seen that before. If all else fails you could try using hardhat or foundry which do the same thing and are command line tools

    • @trailzenmtb
      @trailzenmtb ปีที่แล้ว +1

      @JamesBachini I'm not sure what the cause was, but I was able to get it to work. This was a fun project for me to learn more about codes and how crypto works.
      Thanks for the info in the video! Also, your response to questions here in the chat were also extremely helpful. I definitely subbed. 🤙

  • @yahirgonzalez5065
    @yahirgonzalez5065 ปีที่แล้ว +1

    Also, is it effective to implement sqrtPriceX96 on line 40? What if the liquidity pool isnt large enough to account for a 1:1 trade. Or am I interpreting that incorrectly?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      You can price it as you please but bare in mind that you are providing only one side of the pool so there's no requirement for Eth/MATIC up front. The base asset gets added to the pool as people buy which provides exit liquidity. Because all the tokens are in the pool initially there's no need for sell side liquidity because there are no tokens in circulation to sell

  • @yahirgonzalez5065
    @yahirgonzalez5065 ปีที่แล้ว +1

    On line 36, how would we modify this to the Ethereum mainnet?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      address constant weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
      Full list of wrapped native tokens at the bottom of this page: docs.uniswap.org/contracts/v3/reference/deployments

    • @jocajoshy
      @jocajoshy ปีที่แล้ว

      Did you get a gas estimation error? I got an error after changing this. I also increased the total number of coins to 1.8 trillion ** 7 ** decimals and when I sent the project it said gas was $147, can you help me fix that, please?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@jocajoshy on Ethereum mainnet that sounds about right. Gas estimation error just means the tx is failing. Likely because of a bad token contract address for weth or deploying it to a local testnet where there is no Uniswap.
      Try it on Goerli testnet or Polygon first to make sure everything works as expected before you deploy to mainnet where gas fees are more significant

    • @jocajoshy
      @jocajoshy ปีที่แล้ว

      @@JamesBachini Hi James - Okay, I did it on MetaMask ETH

  • @ismailhaider
    @ismailhaider ปีที่แล้ว

    How do we know the price for our meme coin? Where do we need to set the price ?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      It's set in the sqrtPriceX96 value. You can calculate it manually or set up the pools how you want on testnet first and then copy the values across from a block explorer (decoded input at bottom of tx)

  • @ssdtrain1
    @ssdtrain1 6 วันที่ผ่านมา

    No one codes anymore

  • @charli7013
    @charli7013 ปีที่แล้ว

    Hello, I saw in metamask you swap MATIC with MyMeme. How we can do it with ETH?. Cant we use ETH contract? Currently its on Polygon right?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +2

      Yes it's on the polygon which has MATIC as the native token. For Eth it would be better to deploy it on Ethereum mainnet or an L2 like Arbitrum that also uses Eth as the native asset

  • @Tarwar
    @Tarwar ปีที่แล้ว

    Thank you sir,please i have one question , howthis contract can be benefic for adopters? Thank you

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      People who buy at the start only have upside. Early adopters have a no risk bet because price can only go up if the entire supply is on Uniswap noone has any to sell at the start

    • @Tarwar
      @Tarwar ปีที่แล้ว +1

      Thank you sir, i kept it for my project,this was what i thought, sorry bro,i am kind of very old school :) i was a dev in 99 ! and came back last year to the web3 with a web4 project and it's very hard nowadays.

  • @publicartcritic7993
    @publicartcritic7993 ปีที่แล้ว

    Great video thanks.
    I created a token but screwed up the liquidity.
    I am confused how to correct this and how to launch for sale...

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Do you want to send me the code and I'll take a look? Email is in the about section on TH-cam

    • @publicartcritic7993
      @publicartcritic7993 ปีที่แล้ว +1

      @@JamesBachini thank you

  • @dtory
    @dtory 11 หลายเดือนก่อน

    Hey i have a question. Since the contract is 1:1 on the fair launched is there anyway we can calculate it for 1:10 or 1:1000

    • @JamesBachini
      @JamesBachini  11 หลายเดือนก่อน +1

      Yes you will need to change the tick positions and sqrtPrice. What I'd suggest is doing it manually in the Uniswap app first then opening the tx up in a block explorer to get the correct values

  • @pmdusman9628
    @pmdusman9628 ปีที่แล้ว +1

    will this be listed on dextools
    when u launch it

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      I'm not launching anything, just a demo

  • @Kryonnnn
    @Kryonnnn 6 หลายเดือนก่อน

    Great video, o was playing with standard erc-20 token, and i was asking myself how automate the insert into liquidity pool! the only thing i don't undestand is this, if i keep for me a 5-10% can i still create a oneside liquidity pool? make no sense to me... i could just sell it to uniswap and have free profit... how do uniswap handle it?
    thank you very much

    • @JamesBachini
      @JamesBachini  6 หลายเดือนก่อน +1

      Think of it like two buckets of tokens on a see saw or balance and to take funds out of one bucket you need to add it to the other one. If you create a one sided pool, one side of the pool has lots of tokenss but there's no base asset like USDC so you can't sell it for profit. If people buy the token they add USDC and take out the tokens. This creates a double sided market for buys and sells.

    • @Kryonnnn
      @Kryonnnn 6 หลายเดือนก่อน +1

      @@JamesBachini ok, so if none buy, i cannot sell it! Make sense! Thank you again!

  • @user-qg2wj6wn2d
    @user-qg2wj6wn2d 6 หลายเดือนก่อน

    Mr. James thank for all the effort you put into this video session, am sorry i have some difficulties while trying to swap the tokens with my testnet matic, i think the problem is coming from uniswap can you please kindly another way we can use to swap our tokens i look forward to for your msg soon thank you

    • @JamesBachini
      @JamesBachini  6 หลายเดือนก่อน

      Not much to go on. Are you getting any errors when setting up the liquidity pool on Uniswap. Perhaps try minting msg.sender the tokens first and setting up the pool manually to start with

  • @youngwookkim9743
    @youngwookkim9743 ปีที่แล้ว

    From the script you provided, I only changed below:
    1) address constant weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
    2) uint supply = 10_000_000 * 10 ** decimals();
    3) unit160 constant sqrtPriceX96 = 77371252455336300000000000
    and it says execution failed.... do you have a guess on why?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Probably as you adjusted the price you would need to adjust the ticks

  • @dhritul
    @dhritul 8 หลายเดือนก่อน

    im not really a coder, but i understand most of it. im trying to understand what the exact code would look like if i needed to keep 5% of the token to stay with the team and 95% to the liquidity pool. im not sure how to use the _mint function per se

    • @JamesBachini
      @JamesBachini  8 หลายเดือนก่อน

      Put this in the constructor function
      _mint(amount,msg.sender);
      Amount needs to include the decimals. The msg.sender part will mint them to the wallet address that deploys the contract.
      You'll need to add the new token contract address to Metamask to see the tokens.
      Try to keep the amount going to Uniswap the same or it will get complicated.

  • @prathamjunius2693
    @prathamjunius2693 ปีที่แล้ว

    hey so when you bought the mymeme using Matic the value was 1 MyMeme = 1.00051 Matic but when you sold, it was 1 Matic = 1.00049 MyMeme. So effectively the value of 1 mymeme has dropped, right? but you said it has gone up. Am I getting this right or is this a stupid question?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      There was probably a tiny amount of slippage. The price goes up on buys and down after someone sells. If you buy and then sell the same amount the price will stay the same. Slippage is the effect that you get the worse price for the trade. So you get the closing price at which your order moved the market to. Hope that makes sense. It's a tiny amount on this but can get quite significant if trading early into small cap pools.

  • @Stateofdinosaurs
    @Stateofdinosaurs ปีที่แล้ว

    I was thinking. Is it possible to make this token using the INonfungiblePositionManager, IPancakeFactory, IPancakePair, IPancakeRouter02 interfaces, to do an automatic liquidity addition and burning?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Probably. I think safemoon done something similar so might be worth checking their code and other memecoins on BNBchain

  • @gfx.8848s
    @gfx.8848s ปีที่แล้ว

    Cool how to add burn method & what if we want to hold 5% token for community airdrop l or marketing rewards how to add that function ?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Just mint some tokens for yourself in the constructor argument in addition to the main mint. There's an internal _burn function in the erc20 library. You can use this as you see fit.

    • @Dan-et4mz
      @Dan-et4mz ปีที่แล้ว

      @@JamesBachini Can you share an example of this code? I've attempted it but I think the price is messing me up.

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@Dan-et4mz _mint(msg.sender, supply / 20);
      _burn(msg.sender, amount);

    • @Dan-et4mz
      @Dan-et4mz ปีที่แล้ว

      @@JamesBachini thank you!

  • @Raffaeledalto
    @Raffaeledalto ปีที่แล้ว

    so how does it work if we don't have to pair the liquidity? i mean we are creating a token and add it on uniswap without any money, people buy it and start to increase the price?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Imagine you are putting one bucket of your tokens on one side of the pool and an empty bucket on the other side for Eth. As people buy the tokens the price goes up the curve and the Eth bucket fills up

  • @splitextreme4933
    @splitextreme4933 7 หลายเดือนก่อน

    Why Im not able to verify?

  • @youth_in_asia
    @youth_in_asia ปีที่แล้ว

    It keeps saying that the gas is the transaction execution will likely fail due to the estimated gas being infinite. Do you know how I could fix this?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Double check contract addresses in a block explorer. Weth needs to be changed for the Uniswap default one which are at the bottom of this page docs.uniswap.org/contracts/v3/reference/deployments
      Make sure you have some native tokens in the wallet to pay gas fees

  • @portall1220
    @portall1220 3 หลายเดือนก่อน

    Hi, James! Hope you're well. I'm trying to do what's in your tutorial, but the Mumbai testnet and Goerli are deprecated now and have been replaced by Sepolia. The problem is, I can't find the wrapped native token address for Sepolia WMATIC, there's only one for WETH in the Uniswap docs. Generally it seems that I can't use Sepolia in the same way you would use the Mumbai address for deployment in the contract you wrote. I'd like to follow your steps and complete everything using only Remix, but it seems that's impossible now with the method you used. Is this correct, or is there still a way? Your method of deploying the token straight to the testnet through 'address constant weth' is simple and I don't haveto play around with hardhat etc. Any advice would be much appreciated, as learning Hardhat is a much harder process that I'd like to avoid if possible. Cheers!

    • @JamesBachini
      @JamesBachini  3 หลายเดือนก่อน

      Yes you should be able to use Sepolia, check the contract addresses for tokens and router in the uniswap docs and yes use weth rather than wmatic

    • @portall1220
      @portall1220 3 หลายเดือนก่อน

      @@JamesBachini Thank you for responding! So if I want to use your method, I can't really pair my token with WMATIC like you did (unless I deploy to mainnet for testing) but test it by pairing it with WETH, because only WETH has an address on Sepolia like WMATIC had on Mumbai? Will the trade testing I'd do on Uniswap with WETH be transferrable when I deploy my token to the mainnet pairing it with WMATIC, though?
      Did some reading, and it is advised to test with the same currency I'd be pairing the token when launching on mainnet. Is this correct or does it really not matter when it comes to functionality and contract logic?

    • @JamesBachini
      @JamesBachini  3 หลายเดือนก่อน

      ​@@portall1220 For each Uniswap deployment there will be a native asset. For Polygon this is wrapped Matic and on Sepolia it is wrapped testnet ETH (WETH).
      As far as I'm aware these two tokens will function exactly the same so you can test with weth on Sepolia and then switch over to wmatic when you are ready to deploy on mainnet.

    • @JamesBachini
      @JamesBachini  3 หลายเดือนก่อน

      There is a list of contract addresses in the Uniswap docs. Here are the ones for Polygon docs.uniswap.org/contracts/v3/reference/deployments/polygon-deployments
      Wrapped native tokens at the bottom

  • @vitorpritsch
    @vitorpritsch ปีที่แล้ว

    Hello Buddy! Great video 👏🙏 I'm having error when veryfing on Etherscan even with the flatten file. Have you ever verified it?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Have you tried using a plugin for whatever framework you are using? i.e. hardhat, remix, foundry all have etherscan verification tools

  • @user-xc6yv3mm7j
    @user-xc6yv3mm7j ปีที่แล้ว

    on line 35, is that number supposed to be your crypto wallet ID or not?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      No that is the contract address for Uniswaps Non-fungible position manager contract

  • @user-yy5tm1lf4u
    @user-yy5tm1lf4u 4 หลายเดือนก่อน

    question if i created for i.e 10 billion can people mine it and it gets more than 10 billion ?

    • @JamesBachini
      @JamesBachini  4 หลายเดือนก่อน

      No, people can't mine your token

  • @abiolaolafare8878
    @abiolaolafare8878 8 หลายเดือนก่อน

    this is a great one. However i did accordingly but when i triend to swap on uniswap, its saying Insufficient liquidity for this trade and its showing 0. please what mistake am i making.

    • @JamesBachini
      @JamesBachini  8 หลายเดือนก่อน

      Did you call the addLiquidity function in the contract?

    • @abiolaolafare8878
      @abiolaolafare8878 8 หลายเดือนก่อน

      yes, i did@@JamesBachini

  • @jainamshah3331
    @jainamshah3331 ปีที่แล้ว

    do know how to create an anti-whale mechanism so that the front running of bots on Uniswap don't happen... this has happened to a lot of coins at start... how to prevent it?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Yeah Pepe had a function for that, like a blacklisting thing where the contract deployer can block addresses. Check their source code if you want to use it.

  • @Ascendify5
    @Ascendify5 7 หลายเดือนก่อน

    So learning solidity language is mandatory for making a solid meme coin?

    • @JamesBachini
      @JamesBachini  7 หลายเดือนก่อน +1

      A memecoin or any token is essentially a Solidity smart contract. You can probably publish something simple without learning much but to add custom functionality etc you would need to use Solidity and have a understanding of it

  • @DeAndreJohnson212
    @DeAndreJohnson212 ปีที่แล้ว

    With this approch would I still be able to collect fees on transations?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +2

      If you create a transfer tax in the contract you can redirect a percentage of each transaction to a treasury wallet or something like that

  • @PolyGrokMatic
    @PolyGrokMatic 8 หลายเดือนก่อน

    how to change the price to make 1 matic gets 100k token?

    • @JamesBachini
      @JamesBachini  8 หลายเดือนก่อน +1

      Mint the tokens to msg.sender set it up manually is the easiest way without diving into tick prices

  • @user-ot8rh4qh1i
    @user-ot8rh4qh1i ปีที่แล้ว

    @James Bachini it seems that if we do the pool as the same transaction of the ctor it fails, i extracted pool creation, supply approval and minting each into its Ownable function. Pool creation and supply approval worked flawlessly. Yet the minting into the pool fails with gas estimation errors and there is no way around it. Do you have an idea why is this happening?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      I had the same issue with the constructor argument. My best guess is that it's because Uniswap deploys a pool contract when you first set up the pair and you can't add liquidity in the same block. Might be wrong on that.
      Double check contract addresses and perhaps get the standard code working on Goerli first and then work back from there to isolate the issue?

    • @user-ot8rh4qh1i
      @user-ot8rh4qh1i ปีที่แล้ว

      @@JamesBachini Thanks for you interaction.
      I had the code work after extracting the functions except for Minting which is still faulting and reverting, i tried it over on Mumbai, Goerli and BSC testnet, all worked and deployed a contract, added pool and approved the supply except for Minting the supply to the pool kept failing. I, ofc researched about the subject and most of it indicated an issue with ticks and ticks Spacing.
      I would appreciate if you had a suggestion how to get the tickSpacing and calculate accurate ticks according to the fee (in solidity)

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      @@user-ot8rh4qh1i it's a bit of a long topic to cover in the comments. I'd recommend having a read of the Uniswap docs and maybe searching GitHub for code that is similar to what you are trying to do.
      Have you tried setting tickLower to -887270 and tickUpper to 887270?
      This will be full liquidity for a 500 fee pool.
      When fee changes the tick size changes so you can adjust the upper and lower values above. Round them to 887200 for example.
      There's also a library called TickMath.sol which might be useful if you are doing more concentrated liquidity positions

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@user-ot8rh4qh1i 0.3% == 60 tick spacing, 0.01% == 1 tick spacing, 0.05 == 10 tick spacing, 1% == 200

  • @omarsdefichannel2211
    @omarsdefichannel2211 ปีที่แล้ว

    how would i do it on ether instead of polygon

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Hard to predict but deployment costs would be more expensive, probably in the hundreds of us dollars. Ethereum mainnet has a higher perceived value though so depends what you are doing.

  • @user-xc6yv3mm7j
    @user-xc6yv3mm7j ปีที่แล้ว

    why does your contract oly cost 90 cents to deploy, mine costs 190 dollars

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Because I deployed it to Polygon which has cheaper transaction fees than Ethereum mainnet

  • @CryptoMatrx
    @CryptoMatrx 10 หลายเดือนก่อน

    Hi James! When deployed, I confirm the transaction in the polygon network, but I get a pending warning in remix and metamask. And it never gets processed.Why?

    • @JamesBachini
      @JamesBachini  10 หลายเดือนก่อน +1

      Hard to say without any error code or something to go on. Did you change the weth address to wrapped matic?

    • @CryptoMatrx
      @CryptoMatrx 9 หลายเดือนก่อน

      @@JamesBachini Yes, I changed it, but I get vm error and push0 error in remix ide. You tried all versions but the result is the same. I do not want to tire you too much on this issue, so I ask you to share the site where I can solve these errors. Thank you. Have a nice day.

    • @CryptoMatrx
      @CryptoMatrx 9 หลายเดือนก่อน

      @@JamesBachini "Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
      Returned error: invalid opcode: PUSH0
      OR the EVM version used by the selected environment is not compatible with the compiler EVM version."
      This is the error I get and it says evm:shanghai in the deploy section, but I can't change it in any way. Even if I send it to Metamask after the above error occurs, the distribution process does not occur.

    • @JamesBachini
      @JamesBachini  9 หลายเดือนก่อน

      @@CryptoMatrxmaybe try debugging the transaction in tenderly

    • @JamesBachini
      @JamesBachini  9 หลายเดือนก่อน

      @@CryptoMatrx it sounds like you are deploying it locally which wont work because there isn't a local version of Uniswap and weth

  • @4fins
    @4fins ปีที่แล้ว

    How do you add a symbol?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Like a logo in metamask? support.metamask.io/hc/en-us/articles/360059582151-How-to-add-a-token-logo

  • @ITSEAZYBOY
    @ITSEAZYBOY ปีที่แล้ว

    Hi, do you take on paid work, am looking for a dev who can start a fair launch contract for us, we have allot of money coming in and just don’t want to make any mistakes thanks

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Sure, contact details are here if you want to send me through the details or get on a call
      jamesbachini.com/contact/

  • @OvercameFStruggles-kailash
    @OvercameFStruggles-kailash 28 วันที่ผ่านมา

    Is everything without fees?

    • @JamesBachini
      @JamesBachini  27 วันที่ผ่านมา

      On testnet everything is free. On mainnet there are transaction fees

  • @Stateofdinosaurs
    @Stateofdinosaurs ปีที่แล้ว

    Friend, could you show me how I can add a fee only when there is a token sale?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Best way to change it from a fair launch to a profit generator would be to mint the msg.sender some tokens too. They can then sell into liquidity as people buy

    • @Stateofdinosaurs
      @Stateofdinosaurs ปีที่แล้ว

      @@JamesBachini Let me take advantage and ask one more question. How do I make token price 1 = 0.000005 BUSD?

    • @Stateofdinosaurs
      @Stateofdinosaurs ปีที่แล้ว

      @@JamesBachini Thank you for your attention my friend. I tested your contract on the Mumbai network and it worked correctly. When I went to test on the smart chain network - testnet an error occurred, I could not deploy. What do I need to do to be able to deploy it on the Smart Chain-testnet network?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@Stateofdinosaurs take a look at this video by @smartcontractprogammer which explains the price calculations
      th-cam.com/video/hKhdQl126Ys/w-d-xo.html

    • @Stateofdinosaurs
      @Stateofdinosaurs ปีที่แล้ว +1

      @@JamesBachini I made some changes to your contract can I send it to you to see if I did it correctly? is there any security flaw? For example, in the way I changed it, could you launch it on the production network and negotiate? I will send the changed code to your email.

  • @amiribrahim906
    @amiribrahim906 ปีที่แล้ว

    is this deployable on Binance Smart Chain ?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Change weth to wBNB and Uniswap to Pancakeswap and it should be good to go, test it on testnet first

    • @amiribrahim906
      @amiribrahim906 ปีที่แล้ว +1

      @@JamesBachini subscribing now.

  • @CyberInves
    @CyberInves ปีที่แล้ว

    how can this benefit me as a owner? how do i get control of my token if its listed on uniswap?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      The idea is to create a permissionless token with no benefits or privileges for the owner ... But you can always mint some tokens for founders, team, investors or dao in the constructor function

    • @CyberInves
      @CyberInves ปีที่แล้ว

      @@JamesBachini how do i mint?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@CyberInves the token is minted in the constructor function when you first deploy the contract

    • @CyberInves
      @CyberInves ปีที่แล้ว

      @@JamesBachini i know but i when i click add liquidity then all my token get sent to uniswap how do i generate more token?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@CyberInves use the _mint function, check openzeppelins erc20 docs if you need details on the spec

  • @alexlaudano8644
    @alexlaudano8644 8 หลายเดือนก่อน

    Hi, what happens if I change the square root price within the code?

    • @JamesBachini
      @JamesBachini  8 หลายเดือนก่อน

      You will need to recalculate the tick positions when adding liquidity

    • @alexlaudano8644
      @alexlaudano8644 8 หลายเดือนก่อน

      @@JamesBachini My token is now deployed on Uniswap. However, it does not seem to be very visible and can only be accessed with the swap feature on the DEX. How can I "verify" my token to make it more visible to other users of uniswap?

    • @alexlaudano8644
      @alexlaudano8644 8 หลายเดือนก่อน

      @@JamesBachini My token is listed on uniswap but only accessible from my personal wallet. How can I make it so that it is visible to everyone who uses uniswap?

    • @alexlaudano8644
      @alexlaudano8644 8 หลายเดือนก่อน +1

      When I try to look up my token on uniswap, it doesn’t come up. Do I need to verify the contract on etherscan before it becomes visible on uniswap?

  • @rishabhp1762
    @rishabhp1762 ปีที่แล้ว

    Does the owner of the token get tax from the other buyers?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      No there are no special privileges for the owner in this example. You could code in either a transfer tax or a token allocation for the owner if you wish

  • @timemasterhms
    @timemasterhms 5 หลายเดือนก่อน

    Can you deploy on Base?

    • @JamesBachini
      @JamesBachini  5 หลายเดือนก่อน

      You can buy addresses will need to be changed

  • @r.achanels3393
    @r.achanels3393 ปีที่แล้ว

    How to verivied contract??

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      There's a plugin for this on remix and hardhat or you can do it manually. You'll need an API key for the block explorer

  • @OvercameFStruggles-kailash
    @OvercameFStruggles-kailash 28 วันที่ผ่านมา

    Hi sir, I have a meme coin idea for Indian buyers specially, it would make a huge impact if it goes viral on universal buying as well.but I am from non coding background.😢 Please help me.

    • @JamesBachini
      @JamesBachini  27 วันที่ผ่านมา

      You can use the open zeppelin contract wizard to generate basic code for tokens. Might still be a bit of a learning curve so try it on testnet first

  • @light-light
    @light-light ปีที่แล้ว

    Interesting. But I concern that,
    If you send all of your coins to an exchange, and that's a one-in-a-kind case, when the price of those coins goes up, can someone from the exchange that owns all of them resist the temptation to sell them?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +2

      Uniswap is decentralized, noone at the exchange owns the coins. They are held in a smart contract and made available for sale

    • @Y44RRO
      @Y44RRO 9 หลายเดือนก่อน

      what about bots ? when You send token and bot instantly buy them all, how to prevent that situation ?
      @@JamesBachini

  • @Stateofdinosaurs
    @Stateofdinosaurs 10 หลายเดือนก่อน

    Sorry friend, I'm going to disturb you once again. This example you created stopped working after the solidity update in the ERC20 contract. Could you check?

    • @JamesBachini
      @JamesBachini  10 หลายเดือนก่อน

      The update to OpenZeppelin requires msg.sender to be passed into the constructor argument of the ownable function

    • @Stateofdinosaurs
      @Stateofdinosaurs 10 หลายเดือนก่อน

      Yes, I did, the contract compiled and was able to deploy. However, when calling the function to add liquidity, it gives an error. I do not know what is happening. Could you make a new video updating the contract? please.@@JamesBachini

    • @JamesBachini
      @JamesBachini  10 หลายเดือนก่อน

      @@Stateofdinosaurs did you change the supply amount going to Uniswap? I don't think it's an issue with the solidity update as it's not ownable

    • @Stateofdinosaurs
      @Stateofdinosaurs 10 หลายเดือนก่อน

      I didn't change the supply@@JamesBachini

  • @alexlaudano8644
    @alexlaudano8644 8 หลายเดือนก่อน

    How much does it cost to make one of these tokens?

    • @JamesBachini
      @JamesBachini  8 หลายเดือนก่อน

      If you can do the dev work yourself then it's just a gas fee for deployment. On ethereum mainnet this can get expensive, up to $1000 during peak congestion times. On other chains deployment costs can be as low as $1. Then there are marketing costs, websites, socials, advertising etc.

    • @alexlaudano8644
      @alexlaudano8644 8 หลายเดือนก่อน

      Which chain did you use in this video? It looked pretty cheap from what I saw

    • @JamesBachini
      @JamesBachini  8 หลายเดือนก่อน

      @@alexlaudano8644 I think it was polygon, tx fees are so low it's like a permanent testnet for ethereum

  • @ismailhaider
    @ismailhaider ปีที่แล้ว

    I am trying to create 300Billiom supply but stuck. Do you have paid support?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Just change the supply value on line 38 to:
      uint supply = 300_000_000_000 * 10 ** decimals();
      github.com/jamesbachini/Memecoin/blob/a44f4bada2fc58ade74db2fc303aec66b6162a14/contracts/Meme.sol#L38

    • @ismailhaider
      @ismailhaider ปีที่แล้ว

      @@JamesBachini Thanks for quick response. You are the best.

  • @karlojuratic
    @karlojuratic 7 หลายเดือนก่อน

    why im not able to verify

    • @coinlisting_net
      @coinlisting_net หลายเดือนก่อน

      Did you generate your digital token?

  • @thegratefuldude320
    @thegratefuldude320 ปีที่แล้ว +1

    How does this pay you the creator?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      It's not designed to make a profit. Some people will add a team allocation of tokens or a transfer tax to compensate the dev work

    • @thegratefuldude320
      @thegratefuldude320 ปีที่แล้ว +1

      Thank you for your reply

    • @thegratefuldude320
      @thegratefuldude320 ปีที่แล้ว +1

      You should do a video on how a person can do this and make some passive scratch

  • @jackpaperhands
    @jackpaperhands 8 หลายเดือนก่อน +1

    that's too much mateeech for me

  • @dollris4575
    @dollris4575 2 หลายเดือนก่อน

    i wanna buy your meme coin ??

  • @william8751
    @william8751 ปีที่แล้ว

    Is the process similar for BEP20 tokens?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Yes bep20 is just an extension of erc20 for Binance smart chain so should work very similar. Change weth for wBNB

  • @Dream-vu6bb
    @Dream-vu6bb ปีที่แล้ว

    HEY I saw your video !! its really good
    Could you please share the code for ETH network
    Please confirm the 35th line address for eth network?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Line 35 is the same
      Line 36 is
      address weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

  • @aitchetesami7194
    @aitchetesami7194 ปีที่แล้ว

    Hi, could you please give the code for bep20 and erc20?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Use the openzeppelin erc20 wizard
      docs.openzeppelin.com/contracts/4.x/wizard

  • @Castillomarcky12
    @Castillomarcky12 ปีที่แล้ว

    Can you do the same but with 20-30% staying with you as creator/team and have a tax per transactions 🙏🏾. I can see you are very active and very helpful. Im Subscribed!!

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Just use the internal _mint(wallet, amount) function in the constructor to mint team funds.
      For tax you need to overwrite the transfer function. Would need to do some testing with Uni v3 to make sure it works

  • @jd4k991
    @jd4k991 11 หลายเดือนก่อน

    Can this be done with BnB

    • @JamesBachini
      @JamesBachini  11 หลายเดือนก่อน +1

      Yes it's BNBchain is EVM so the same code will work. Change Uniswap for Pancakeswap and chainId in the config

    • @jd4k991
      @jd4k991 11 หลายเดือนก่อน +1

      @@JamesBachini thank you James

    • @jd4k991
      @jd4k991 11 หลายเดือนก่อน

      Will it work the same on pancake swap ie you don’t have to add liquidity

    • @JamesBachini
      @JamesBachini  11 หลายเดือนก่อน +1

      @@jd4k991 depends on the architecture. I have it in my head that Pancakeswap was originally based on Uni v2 but to have single sided pools you need concentrated liquidity which was introduced by Uniswap v3. I think there might be a deployment of Uni v3 on BNBchain if Pancakeswap doesn't support it

  • @charli7013
    @charli7013 ปีที่แล้ว

    How we can make ETH/MyMeme ?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      Deploy it on Ethereum. WETH is just wrapped ETH which is an erc20 token that Uniswap can use. This is obfuscated a lot by the UI where Eth and weth are used interchangeably. Worth reading the weth9 smart contract if you haven't already.

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      @@zoltyq869 don't forget to change the weth contract address to mainnet WETH. Deploy and then call addliquidity() and it will add all the tokens to Uniswap pool.

    • @zoltyq869
      @zoltyq869 ปีที่แล้ว

      @@JamesBachini makes sense, I'm relatively new to this, once the contract is deployed how would I go about calling the addliquidity function? Or is that where I just go to uniswap and add rhe liquidity?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@zoltyq869 no it's a function in the contract. If you deploy it with hardhat like in the blog post its actually done automatically as part of the deployment script. Try it on testnet first

    • @zoltyq869
      @zoltyq869 ปีที่แล้ว

      @@JamesBachini gotcha, for some reason when I try to add liquidity in goerli for the contract which has a 500,000,000,000 supply it's saying like 54,000 for the pool? Is that avoidable by having the add liquidity function directly in the contract?

  • @jd4k991
    @jd4k991 11 หลายเดือนก่อน

    Has anyone had any issues verifying this contract on polygon

    • @jd4k991
      @jd4k991 11 หลายเดือนก่อน

      I have launched the contract but can’t verify it? 0x45116b03e9a8ede9a53167a83319ed1ae375f95e

    • @JamesBachini
      @JamesBachini  11 หลายเดือนก่อน

      Did you change the weth address to wmatic?

    • @jd4k991
      @jd4k991 11 หลายเดือนก่อน

      I did. When trying to verify the contract I have used the following settings. License mit - 0.8.18 and a single file then just copy and paste the contract in but it just keeps getting a error 🤷‍♂️

    • @jd4k991
      @jd4k991 11 หลายเดือนก่อน

      James have you tried to verify the token you launched?

    • @JamesBachini
      @JamesBachini  11 หลายเดือนก่อน

      @@jd4k991 yes it verifies fine on etherscan. Maybe try verifying on remix with the plugin?
      Actually that won't work on polyscan. What is the error?

  • @KEFord
    @KEFord ปีที่แล้ว

    Hello Sir, greetings.
    Kindly share a code snippet of how to deploy 80% of the total minted tokens to uniswap address and have the rest sent to the developer address.
    You are of great help.
    Is it also possible to create a trading pair with a stablecoin such as USDT or USDC?
    Love from Africa.

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      You can use the internal _mint(to,amount) function to send some to msg.sender
      Yes baseAsset can be whatever you want, including stablecoins

  • @ashhandle
    @ashhandle ปีที่แล้ว +2

    Can someone invest in my business....

  • @Krishnadasgarv
    @Krishnadasgarv ปีที่แล้ว +1

    hey pls help me

  • @coin383
    @coin383 ปีที่แล้ว

    I want to talk with you

  • @djpolaBarcelona
    @djpolaBarcelona ปีที่แล้ว +1

    🇪🇦👍

  • @gotsnaps
    @gotsnaps 10 หลายเดือนก่อน +1

    Ew polygon

  • @BravoProductions876
    @BravoProductions876 ปีที่แล้ว

    everything worked fine , i launched on mumbai test net however when I went to Uniswap to swap my tesnet matic for the meme token it said Insufficient liquidity for this trade.

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Did you run the addliquidity function first?

    • @BravoProductions876
      @BravoProductions876 ปีที่แล้ว

      @@JamesBachini I believe so, after compiling the contract I deployed it to my wallet address then I added the coins to the liquidity pool. Is it possible I don't have enough testnet matic. I have about 8 matic on the Mumbai test network.

  • @jerrywang3225
    @jerrywang3225 ปีที่แล้ว

    Great tutorial, can you explain about maxTick = 887270, why it is set to this value. Thanks.

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      It's near the max value for a int24 variable. You have to round down based on the tick size which depends on which fee the pool uses. Can find it by setting up a pool manually on the Uniswap UI (on testnet) checking the decoded input data on the tx in etherscan.

    • @jerrywang3225
      @jerrywang3225 ปีที่แล้ว +1

      @@JamesBachini Thank you so much.

  • @light-light
    @light-light ปีที่แล้ว

    And since I don't know much about uniswap, how can I swap another coin (B) I have with A after sending all the coins (A) I just created to uniswap? Even if the owner of uniswap's address does not agree, is all A-coin on sale? Can anyone buy it at any price? So why do prices go up? Even though all coins are on uniswap and everyone can buy them at the same price all the time?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      As you buy price goes up, as you sell price goes down. This can be over multiple orders or in terms of slippage a single order

    • @light-light
      @light-light ปีที่แล้ว

      @@JamesBachini Thanks for reply. So the initial risk I should take is, contract launch fee (about 150$) and few trade fee (Ether) for A coin (what I make)?
      Then what? I post to reddit? What thread where? Then what if people does not show any interest? Lose all that 200$ around money? And the risk that if some of people shows interest and they buy some coin, so I buy together, spend another 200~1000$, and then no one shows interest anymore like situation?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      @@light-light If no one is interested in what you have built it will not be sold and you will have wasted your time and money
      Maybe take a look at past successful projects that are doing a similar thing to what you want to do and try to reverse engineer their marketing and growth systems

    • @light-light
      @light-light ปีที่แล้ว

      @@JamesBachini so exclude contract injection fee, trade cost can be recoop if no one have interest? by trade back A coin to Ethereum.
      And what are past successful projects? search keyword is "meme coin"? I know some like doge or shibainu, but up to now my main role is game dev, so weak at crypt news.

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว +1

      @@light-light Pepe was the most successful one recently. Check CMC for recently listed projects too. If no one buys the token you can not recoup gas fees or costs.

  • @___jd
    @___jd 9 หลายเดือนก่อน

    "matich" ?

    • @JamesBachini
      @JamesBachini  9 หลายเดือนก่อน +1

      Should it be Matik? If so I've been pronouncing it wrong for 3+ years 🫣

    • @___jd
      @___jd 9 หลายเดือนก่อน

      @@JamesBachini I believe so but maybe I’m wrong myself ¯\_(ツ)_/¯

  • @SuperPoopChunk
    @SuperPoopChunk ปีที่แล้ว

    I keep getting gas error when trying to add liquidity on Arb. Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
    Returned error: {"jsonrpc":"2.0","error":"execution reverted","id":810593393667781}. How to fix?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Did you change the weth address to the token contract address on Arbitrum?
      0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
      Make sure caps are correct so the checksum is right.
      Gas error just means tx is failing for an unknown reason

    • @SuperPoopChunk
      @SuperPoopChunk ปีที่แล้ว

      @@JamesBachini no matter what I change I can't deploy pool to uniswap on arb. keep getting gas errors

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      @@SuperPoopChunk gas errors just mean the transaction is failing. Try a test network to see if the issue is related to Arbitrum. I assume you have Eth in your wallet on Arbitrum network to pay gas fees to deploy the contract?

  • @Dan-et4mz
    @Dan-et4mz ปีที่แล้ว

    @JamesBachini
    Great tutorial! Thank you. I want to modify the code so that 93.1% go to the pool supply and 6.9% are reserved. I set supplyPool to 931000 * 10 ** decimals and then supplyFuture to 69000 * 10 * decimals. Then I updated supply to supplyPool in the addLiquidity and fixOrdering functions.
    In the constructor, I have _mint(address(this), (supplyPool)); and then another line _mint(address(this), (supplyFuture));
    Would this be the correct implementation for my objective? There is an error: creation of Grandma errored: Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{\"value\":{\"code\":-32603,\"data\":{\"code\":-32000,\"message\":\"transaction underpriced\"}}}'","id":3860609465159503}
    Do I need to adjust the value of sqrtPriceX96? If so, to what value?

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Double ** decimals()
      Then maybe try minting supplyFuture to msg.sender (which is the deployer address) rather than the contract address

    • @Dan-et4mz
      @Dan-et4mz ปีที่แล้ว

      @@JamesBachini thank you! will give these a go!

    • @amiribrahim906
      @amiribrahim906 ปีที่แล้ว

      @@Dan-et4mz did it work ?

  • @coin383
    @coin383 ปีที่แล้ว

    sir I text you on Instagram but you don't reply

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      Apologies I don't use insta much, will take a look now

  • @Krishnadasgarv
    @Krishnadasgarv ปีที่แล้ว

    function fixOrdering() private {
    if (address(this) < weth) {
    token0 = address(this);
    token1 = weth;
    amount0Desired = supply;
    amount1Desired = 0;
    minTick = 0;
    maxTick = 887270;
    } else {
    token0 = weth;
    token1 = address(this);
    amount0Desired = 0;
    amount1Desired = supply;
    minTick = -887270;
    maxTick = 0;
    }
    }
    }
    I M STUCK HERE PLS HELP ME
    WHAT SHOULD I DO ON THIS

    • @JamesBachini
      @JamesBachini  ปีที่แล้ว

      The code looks fine. What is the issue?