Skip to content

Commit

Permalink
Fix gyro fee (#509)
Browse files Browse the repository at this point in the history
Update pool-on-chain-data.service.ts
  • Loading branch information
gmbronco authored Nov 6, 2023
1 parent 8b27bd7 commit 994f110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pool/lib/pool-on-chain-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class PoolOnChainDataService {
[
defaultAbiCoder.encode(
['bytes32', 'bytes32'],
[feeKey, formatBytes32String('E-CLP')]
[feeKey, formatBytes32String('ECLP')]
),
]
);
Expand Down Expand Up @@ -386,7 +386,7 @@ export class PoolOnChainDataService {
if (onchainData.gyroProtocolFee) {
yieldProtocolFeePercentage = formatFixed(onchainData.gyroProtocolFee, 18);
} else if (pool.type.includes('GYRO')) {
if (pool.type === 'GYROE') {
if (pool.type === 'GYROE' && gyroDefaults.eclp) {
yieldProtocolFeePercentage = formatFixed(gyroDefaults.eclp, 18) || '0';
} else {
yieldProtocolFeePercentage = formatFixed(gyroDefaults.default, 18) || '0';
Expand Down

0 comments on commit 994f110

Please sign in to comment.