ContributionCalculation
Helper contract for calculating the exit contribution (i.e. when selling G$ back to the reserve).
Last updated
Helper contract for calculating the exit contribution (i.e. when selling G$ back to the reserve).
Last updated
Emits when the contribution ratio is updated.
Parameter name | Annotation |
---|---|
Calculate the amount after contribution during the sell action. There is a sellContributionRatio
percent contribution.
Parameter name | Annotation |
---|---|
Returns: the contribution amount for sell.
caller
The address of the Avatar.
nom
The nominator of the ratio.
denom
The denominator of the ratio.
_marketMaker
The market maker address.
_reserve
The reserve address.
_contributer
The contributer address.
_token
The token to convert from.
_gdAmount
The total G$ amount to contribute from.