Skip to content

Commit

Permalink
Merge pull request #60 from starknet-id/testnet
Browse files Browse the repository at this point in the history
add altcoins support to add commission
  • Loading branch information
Th0rgal authored Jun 10, 2024
2 parents 0c58006 + 6993eee commit ffe7006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/interface/referral.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ trait IReferral<TContractState> {
self: @TContractState,
amount: u256,
sponsor_addr: ContractAddress,
sponsored_addr: ContractAddress
sponsored_addr: ContractAddress,
erc20_addr: ContractAddress,
);
}
2 changes: 1 addition & 1 deletion src/naming/internal.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl InternalImpl of InternalTrait {
// add sponsor commission if eligible
if sponsor.into() != 0 {
IReferralDispatcher { contract_address: self._referral_contract.read() }
.add_commission(discounted_price, sponsor, sponsored_addr: get_caller_address());
.add_commission(discounted_price, sponsor, sponsored_addr: get_caller_address(), erc20_addr: erc20);
}
}

Expand Down

0 comments on commit ffe7006

Please sign in to comment.