Skip to content

Commit

Permalink
add pools/bsc.json and update token name
Browse files Browse the repository at this point in the history
  • Loading branch information
minhnhathoang committed Oct 11, 2024
1 parent 2c97c2d commit 7506ad4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/liquidity-source/oeth/pools/ethereum.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"tokens": [
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"name": "weth",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": 18,
"swappable": true
},
{
"address": "0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3",
"name": "oeth",
"name": "Origin Ether",
"symbol": "OETH",
"decimals": 18,
"swappable": true
Expand Down
4 changes: 4 additions & 0 deletions pkg/liquidity-source/wbeth/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ var wbethABIData []byte
//go:embed pools/ethereum.json
var ethereumPoolData []byte

//go:embed pools/bsc.json
var bscPoolData []byte

var BytesByPath = map[string][]byte{
"pools/ethereum.json": ethereumPoolData,
"pools/bsc.json": bscPoolData,
}
23 changes: 23 additions & 0 deletions pkg/liquidity-source/wbeth/pools/bsc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"id": "0xa2e3356610840701bdf5611a53974510ae27e2e1",
"type": "generic-simple-rate",
"lpToken": "",
"tokens": [
{
"address": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
"name": "Ethereum Token",
"symbol": "ETH",
"decimals": 18,
"swappable": true
},
{
"address": "0xa2e3356610840701bdf5611a53974510ae27e2e1",
"name": "Wrapped Binance Beacon ETH",
"symbol": "wBETH",
"decimals": 18,
"swappable": true
}
]
}
]
4 changes: 2 additions & 2 deletions pkg/liquidity-source/wbeth/pools/ethereum.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"tokens": [
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"name": "weth",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": 18,
"swappable": true
},
{
"address": "0xa2e3356610840701bdf5611a53974510ae27e2e1",
"name": "wbeth",
"name": "Wrapped Binance Beacon ETH",
"symbol": "wBETH",
"decimals": 18,
"swappable": true
Expand Down

0 comments on commit 7506ad4

Please sign in to comment.