Skip to content

Commit 6f096a1

Browse files
committed
add test for getSpenderAddress
1 parent 3aa13c7 commit 6f096a1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/protocol/integration/amm/ArrakisUniswapV3AmmAdapter.spec.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import "module-alias/register";
22
import { Account } from "@utils/test/types";
3+
import { Address } from "@utils/types";
34
import { AmmModule, ArrakisUniswapV3AmmAdapter } from "@utils/contracts";
45
import DeployHelper from "@utils/deploys";
56
import {
@@ -102,4 +103,21 @@ describe("ArrakisUniswapV3AmmAdapter", () => {
102103
});
103104
});
104105

106+
describe("getSpenderAddress", async () => {
107+
let poolAddress: Address;
108+
109+
before(async () => {
110+
poolAddress = arrakisV1Setup.wethDaiPool.address;
111+
});
112+
113+
async function subject(): Promise<any> {
114+
return await arrakisUniswapV3AmmAdapter.getSpenderAddress(poolAddress);
115+
}
116+
117+
it("should return the correct spender address", async () => {
118+
const spender = await subject();
119+
expect(spender).to.eq(arrakisV1Setup.router.address);
120+
});
121+
});
122+
105123
});

0 commit comments

Comments
 (0)