Skip to content

Commit

Permalink
fix: denom on instantiate treasurechest contract was inj instead of f…
Browse files Browse the repository at this point in the history
…actory
  • Loading branch information
nseguias committed Aug 12, 2024
1 parent 0cd79b1 commit 4e3014c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions contracts/injective-auction-pool/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ pub(crate) fn new_auction_round(
// round
BIDDING_BALANCE.save(deps.storage, &Uint128::zero())?;

let mut messages: Vec<CosmosMsg> = vec![];

// transfer corresponding tokens to the rewards fee address
messages.push(CosmosMsg::Bank(BankMsg::Send {
to_address: config.rewards_fee_addr.to_string(),
Expand Down Expand Up @@ -162,7 +160,7 @@ pub(crate) fn new_auction_round(
unsettled_auction.auction_round
),
msg: to_json_binary(&treasurechest::chest::InstantiateMsg {
denom: config.native_denom.clone(),
denom: denom.clone(),
owner: env.contract.address.to_string(),
notes: denom.clone(),
token_factory: config.token_factory_type.to_string(),
Expand Down
7 changes: 6 additions & 1 deletion deploy/02-testnet-auction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,9 @@ injectived tx wasm execute $AUCTION_CONTRACT '{"exit_pool":{}}' --from inj1cdugm
injectived tx wasm execute inj1kar690fes35rm0dx5zcjwt5pjhtvcf572w3ffe '{"exit_pool":{}}' --from inj1cdugmt5t0mgfsmfc99eyhe4fzps0937ae0jgqh --yes --gas-prices "160000000inj" --gas-adjustment 1.3 --gas auto --amount 102factory/$AUCTION_CONTRACT/auction.0 --node https://testnet.sentry.tm.injective.network:443 --output json --chain-id injective-888 | jq

# settle auction
injectived tx wasm execute $AUCTION_CONTRACT '{"settle_auction":{"auction_round":108, "auction_winner":"inj1dlyumvy7rfmq534hnh8et2ft58zpm0d84vjkfd", "auction_winning_bid": "7230370850000000000001"}}' --from inj1cdugmt5t0mgfsmfc99eyhe4fzps0937ae0jgqh --yes --gas-prices "160000000inj" --gas-adjustment 1.3 --gas auto --node https://testnet.sentry.tm.injective.network:443 --output json --chain-id injective-888 | jq
injectived tx wasm execute $AUCTION_CONTRACT '{"settle_auction":{"auction_round":108, "auction_winner":"inj1dlyumvy7rfmq534hnh8et2ft58zpm0d84vjkfd", "auction_winning_bid": "7230370850000000000001"}}' --from inj1cdugmt5t0mgfsmfc99eyhe4fzps0937ae0jgqh --yes --gas-prices "160000000inj" --gas-adjustment 1.3 --gas auto --node https://testnet.sentry.tm.injective.network:443 --output json --chain-id injective-888 --amount 1000000000000000000inj | jq | jq

# claim from treasure_chest contract
TREASURE_CHEST_CONTRACT=inj1jzc67t0t445dzdd96ksywf0tfj7ah2qljfrlp9

injectived tx wasm execute $TREASURE_CHEST_CONTRACT '{"withdraw":{}}' --from inj1cdugmt5t0mgfsmfc99eyhe4fzps0937ae0jgqh --yes --gas-prices "160000000inj" --gas-adjustment 1.3 --gas auto --amount 8000000000000000000000factory/$AUCTION_CONTRACT/auction.0 --node https://testnet.sentry.tm.injective.network:443 --output json --chain-id injective-888 | jq

0 comments on commit 4e3014c

Please sign in to comment.