Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding single perpetual trigger #1105

Merged
merged 7 commits into from
Jan 13, 2025

improving test coverage

f3a2cd6
Select commit
Loading
Failed to load commit list.
Merged

Adding single perpetual trigger #1105

improving test coverage
f3a2cd6
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Jan 13, 2025 in 1s

71.58% of diff hit (target 45.08%)

View this Pull Request on Codecov

71.58% of diff hit (target 45.08%)

Annotations

Check warning on line 32 in x/perpetual/client/cli/query_close_estimation.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/client/cli/query_close_estimation.go#L32

Added line #L32 was not covered by tests

Check warning on line 21 in x/perpetual/keeper/close_position.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/close_position.go#L21

Added line #L21 was not covered by tests

Check warning on line 27 in x/perpetual/keeper/close_position.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/close_position.go#L27

Added line #L27 was not covered by tests

Check warning on line 60 in x/perpetual/keeper/close_position.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/close_position.go#L60

Added line #L60 was not covered by tests

Check warning on line 20 in x/perpetual/keeper/estimate_and_repay.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/estimate_and_repay.go#L20

Added line #L20 was not covered by tests

Check warning on line 25 in x/perpetual/keeper/estimate_and_repay.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/estimate_and_repay.go#L25

Added line #L25 was not covered by tests

Check warning on line 29 in x/perpetual/keeper/estimate_and_repay.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/estimate_and_repay.go#L29

Added line #L29 was not covered by tests

Check warning on line 35 in x/perpetual/keeper/estimate_and_repay.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/estimate_and_repay.go#L34-L35

Added lines #L34 - L35 were not covered by tests

Check warning on line 17 in x/perpetual/keeper/force_close.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/force_close.go#L16-L17

Added lines #L16 - L17 were not covered by tests

Check warning on line 28 in x/perpetual/keeper/force_close.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/force_close.go#L27-L28

Added lines #L27 - L28 were not covered by tests

Check warning on line 37 in x/perpetual/keeper/msg_server_close_positions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_close_positions.go#L37

Added line #L37 was not covered by tests

Check warning on line 56 in x/perpetual/keeper/msg_server_close_positions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_close_positions.go#L56

Added line #L56 was not covered by tests

Check warning on line 65 in x/perpetual/keeper/msg_server_close_positions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_close_positions.go#L65

Added line #L65 was not covered by tests

Check warning on line 84 in x/perpetual/keeper/msg_server_close_positions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_close_positions.go#L84

Added line #L84 was not covered by tests

Check warning on line 93 in x/perpetual/keeper/msg_server_close_positions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_close_positions.go#L93

Added line #L93 was not covered by tests

Check warning on line 32 in x/perpetual/keeper/msg_server_update_stop_loss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_update_stop_loss.go#L31-L32

Added lines #L31 - L32 were not covered by tests

Check warning on line 32 in x/perpetual/keeper/msg_server_update_take_profit_price.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_update_take_profit_price.go#L31-L32

Added lines #L31 - L32 were not covered by tests

Check warning on line 47 in x/perpetual/keeper/msg_server_update_take_profit_price.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/msg_server_update_take_profit_price.go#L45-L47

Added lines #L45 - L47 were not covered by tests

Check warning on line 310 in x/perpetual/keeper/mtp.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/mtp.go#L310

Added line #L310 was not covered by tests

Check warning on line 42 in x/perpetual/keeper/mtp_borrow_interest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/mtp_borrow_interest.go#L42

Added line #L42 was not covered by tests

Check warning on line 47 in x/perpetual/keeper/mtp_borrow_interest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/mtp_borrow_interest.go#L47

Added line #L47 was not covered by tests

Check warning on line 83 in x/perpetual/keeper/mtp_borrow_interest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/mtp_borrow_interest.go#L82-L83

Added lines #L82 - L83 were not covered by tests

Check warning on line 88 in x/perpetual/keeper/mtp_borrow_interest.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/mtp_borrow_interest.go#L88

Added line #L88 was not covered by tests

Check warning on line 40 in x/perpetual/keeper/mtp_trigger.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/mtp_trigger.go#L35-L40

Added lines #L35 - L40 were not covered by tests

Check warning on line 42 in x/perpetual/keeper/mtp_trigger.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

x/perpetual/keeper/mtp_trigger.go#L42

Added line #L42 was not covered by tests