@yoroi/api
Version:
The API package of Yoroi SDK
66 lines (65 loc) • 1.79 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.withdMalformatdData = exports.withUnknownAggregator = exports.withFees = exports.mockGetFrontendFees = void 0;
const empty = {};
const noFeesAndNoAggregator = {
muesliswap: []
};
const withFees = exports.withFees = {
muesliswap: [
// MILK 500+, VALUE ADA 100+, FFEE = 1 ADA + 0.020 %
{
primaryTokenValueThreshold: '100000000',
secondaryTokenBalanceThreshold: '500',
variableFeeMultiplier: 0.0002,
fixedFee: '1000000'
},
// MILK 100+, VALUE ADA 100+, FFEE = 1 ADA + 0.025 %
{
primaryTokenValueThreshold: '100000000',
secondaryTokenBalanceThreshold: '100',
variableFeeMultiplier: 0.00025,
fixedFee: '1000000'
},
// VALUE ADA 100+, FFEE = 1 ADA + 0.050 %
{
primaryTokenValueThreshold: '100000000',
secondaryTokenBalanceThreshold: '0',
variableFeeMultiplier: 0.0005,
fixedFee: '1000000'
}
// VALUE ADA 0-99, FFEE = 0%
],
dexhunter: [{
primaryTokenValueThreshold: '0',
secondaryTokenBalanceThreshold: '0',
variableFeeMultiplier: 0.0025,
fixedFee: '2000000'
}]
};
const withUnknownAggregator = exports.withUnknownAggregator = {
unknown: [{
primaryTokenValueThreshold: '0',
secondaryTokenBalanceThreshold: '0',
variableFeeMultiplier: 0.0025,
fixedFee: '2000000'
}]
};
const withdMalformatdData = exports.withdMalformatdData = {
unknown: [{
primaryTokenValueThreshold: '0',
secondaryTokenBalanceThreshold: '0',
variableFeeMultiplier: '0.0025',
fixedFee: '2000000'
}]
};
const mockGetFrontendFees = exports.mockGetFrontendFees = {
empty,
noFeesAndNoAggregator,
withFees,
withUnknownAggregator,
withdMalformatdData
};
//# sourceMappingURL=frontend-fees.mocks.js.map