seth
- a tool built by Dapphub to interact directly with smart contracts. To install, run the below command. Note: the Dapp Tools suite installs Nix OS.curl -L https://nixos.org/nix/install | sh
SETH_CHAIN
and address / key.deposit()
into the WETH contract. Or the faucet below may have some available WETH.drip
once per day per token.drip
on the faucet specifying a token address:BPool
variable to the address returned. This can be found on etherscan by looking at the internal txs of the tx hash.denorm
is the denormalized weight for the token being added. Weights are stored in this fashion to prevent unnecessary gas costs of recalculating weights every time a new token is added. In our example, since we want 50% WETH, 25% DAI, and 25% MKR we can use the following denormalized weights: 10, 5, 5. (Note: the denorm weights are scaled to Wei; i.e., "1" = 10^18, to allow for non-integer weights.)finalize
the pool. A pool can either be private or shared. A private pool allows the owner to continually adjust tokens, balances, weights, and fees. But prevents anyone else from adding or removing liquidity to that pool - it wouldn't be fair if the owner changed weights if other users have contributed liquidity! A shared pool is created when the finalize
function is called and is a one-way transition. This locks all of the tokens, balances, weights, and opens the ability for outside users to add and remove liquidity.finalize
function is called - and this is a one-way transition. This locks all of the tokens, balances, weights, and opens the pool to outside users to add and remove liquidity.balanceOf
directly on the pool address (since the pools themselves are ERC20 tokens)