Questions tagged [compound-protocol]

The tag has no usage guidance.

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

What is Comet address of Compound III on Polygon mainnet

I want to supply & borrow from compound III on polygon mainnet. As per Compound III docs, I need to call the supply & withdraw method on Comet instance. Take a look here. As per solidity ...
Rishabh Raghwendra's user avatar
0 votes
1 answer
17 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
  • 328
1 vote
2 answers
602 views

How does `msg.sender == address(this)` work in compound protocol?

I was going through compound's Timelock.sol contract and found this function. function setDelay(uint delay_) public { require( msg.sender == address(this), "...
Shubham Sharma's user avatar
0 votes
1 answer
48 views

When liquidations occur on Aave or Synthetix or Compound or any other protocol, where are the liquidated assets sold?

Do they sell them on Uniswap or Binance? Does it happen automatically? If they just sell on some random Dex, how do they avoid major slippage? Where does a protocol say how it liquidates positions?
Ilan Katz's user avatar
1 vote
2 answers
184 views

Help! Compound Finance CEther's liquidateBorrow function

Was learning how call liquidation on Compound Finance via another smart contract. In compound's codebase, CEther's liquidateBorrow() is different from other CERC20's liquidateBorrow(). Was trying the ...
Alvin Yap's user avatar
2 votes
1 answer
106 views

Is using Compound as oracle dangerous?

I'm really curious about this. If I use Compound CToken function exchangeRateStored() as oracle for my project, is it dangerous? Can someone abuse that? Using flash loan to increase/decrease ...
BerlinHardFork's user avatar
2 votes
0 answers
236 views

Pros and cons of interest bearing elastic supply (rebase) tokens

Single asset vaults usually choose from 2 types of tokens that represent user shares. Tokens pegged 1:1 to underlying assets employing the rebase architecture. When underlying asset volume grows then ...
origaminal's user avatar
1 vote
1 answer
639 views

How fast are liquidation bots?

Wondering how liquidation bots work in general in terms of looking for possible liquidations. Was trying to monitor some unhealthy addresses on Venus BSC with Comptroller.getAccountLiquidity() ...
Rigg's user avatar
  • 11
0 votes
1 answer
16 views

implementation is in different address

I have a weird situation. Here is the contract address of Compound Comptroller contract. However, the address above doesn't implement the contract. Actual implementation is in different address. What ...
Emrah's user avatar
  • 1,564
0 votes
1 answer
47 views

Can I borrow more than Account Liquidity, from Compound Finance Protocol?

I am working on an application that allows users to go Long/Short on ETH. To go Long: Supply eth to Compound Protocol Borrow stable coin from Compound Protocol (against eth supplied) Buy eth on ...
Rushank Savant's user avatar
1 vote
0 answers
91 views

How to understand compound's exchange rate

With compound, when a user deposits a token (let's say Ether), they receive cToken in return. If we use ETH market as an example, as of Apr 9, 2022, the exchange rate of ETH / cETH is about 50. ...
yiksanchan's user avatar
1 vote
0 answers
89 views

How to get cToken address from token address in Compound

I'm looking for a function in Compound which take address of token (0x6B175474E89094C44Da98b954EedeAC495271d0F Dai) as parameter, and return cToken address (0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643 ...
thesuspect11's user avatar
0 votes
1 answer
37 views

can someone explain liquidations to me -for the case when price of borrowed asset suddenly goes up and in turn exceeds the supplied collateral value?

I understand concept of liquidations, which is when the value of collateral drops below the borrowed asset value - this can happen either when : collateral asset value drops borrowed asset value ...
omega's user avatar
  • 1
1 vote
0 answers
422 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
3 votes
0 answers
45 views

Why borrow DAI from compound has lower rate than borrow USDT?

As shown in the figure, borrowing Tether from compound have 10.73% APY, while borrow DAI from compound only have 4.64%. However, we can exchange DAI or USDC to Tether in any exchange very easily, so ...
loin.liao's user avatar
1 vote
0 answers
54 views

AAVE Protocol v1 issue on reserve addresses with compound ctoken addresses

https://kovan.etherscan.io/tx/0xa7f5e857d1a9ecb4aca0714b24a70ca0942cc1a656c8e09b6d01bab9af4ec9e5 I am trying to make a transaction from DSProxy (Smart Wallet) on a contract https://kovan.etherscan.io/...
Mohsin Laeeque's user avatar
1 vote
0 answers
497 views

Compound - mantissa and exponent

Trying to understand how the following example - from Compound Finance - works, in case you are trying to store something of order 1x10^19. From GitHub - https://github.com/compound-finance/compound-...
Dar's user avatar
  • 11
0 votes
1 answer
50 views

Are the yields on Compound legit?

I have been reading recently about the DeFi space. I have noticed (admittedly, pretty late) quite a bit of buzz regarding WBTC and its applications in Ethereum. I have read about the Compound dapp and ...
Runeaway3's user avatar
  • 113
2 votes
1 answer
74 views

Rationale for using ETH as the unit of account for oracle pricing data

These are Compound Finance's former oracle contracts: PriceOracle PriceOracleProxy I say "former" because Compound switched to the Open Price Feed UniwapAnchoredView.sol oracle on Aug 17, ...
Paul Razvan Berg's user avatar
2 votes
0 answers
31 views

Is there any free-to-use scenario builder?

The Compound Protocol has a collection of high-level integration tests, dubbed "scenarios": https://github.com/compound-finance/compound-protocol/tree/v2.8.1/spec Which look like this: Test &...
Paul Razvan Berg's user avatar