Skip to content

Commit

Permalink
register script closer to functional
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Mar 22, 2024
1 parent 42a1ac3 commit f517121
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
34 changes: 17 additions & 17 deletions packages/hardhat/scripts/registerPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,31 @@ async function main() {
{
token: "0xB77EB1A70A96fDAAeB31DB1b42F2b8b5846b2613", // sepoliaDAI
tokenType: 0, // STANDARD
rateProvider: "???", // contract address that satisfies IRateProvider?
rateProvider: "0x0000000000000000000000000000000000000000", // https://docs-v3.balancer.fi/reference/contracts/rate-providers.html#none-of-the-assets
yieldFeeExempt: false,
},
{
token: "0x80D6d3946ed8A1Da4E226aa21CCdDc32bd127d1A", // sepoliaUSDC
tokenType: 0, // STANDARD
rateProvider: "???", // contract address that satisfies IRateProvider?
rateProvider: "0x0000000000000000000000000000000000000000", // https://docs-v3.balancer.fi/reference/contracts/rate-providers.html#none-of-the-assets
yieldFeeExempt: false,
},
];
const pauseWindowEndTime = 0; // The timestamp after which it is no longer possible to pause the pool
const pauseManager = hre.ethers.ZeroAddress; // Optional contract the Vault will allow to pause the pool
const hookConfig = [
// Flags indicating which hooks the pool supports
{
shouldCallBeforeInitialize: false,
shouldCallAfterInitialize: false,
shouldCallBeforeSwap: false,
shouldCallAfterSwap: false,
shouldCallBeforeAddLiquidity: false,
shouldCallAfterAddLiquidity: false,
shouldCallBeforeRemoveLiquidity: false,
shouldCallAfterRemoveLiquidity: false,
},
];
// The timestamp after which it is no longer possible to pause the pool
const pauseWindowEndTime = 0;
// Optional contract the Vault will allow to pause the pool
const pauseManager = hre.ethers.ZeroAddress;
// Flags indicating which hooks the pool supports
const hookConfig = {
shouldCallBeforeInitialize: false,
shouldCallAfterInitialize: false,
shouldCallBeforeSwap: false,
shouldCallAfterSwap: false,
shouldCallBeforeAddLiquidity: false,
shouldCallAfterAddLiquidity: false,
shouldCallBeforeRemoveLiquidity: false,
shouldCallAfterRemoveLiquidity: false,
};
const liquidityManagement = {
supportsAddLiquidityCustom: false,
supportsRemoveLiquidityCustom: false,
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/app/pools/_components/PoolActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ type Action = "Swap" | "Join" | "Exit";

/**
* Allow user to perform swap, join, and exit transactions with a pool
*
* inspirational demo 👉 https://docs.balancer.fi/tools/core/pools.html
*/
export const PoolActions = () => {
const [activeTab, setActiveTab] = useState<Action>("Swap");
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/app/pools/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Pools: NextPage = () => {
</p>
</div>

<section className="flex justify-center flex-wrap gap-5 w-full mb-5 items-center text-xl py-5 border-b border-t border-accent">
<section className="flex justify-center flex-wrap gap-5 w-full mb-5 items-center text-xl py-5 border-b border-t border-base-100">
<div className={`dropdown dropdown-end ${isDropdownOpen ? "dropdown-open" : ""}`}>
<div
tabIndex={0}
Expand Down Expand Up @@ -98,7 +98,7 @@ const Pools: NextPage = () => {
</div>
</form>
</section>
<div className="text-center mb-3">
<div className="text-center py-5 border-b border-t border-base-100">
<h3 className="font-extrabold text-transparent text-3xl bg-clip-text bg-gradient-to-r from-pink-500 to-yellow-500 mb-0">
{pool?.name}
</h3>
Expand Down

0 comments on commit f517121

Please sign in to comment.