get position of current block in epoch
(ctx sdk.Context, epochLength int64)
| 679 | |
| 680 | // get position of current block in epoch |
| 681 | func GetEpochPosition(ctx sdk.Context, epochLength int64) int64 { |
| 682 | if epochLength <= 0 { |
| 683 | epochLength = 1 |
| 684 | } |
| 685 | currentHeight := ctx.BlockHeight() |
| 686 | return currentHeight % epochLength |
| 687 | } |
| 688 | |
| 689 | func (k Keeper) ForceCloseLong(ctx sdk.Context, mtp *types.MTP, pool *clptypes.Pool, isAdminClose bool, takeFundPayment bool) (sdk.Uint, error) { |
| 690 |
no outgoing calls
no test coverage detected