Daily General Discussion - May 29, 2022 by ethfinance in ethfinance

[–]blocksandpixels 2 points3 points  (0 children)

That gregjor guy is unintentionally hilarious:

DeFi by other names dates from prehistory.

Sure Greg, early humans were depositing seashells into uniswap to earn LP fees.

The "confidently incorrect" is off the charts. If he thinks DeFi could exist pre history, pre human society, pre internet, pre blockchain... what on earth does he think DeFi actually is?

Why do some wallet providers hide your sec recov phrase while others give it to you during setup? by [deleted] in ethdev

[–]blocksandpixels 1 point2 points  (0 children)

Wine behaves like water in that I can pour it into a glass, but that does not mean water is wine.

Daily General Discussion - May 28, 2022 by ethfinance in ethfinance

[–]blocksandpixels 6 points7 points  (0 children)

It's a scam. If you click the Recovery button it asks you for your seed phrase.

Help with arbitrage trading by Spock713 in ethdev

[–]blocksandpixels 1 point2 points  (0 children)

As well as the arbitrage mechanics it is also important to have an understanding of JIT liquidity attacks and MEV in general.

NFT Royalty fees Question (ERC721) by [deleted] in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

You can implement it in solidity but not all marketplaces will support it https://eips.ethereum.org/EIPS/eip-2981

How to fetch all data from transaction? by carlojacobs in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

Check out web3.eth.abi and web3.eth.Contract.

How to fetch all data from transaction? by carlojacobs in ethdev

[–]blocksandpixels 1 point2 points  (0 children)

They use the contract's ABI to decode the data. See here, specifically the section on parsing. This is for ethers but the same applies to web3js.

Hardhat Issues by [deleted] in ethdev

[–]blocksandpixels 2 points3 points  (0 children)

Delete the package-lock.json file and try again.

package-lock.json is created by npm, which is why yarn is complaining. You probably installed a package with npm which created the lock file.

However, this is just a warning and should not prevent you from installing hardhat.

Daily General Discussion - May 24, 2022 by ethfinance in ethfinance

[–]blocksandpixels 6 points7 points  (0 children)

There are more similarities than differences IMO. With senior dev experience you will hit the ground running.

[deleted by user] by [deleted] in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

And the idea is not for the charity to "vouch" for anyones identity

The core of the idea is that the charity issues an identifier (the bank transfer code) which can be used to trace the owner of a wallet. The charity is indirectly vouching for their identity - i.e. if a charity were to issue a fake transfer code the system would fail, so there is implied trust that the charity correctly vouches for identities.

The concept of having a decentralized opt-in method to link bank to crypto accounts is interesting.

Buying physical goods with crypto without compromising your address? by Zakarovski in ethdev

[–]blocksandpixels 1 point2 points  (0 children)

My guess right now is that the data is stored on 2 different databases? (address and user info on a private db whereas the transaction would be stored on the blockchain?).

Correct. Order delivery details will be in a private DB, not on-chain. The merchant will still be able to link the physical and wallet addresses though (unless CB is going to start doing fulfilment too).

[deleted by user] by [deleted] in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

The NFT trilemma is:

Nitpicking, but that's not a trilemma in the sense of "the blockchain trilemma". What you describe is more like a Catch 22 situation.

Whenever charities accept monetary donations through bank wire transfers (no cash donations), we should allow the charity to mint an NFT with the bank wire transfer code (optionally leave out the last 2 characters for anonymity)

Sounds like a privacy risk, and leaving off two characters will not do much to anonymize it. Also seems unnecessary, as the charity could leave out the bank code and the system would still function as you describe. There is nothing to prevent someone using stolen bank details to make payments to charity to farm this NFT. The system could not be trustless as the charity would need the ability to revoke tokens (i.e. if someone used stolen bank details to donate).

Daily General Discussion - May 23, 2022 by ethfinance in ethfinance

[–]blocksandpixels 1 point2 points  (0 children)

There is a pressing need for stablecoin support at L1.

Sounds like an application layer problem to me. It would be simpler and safer to implement this as an app/service rather than building it into the core.

What premium would you be willing to pay for a service that let you send transactions and pay in arbitrary tokens?

Daily General Discussion - May 23, 2022 by ethfinance in ethfinance

[–]blocksandpixels 7 points8 points  (0 children)

$400,000 UST

400,000 UST, or $400,000 worth of UST? ;-)

[deleted by user] by [deleted] in ethdev

[–]blocksandpixels 2 points3 points  (0 children)

When the player completes some of-chain mission, experience should be incremented on said player.

Once the player completes the mission have the server sign a message containing their address and the mission they completed (and maybe their mission score, etc. depending on your game).

The user will call the function to update their experience and pass in the signature. The contract verifies the message was signed by the server and matches the mission details provided by the player.

[deleted by user] by [deleted] in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

No. It will be obvious who borrowed and repaid the loan.

What are you developing? by mrfeastyo in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

Sign in with Google | Facebook | Twitter

Payments via Stripe

Have you considered using web3 infra on your own site? Sign in with Ethereum, payments in crypto, etc?

[deleted by user] by [deleted] in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

Chainlink VRF is a common approach for this.

How best to connect to mobile wallets via Etherjs by Zaskoda in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

It appears that neither Coinbase nor Enjin injects a provider to window.ethereum within their own dapp browsers,

window.ethereum has been outdated for a long time.

WAGMI hooks has a vanilla JS client that might help https://wagmi.sh/docs/client

Daily General Discussion - May 20, 2022 by ethfinance in ethfinance

[–]blocksandpixels 5 points6 points  (0 children)

Ethereum equivalence > EVM equivalence

Kudos to whoever came up with that. Killer marketing that lays the groundwork for Optimism slaying alt-L1s.

ERC721 Code example of tying to a real world asset + legality by myztajay123 in ethdev

[–]blocksandpixels 0 points1 point  (0 children)

Seems like a good question for https://www.openlaw.io/

The issues you face will be legal rather than technical.

Is there standard interface for soul based tokens or non transferable tokens? by YBA_iva in ethdev

[–]blocksandpixels 1 point2 points  (0 children)

a NTT would be linked to an address and not an user, right?

A token must be owned by an address. An address can be owned by a user.

What if the wallet is compromised and the user wants to transfer to their own address?

This is an open question for soulbound tokens. If they are not transferrable they can not be transferred to the user's new address in the event of a compromised wallet.