Skip to content

Commit

Permalink
[Bucket] add new collateral - sbETH (#12571)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarekkkkk authored Dec 5, 2024
1 parent ba3ab8f commit 1ff6f81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file added bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions projects/bucket-protocol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ function convertUnderlyingAssets(coin){
// sSUI
if(coin === SCALLOP_sSUI) return ADDRESSES.sui.SUI
// sbETH
if(coin === SCALLOP_sSB_ETH) return ADDRESSES.sui.WETH
if(coin === SCALLOP_sSB_ETH) return ADDRESSES.sui.ETH
// sSCA
if(coin === SCALLOP_sSCA) return SCA_ADDRESS

return coin
}

Expand Down Expand Up @@ -168,7 +169,6 @@ async function tvl(api) {

/// Since we're unable to fetch the price of Scallop's sCOIN, we'll regard sCOIN as underlying assets
const coin = convertUnderlyingAssets(coin_address)

api.add(coin, bucket.fields.collateral_vault);
}

Expand Down
3 changes: 2 additions & 1 deletion projects/helper/coreAssets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,8 @@
"USDC_BNB": "0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",
"BUCK": "0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck::BUCK",
"SUI": "0x2::sui::SUI",
"USDC_CIRCLE": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"
"USDC_CIRCLE": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
"ETH": "0xd0e89b2af5e4910726fbcd8b8dd37bb79b29e5f83f7491bca830e94f7f226d29::eth::ETH"
},
"grove": {
"WGRV": "0xE85f139488c689038028a3EB8fC38dcC29D4C340"
Expand Down

0 comments on commit 1ff6f81

Please sign in to comment.