Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/implement/AutoMarketMakerCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ abstract contract AutoMarketMakerCore is AMMCoreStorage {

/// @inheritdoc IAutoMarketMakerCore
function feeShareAmm() public view virtual override returns (uint32) {
return spotFactory.feeShareAmm();
return spotFactory.feeShareAmmWithPair(address(this));
}

struct OnCrossPipParams {
Expand Down
7 changes: 7 additions & 0 deletions contracts/interfaces/IGetFeeShareAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ interface IGetFeeShareAMM {
/// @notice fee share for liquidity provider
/// @return the rate share
function feeShareAmm() external view returns (uint32);

/// @notice fee share for liquidity provider
/// @param pairManager the address of pair want to know the pai
/// @return the rate share
function feeShareAmmWithPair(
address pairManager
) external view returns (uint32);
}
2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.