Skip to content

Commit 4f5415d

Browse files
authored
fix amount to distribute in transfer (#521)
1 parent 9b8ed57 commit 4f5415d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

onchain/cairo/launchpad/src/launchpad/launchpad.cairo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,8 +1142,7 @@ pub mod LaunchpadMarketplace {
11421142
let creator_fee_distributed = launch.creator_amount_distributed;
11431143
let creator_fee_to_distribute = launch.creator_amount_to_distribute;
11441144
if !is_creator_fee_sent_before_graduated && launch.is_liquidity_launch == true {
1145-
let creator_fee_amount = launch.creator_amount_received;
1146-
quote_token.transfer(launch.creator_fee_destination, creator_fee_amount);
1145+
quote_token.transfer(launch.creator_fee_destination, creator_fee_to_distribute);
11471146
launch.creator_amount_received = 0_u256;
11481147
launch.creator_amount_distributed += creator_fee_to_distribute;
11491148
launch.creator_amount_to_distribute = 0_u256;

0 commit comments

Comments
 (0)