Skip to content

Commit 0d5e4e8

Browse files
committed
fix: correct totalPrice calculation in EOABuyFractionalStrategy and SafeBuyFractionalStrategy
1 parent d261269 commit 0d5e4e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

marketplace/EOABuyFractionalStrategy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class EOABuyFractionalStrategy extends BuyFractionalStrategy {
104104
);
105105
}
106106

107-
const totalPrice = BigInt(order.price) * unitAmount;
107+
const totalPrice = BigInt(pricePerUnit) * unitAmount;
108108
try {
109109
await setStep("ERC20");
110110
if (currency.address !== zeroAddress) {

marketplace/SafeBuyFractionalStrategy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class SafeBuyFractionalStrategy extends BuyFractionalStrategy {
9898
);
9999
}
100100

101-
const totalPrice = BigInt(order.price) * unitAmount;
101+
const totalPrice = BigInt(pricePerUnit) * unitAmount;
102102
try {
103103
await setStep("ERC20");
104104
if (currency.address !== zeroAddress) {

0 commit comments

Comments
 (0)