Skip to content

checkpoint: 0coin send #37

checkpoint: 0coin send

checkpoint: 0coin send #37

Triggered via push January 24, 2024 20:04
Status Failure
Total duration
Artifacts

This workflow graph cannot be shown

A graph will be generated the next time this workflow is run.

Annotations

27 errors
Error
a step cannot have both the `uses` and `run` keys
writing `&Vec` instead of `&[_]` involves a new object where a slice will do: contracts/savings-app/src/handlers/query.rs#L47
error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do --> contracts/savings-app/src/handlers/query.rs:47:39 | 47 | pub fn query_price(deps: Deps, funds: &Vec<Coin>, app: &App) -> AppResult<Decimal> { | ^^^^^^^^^^ help: change this to: `&[Coin]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg = note: `-D clippy::ptr-arg` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::ptr_arg)]`
single-character string constant used as pattern: contracts/savings-app/src/handlers/query.rs#L27
error: single-character string constant used as pattern --> contracts/savings-app/src/handlers/query.rs:27:62 | 27 | let liquidity = pool.position.unwrap().liquidity.replace(".", ""); | ^^^ help: try using a `char` instead: `'.'` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
single-character string constant used as pattern: contracts/savings-app/src/handlers/execute.rs#L381
error: single-character string constant used as pattern --> contracts/savings-app/src/handlers/execute.rs:381:36 | 381 | position.liquidity.replace(".", "") | ^^^ help: try using a `char` instead: `'.'` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern = note: `-D clippy::single-char-pattern` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::single_char_pattern)]`
this function has too many arguments (9/7): contracts/savings-app/src/handlers/execute.rs#L51
error: this function has too many arguments (9/7) --> contracts/savings-app/src/handlers/execute.rs:51:1 | 51 | / fn create_position( 52 | | deps: DepsMut, 53 | | env: Env, 54 | | info: MessageInfo, ... | 60 | | asset1: Coin, 61 | | ) -> AppResult { | |______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `-D clippy::too-many-arguments` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
unused variable: `app`: contracts/savings-app/src/handlers/execute.rs#L373
error: unused variable: `app` --> contracts/savings-app/src/handlers/execute.rs:373:5 | 373 | app: &App, | ^^^ help: if this is intentional, prefix it with an underscore: `_app`
unused variable: `info`: contracts/savings-app/src/handlers/execute.rs#L170
error: unused variable: `info` --> contracts/savings-app/src/handlers/execute.rs:170:42 | 170 | fn autocompound(deps: DepsMut, env: Env, info: MessageInfo, app: App) -> AppResult { | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` | = note: `-D unused-variables` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_variables)]`
unused import: `Decimal`: contracts/savings-app/src/msg.rs#L4
error: unused import: `Decimal` --> contracts/savings-app/src/msg.rs:4:26 | 4 | use cosmwasm_std::{Coin, Decimal, Uint128}; | ^^^^^^^
unused import: `Decimal256`: contracts/savings-app/src/handlers/query.rs#L7
error: unused import: `Decimal256` --> contracts/savings-app/src/handlers/query.rs:7:59 | 7 | use cosmwasm_std::{to_json_binary, Binary, Coin, Decimal, Decimal256, Deps, Env}; | ^^^^^^^^^^
unused import: `crate::error::AppError`: contracts/savings-app/src/handlers/query.rs#L2
error: unused import: `crate::error::AppError` --> contracts/savings-app/src/handlers/query.rs:2:5 | 2 | use crate::error::AppError; | ^^^^^^^^^^^^^^^^^^^^^^
unused import: `ContractBalances`: contracts/savings-app/src/handlers/execute.rs#L24
error: unused import: `ContractBalances` --> contracts/savings-app/src/handlers/execute.rs:24:33 | 24 | use super::query::{query_price, ContractBalances}; | ^^^^^^^^^^^^^^^^
unused import: `StdError`: contracts/savings-app/src/handlers/execute.rs#L14
error: unused import: `StdError` --> contracts/savings-app/src/handlers/execute.rs:14:80 | 14 | to_json_binary, Coin, CosmosMsg, Decimal, Deps, DepsMut, Env, MessageInfo, StdError, SubMsg, | ^^^^^^^^
unused import: `OfferAsset`: contracts/savings-app/src/handlers/execute.rs#L9
error: unused import: `OfferAsset` --> contracts/savings-app/src/handlers/execute.rs:9:70 | 9 | DexAction, DexExecuteMsg, DexQueryMsg, GenerateMessagesResponse, OfferAsset, | ^^^^^^^^^^
unused import: `abstract_dex_adapter::api::Dex`: contracts/savings-app/src/handlers/execute.rs#L7
error: unused import: `abstract_dex_adapter::api::Dex` --> contracts/savings-app/src/handlers/execute.rs:7:5 | 7 | use abstract_dex_adapter::api::Dex; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`
writing `&Vec` instead of `&[_]` involves a new object where a slice will do: contracts/savings-app/src/handlers/query.rs#L47
error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do --> contracts/savings-app/src/handlers/query.rs:47:39 | 47 | pub fn query_price(deps: Deps, funds: &Vec<Coin>, app: &App) -> AppResult<Decimal> { | ^^^^^^^^^^ help: change this to: `&[Coin]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg = note: `-D clippy::ptr-arg` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::ptr_arg)]`
single-character string constant used as pattern: contracts/savings-app/src/handlers/query.rs#L27
error: single-character string constant used as pattern --> contracts/savings-app/src/handlers/query.rs:27:62 | 27 | let liquidity = pool.position.unwrap().liquidity.replace(".", ""); | ^^^ help: try using a `char` instead: `'.'` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
single-character string constant used as pattern: contracts/savings-app/src/handlers/execute.rs#L381
error: single-character string constant used as pattern --> contracts/savings-app/src/handlers/execute.rs:381:36 | 381 | position.liquidity.replace(".", "") | ^^^ help: try using a `char` instead: `'.'` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern = note: `-D clippy::single-char-pattern` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::single_char_pattern)]`
this function has too many arguments (9/7): contracts/savings-app/src/handlers/execute.rs#L51
error: this function has too many arguments (9/7) --> contracts/savings-app/src/handlers/execute.rs:51:1 | 51 | / fn create_position( 52 | | deps: DepsMut, 53 | | env: Env, 54 | | info: MessageInfo, ... | 60 | | asset1: Coin, 61 | | ) -> AppResult { | |______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments = note: `-D clippy::too-many-arguments` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::too_many_arguments)]`
unused variable: `app`: contracts/savings-app/src/handlers/execute.rs#L373
error: unused variable: `app` --> contracts/savings-app/src/handlers/execute.rs:373:5 | 373 | app: &App, | ^^^ help: if this is intentional, prefix it with an underscore: `_app`
unused variable: `info`: contracts/savings-app/src/handlers/execute.rs#L170
error: unused variable: `info` --> contracts/savings-app/src/handlers/execute.rs:170:42 | 170 | fn autocompound(deps: DepsMut, env: Env, info: MessageInfo, app: App) -> AppResult { | ^^^^ help: if this is intentional, prefix it with an underscore: `_info` | = note: `-D unused-variables` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_variables)]`
unused import: `Decimal`: contracts/savings-app/src/msg.rs#L4
error: unused import: `Decimal` --> contracts/savings-app/src/msg.rs:4:26 | 4 | use cosmwasm_std::{Coin, Decimal, Uint128}; | ^^^^^^^
unused import: `Decimal256`: contracts/savings-app/src/handlers/query.rs#L7
error: unused import: `Decimal256` --> contracts/savings-app/src/handlers/query.rs:7:59 | 7 | use cosmwasm_std::{to_json_binary, Binary, Coin, Decimal, Decimal256, Deps, Env}; | ^^^^^^^^^^
unused import: `crate::error::AppError`: contracts/savings-app/src/handlers/query.rs#L2
error: unused import: `crate::error::AppError` --> contracts/savings-app/src/handlers/query.rs:2:5 | 2 | use crate::error::AppError; | ^^^^^^^^^^^^^^^^^^^^^^
unused import: `ContractBalances`: contracts/savings-app/src/handlers/execute.rs#L24
error: unused import: `ContractBalances` --> contracts/savings-app/src/handlers/execute.rs:24:33 | 24 | use super::query::{query_price, ContractBalances}; | ^^^^^^^^^^^^^^^^
unused import: `StdError`: contracts/savings-app/src/handlers/execute.rs#L14
error: unused import: `StdError` --> contracts/savings-app/src/handlers/execute.rs:14:80 | 14 | to_json_binary, Coin, CosmosMsg, Decimal, Deps, DepsMut, Env, MessageInfo, StdError, SubMsg, | ^^^^^^^^
unused import: `OfferAsset`: contracts/savings-app/src/handlers/execute.rs#L9
error: unused import: `OfferAsset` --> contracts/savings-app/src/handlers/execute.rs:9:70 | 9 | DexAction, DexExecuteMsg, DexQueryMsg, GenerateMessagesResponse, OfferAsset, | ^^^^^^^^^^
unused import: `abstract_dex_adapter::api::Dex`: contracts/savings-app/src/handlers/execute.rs#L7
error: unused import: `abstract_dex_adapter::api::Dex` --> contracts/savings-app/src/handlers/execute.rs:7:5 | 7 | use abstract_dex_adapter::api::Dex; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]`