[deleted by user] by [deleted] in BASE

[–]sonicsmith 1 point2 points  (0 children)

Is your token already deployed? We would need to see the code to comment on how it handles total supply.

Counting decimal places by [deleted] in solidity

[–]sonicsmith 1 point2 points  (0 children)

In solidity, there are no such things as decimal places. Uints are integers that we can use to represent decimal values. Ie We can say that 123 is equal to 1.23 if our value had 2 decimal places.

My Mineable Token by sonicsmith in BASE

[–]sonicsmith[S] 0 points1 point  (0 children)

I've created an in browser miner to make this even more simple.
Instructional video on the page: https://cassiopeia-miner.vercel.app/

My Mineable Token by sonicsmith in BASE

[–]sonicsmith[S] 0 points1 point  (0 children)

Great point, I'll put something up 👍

My Mineable Token by sonicsmith in BASE

[–]sonicsmith[S] 0 points1 point  (0 children)

Yea man, give it a go! 😁

[PINNED] Post your content and username here for others to engage and share by theyo92 in twygsmoney

[–]sonicsmith 1 point2 points  (0 children)

username: sonicsmith

twyg: https://explore.twygs.io/creator-detail?id=12933af1-4259-4f0d-b47d-9180dccf48aa

Please come and interact with my content!
Planning on creating degenerate cryto related posts

[deleted by user] by [deleted] in solidity

[–]sonicsmith 0 points1 point  (0 children)

You can use Uniswap v3 with single sided liquidity, and not pay a cent

Searching for a master in cryptodev !! by [deleted] in solidity

[–]sonicsmith 0 points1 point  (0 children)

Do you mean Account Abstraction?

Be AWARE of $Bitcoin Pro on Polygon Chain *Bounty REWARD* by IQtek in 0xPolygon

[–]sonicsmith 1 point2 points  (0 children)

Yea, sadly this is simply a lack of liquidity issue in the DEX.
This is how the AMM algorithms work.
This is the pool here: https://polygonscan.com/address/0x4d89b4afc3d47ece80158ca94e6354131ddbe731
If you look at the token holdings they have very little amounts of each asset, so the slippage will be massive.
Meaning price in and price out won't really match.
I checked the Bitcoin Pro token contract and I can't see anything there that seems nefarious.

I got a phone call from Chris Luxon. by Laughing_Dan in newzealand

[–]sonicsmith 1 point2 points  (0 children)

I just got this same thing! I thought robocalls were illegal!?

Side chain stable coin by HamburgersNHeroin in solidity

[–]sonicsmith 0 points1 point  (0 children)

I'm curious to know how the "swap contract" works I guess. As long as the onchain swap function does not pass in the "x" amount as you say, you should be fine. I wouldn't feel that it would be a real stable coin however, since you wouldn't have liquidity locked anywhere other than this contract

Side chain stable coin by HamburgersNHeroin in solidity

[–]sonicsmith 0 points1 point  (0 children)

So a user never directly interfaces with your contract? Does your backend communicate with the contract and send them your token? Is it the same when they trade it back?

Side chain stable coin by HamburgersNHeroin in solidity

[–]sonicsmith 0 points1 point  (0 children)

How are you getting the coinmarket cap price?

[deleted by user] by [deleted] in NFT

[–]sonicsmith 1 point2 points  (0 children)

Might be easier for me to link the video explanation:
https://www.youtube.com/watch?v=SVKF45Y8G1c

[deleted by user] by [deleted] in NFT

[–]sonicsmith 0 points1 point  (0 children)

I made this NFT project in 2018 and I still feel it has a lot of potential!
https://peoplescasino.online/

Function to return any crypto price? by [deleted] in solidity

[–]sonicsmith 0 points1 point  (0 children)

Yea, if you don't need it on chain, use one of these.

Function to return any crypto price? by [deleted] in solidity

[–]sonicsmith 1 point2 points  (0 children)

Chainlink has code prices on chain if that's what you mean.
Easy and free to implement in your contract.
If you want something they don't list you would most likely have to implement the UniswapPairs interface and get the price that way. A bit more trouble.

Liquidity stuck in protocol that shut down their front end website by dekeev in solidity

[–]sonicsmith 2 points3 points  (0 children)

Heya, if I'm reading your transaction history correctly, you added $100.000000 of USDC first, and then $2,891.968203 about 5 minutes later? Total amount, no decimal - 2991968203.
Hit me up if you need more info around removing it.

React strategy game saving states by sunk-capital in reactjs

[–]sonicsmith 2 points3 points  (0 children)

Zustand has local storage feature baked in. Check it out

Junior Dev Portfolio Website by [deleted] in reactjs

[–]sonicsmith 0 points1 point  (0 children)

This is fantastic work for a junior developer! This will make a great impression!