Skip to content

Conversation

@LucasCambon
Copy link
Contributor

No description provided.

…itedAMMSV, CompoundV3InvestStrategy & InvestStrategyClient contracts
/**
* @dev Checks if the asset given is the correct one for the strategy detailed.
* @param strategy Strategy to be checked.
* @param asset Assets of the strategy to be checked.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Está mal la descripción...

  /**
   * @dev Checks the strategy asset() to ensure it is the same as the asset of the vault.
   * @param strategy Strategy to be checked.
   * @param asset Asset of the vault.
   */


/**
* @dev Returns the current assets in the strategy given.
* @param strategy Strategy to be checked.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cambiar a

  /**
   * @dev Returns the total assets in the strategy given.
   *
   * See {IInvestStrategy.totalAssets()}
   */

Es decir, sacar la descripción de los parámetros (que igual está incompleta, porque te falta documentar el valor de retorno) y hacer referencia al método de IInvestStrategy que se llama.

}

/**
* @dev Updated the deposit queue with a new one.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updates

Documentar además los eventos que se emiten.

Documentar el parámetro y qué requisitos se esperan de ese parámetro, por ejemplo que sea igual a la cantidad de estrategias que hay, y que los índices sean desde 0 para referirse a la primer estrategia, etc. etc.


/**
* @dev Returns the list of strategies in the vault in order.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indicar que el valor devuelto va a tener las estrategias instaladas y que a partir de la primera que es address(0) el resto son 0.

}

/**
* @dev Returns the current withdraw limit for each slot.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returns the net outflow limit that will be applied on two consecutive time slots

/**
* @dev Returns the current delta variation in assets for the given slot.
* Calculated as the sum of limit + deposits - withdrawals.
* @param slot The given slot to check the delta.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En la documentación del parámetro slot de tipo SlotIndex, indicá que es un valor compatible con el generado con makeOutflowSlot


/**
* @dev Returns the current delta variation in assets for the given slot.
* Calculated as the sum of limit + deposits - withdrawals.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qué es lo de limit? Sería deposits - withdrawals...

/**
* @dev Returns a slot calculated by the slotSize and the timestamp. This slot is the one used for example in getAssetsDelta.
* @param slotSize The size of the slot we want to calculate.
* @param timestamp The slot timestamp tried to be calculated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@return The resulting value is the combination of the slotSize (first 128 bits) and the index of the timestamp / slotSize

@gnarvaja gnarvaja merged commit bc7bfa8 into main Feb 21, 2025
2 checks passed
@gnarvaja gnarvaja deleted the documentation branch February 21, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants