Skip to content

Commit e166c06

Browse files
chore: code cleanup
1 parent 7dfbaff commit e166c06

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

packages/common/src/allo/backends/allo-v2.ts

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,40 +1497,24 @@ export class AlloV2 implements Allo {
14971497
_token = getAddress(NATIVE);
14981498
}
14991499

1500-
15011500
const strategy = new DirectAllocationStrategy({
15021501
chain: this.chainId,
15031502
poolId: poolId,
15041503
});
1505-
1506-
const txData = strategy.getAllocateData(
1507-
{
1508-
profileOwner: args.recipient,
1509-
amount: BigInt(args.amount.toString()),
1510-
token: _token,
1511-
nonce: args.nonce,
1512-
},
1513-
);
1504+
1505+
const txData = strategy.getAllocateData({
1506+
profileOwner: args.recipient,
1507+
amount: BigInt(args.amount.toString()),
1508+
token: _token,
1509+
nonce: args.nonce,
1510+
});
15141511

15151512
const tx = await sendRawTransaction(this.transactionSender, {
15161513
to: txData.to,
15171514
data: txData.data,
15181515
value: BigInt(txData.value),
15191516
});
15201517

1521-
// const encodeData = utils.defaultAbiCoder.encode(
1522-
// ["address", "uint256", "address", "uint256"],
1523-
// [args.recipient, args.amount, _token, args.nonce]
1524-
// );
1525-
1526-
// const tx = await sendTransaction(this.transactionSender, {
1527-
// address: this.allo.address(),
1528-
// abi: AlloAbi,
1529-
// functionName: "allocate",
1530-
// args: [poolId, encodeData as Hex],
1531-
// value: args.tokenAddress === zeroAddress ? args.amount : 0n,
1532-
// });
1533-
15341518
emit("transaction", tx);
15351519

15361520
if (tx.type === "error") {

0 commit comments

Comments
 (0)