INestorFXSwap¶
Inherits: IAbstractFeeModule
Author: Originally developed by DEFYCA Labs S.a.r.l., maintained by Nestor Exchange OÜ
MIT Licence. Originally Copyright © 2023 DEFYCA Labs S.a.r.l.
Interface defining the conversion and atomic swapping of any NestorFundDepositToken currency pair on the Nestor Protocol. The FX rates are set from the live spot & forward FX partners on the protocol.
Functions¶
setFXDeskFeeAddr¶
setSwapFees¶
function setSwapFees(NestorTokenFXFeeInfo calldata token0FeeInfo_, NestorTokenFXFeeInfo calldata token1FeeInfo_) external;
setTokenFee¶
swapTokens¶
Swaps tokens between addresses at a specified exchange rate. Only PROTOCOL_TREASURY can call this function.
function swapTokens(
address sellingTokenAddr_, address buyingTokenAddr_,
address tokenSender_, address tokenRecipient_,
uint256 buyingTokensAmount_, uint256 buyingTokenExchangeRate_
) external;
fxDeskFeeAddr¶
treasuryManager¶
permissionManager¶
getSwapFeesInfo¶
function getSwapFeesInfo(address token0_, address token1_) external view returns (FeeInfo memory, FeeInfo memory);
getSwapFeeKeys¶
getTokenFeeKey¶
getSellingTokensAmount¶
function getSellingTokensAmount(uint256 buyingTokensAmount_, uint256 buyingTokenExchangeRate_) external view returns (uint256);
Events¶
NestorFXTokensSwapped¶
event NestorFXTokensSwapped(
address sellingTokenAddr, address buyingTokenAddr,
address tokenSender, address tokenRecipient,
uint256 sellingTokensAmount, uint256 buyingTokensAmount,
uint256 buyingTokenExchangeRate
);