Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

why the error is not checked in Hex2Bytes of bytes.go?

https://github.com/ethereum/go-ethereum/blob/master/common/bytes.go I am looking at the following codes https://github.com/ethereum/go-ethereum/blob/a3829178af6cec64d6def9131b9340a3328cc4fc/common/...
ak tech's user avatar
1 vote
0 answers
13 views

Would a circuit breaker feature always execute one block after the trigger is detected?

Lets say I had a Dapp that used a popular stablecoin whereby the stablecoin had a freeze function. Then say I wanted to detect if the stablecoin accounts were frozen and then circuit break the Dapp. ...
zunior's user avatar
  • 1,322
1 vote
2 answers
71 views

Ways to earn ETH passive income

I have a decent amount of ETH in my cold wallet (<32 ETH). These bag of ETH is my HODL bag, meaning that I don't want to spend it and I am planning to hold it for the next 10-20 years. What are my ...
Chunior's user avatar
  • 11
1 vote
1 answer
21 views

How to deploy a smart contract with the help of Api on bsctestnet

I have created one smart contract and want to create a button on the frontend which will deploy the contract to the testnet whenever we click on it, So is this can be done through an API, and if yes ...
Raju Raj Kishore's user avatar
0 votes
1 answer
18 views

liquidate undercollateralized user without third party intervention

Im building a simple lending-borrowing protocol, using yield-generating and debt tokenization pattern, and for users liquidation when its position is undercollateralized, i want to liquidate part of ...
noro meb's user avatar
  • 368
1 vote
0 answers
29 views

Is it possible to change what cryptocurrency a defi protocol uses without hard forking?

For example, let's say a defi staking protocol uses exclusively USDC token, but it decides to use another stablecoin instead, like Tether. Is there any way to smoothly translate all the assets staked ...
HeeeeSark's user avatar
0 votes
1 answer
81 views

Compound Protocol: Which contract holds the collateral?

I would like to recreate compound.finance as a project but I don't really understand the architecture. Their white paper of website wasn't really helpful in this matter. When I want to borrow I first ...
Kuly14's user avatar
  • 362
0 votes
1 answer
222 views

DeFi vs. DApps?

Is there a clear distinction between DeFi and DApps? I just recently read about the DeFi Stack (presented by Fabian Schär) but I'm actually missing an understandable delimitation or definition that ...
Ndrslmpk's user avatar
  • 112
0 votes
1 answer
173 views

Get AAVE LendingPool address using Vyper interface contract

I'm at the very early stages of trying to understand how to send coins to AAVE. I've coded the following which is the first step to get the pool address from the proxy contract. from vyper.interfaces ...
Christian Papathanasiou's user avatar
1 vote
0 answers
473 views

Sending ERC20 tokens using web.py

I'm exploring blockchain development newly. I'm trying to explore how to send ERC20 token from my wallet to compound protocol. To be specific, I'm having a Metamask wallet with my private key, and I ...
soumyadeep roy's user avatar
1 vote
0 answers
49 views

How do farming/staking platforms really profit? [closed]

Sorry if this question isn't directly related to Ethereum, but to DeFi in general. I understand how we, users of platforms like PancakeSwap, Aave, Curve and such, can profit from these platforms when ...
LyxeResearcher's user avatar
0 votes
1 answer
439 views

Non-existent import files in pancake-swap-periphery

I'm looking for someone to give me a basic understanding and direction regarding pancakeswap forking. I cloned pancake-swap's periphery repository from github and in its contracts it imports "@...
mzaidi's user avatar
  • 1,012
0 votes
1 answer
1k views

Must I add WETH conversion descritpion in a contract and how?

I'm confused about how I write a contract about WETH conversion. When we write a smartcontract depositing user funds into a contract, should we necessarily write some codes of converting eth into weth ...
wat's user avatar
  • 21