You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that it assumes that the balance has been increased by the profit. But this calls treasury.deposit( _amount, address(principle), profit ); which runs:
uint value = valueOf(_token, _amount);
// mint Time needed and store amount of rewards for distribution
send_ = value.sub( _profit );
...
Time.mint( msg.sender, send_ );
So I believe this only works if profit is half the value of the amount. I'm curious why this assertion is in the code.
The text was updated successfully, but these errors were encountered:
https://github.com/Wonderland-Money/contracts/blob/main/BondDepository.sol#L701
It says:
This means that it assumes that the balance has been increased by the profit. But this calls
treasury.deposit( _amount, address(principle), profit );
which runs:So I believe this only works if profit is half the value of the amount. I'm curious why this assertion is in the code.
The text was updated successfully, but these errors were encountered: