-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #529 from balancer/develop
Release 1.1.4
- Loading branch information
Showing
52 changed files
with
2,672 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ cache/ | |
balancer-js.iml | ||
temp/ | ||
src/contracts/ | ||
|
||
.vscode/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Display APRs for pool ids hardcoded under `const ids` | ||
* | ||
* Run command: | ||
* yarn example ./examples/pools/volume/volume.avalanche.ts | ||
*/ | ||
import { BalancerSDK } from '@balancer-labs/sdk'; | ||
|
||
const sdk = new BalancerSDK({ | ||
network: 43114, | ||
rpcUrl: 'https://avalanche.public-rpc.com', | ||
}); | ||
|
||
const { pools } = sdk; | ||
|
||
const main = async () => { | ||
const pool = await pools.find( | ||
'0xa1d14d922a575232066520eda11e27760946c991000000000000000000000012' | ||
); | ||
|
||
if (pool) { | ||
const volume = await pools.volume(pool); | ||
console.table([ | ||
{ | ||
id: pool.id, | ||
type: pool.poolType, | ||
totalVolume: pool.totalSwapVolume, | ||
volume, | ||
}, | ||
]); | ||
} | ||
}; | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import '@nomiclabs/hardhat-ethers'; | ||
|
||
/** | ||
* @type import('hardhat/config').HardhatUserConfig | ||
*/ | ||
export default { | ||
networks: { | ||
hardhat: { | ||
chainId: 43114, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.