๐ŸณWhale Lair

The Whale Lair is a bonding contract used to bond WHALE LSDs.

Note: the contract treats all LSDs as equal, i.e. 10 ampWHALE will have the same weight as 10 bWHALE.

InstantiateMsg

{
  "unbonding_period": "86400000000000",
  "growth_rate": "0.01",
  "bonding_assets": [
    {
      "native_token": {
        "denom": "ampWHALE"
      }
    },
    {
      "native_token": {
        "denom": "bWHALE"
      }
    }
  ]
}
KeyTypeDescription

unbonding_period

Uint64

Unbonding period in nanoseconds

growth_rate

Decimal

Weight grow rate. Needs to be between 0 and 1

bonding_assets

Vec<AssetInfo>

AssetInfo of the assets that can be bonded

ExecuteMsg

Bond

Bonds the specified [Asset]. This assumes the [Asset] is already white-listed for bonding.

{
  "bond": {
    "asset": {
      "info": {
        "native_token": {
          "denom": "ampWHALE"
        }
      },
      "amount": "1000"
    }
  }
}
KeyTypeDescription

bond

Asset

The Asset to be bonded

Unbond

Unbonds the specified [Asset].

{
  "unbond": {
    "asset": {
      "info": {
        "native_token": {
          "denom": "ampWHALE"
        }
      },
      "amount": "1000"
    }
  }
}
KeyTypeDescription

unbond

Asset

The Asset to be unbonded

Withdraw

Sends withdrawable unbonded tokens to the user.

{
  "withdraw": {
    "denom": "ampWHALE"
  }
}
KeyTypeDescription

denom

String

The denom of the asset to be withdrawn

UpdateConfig

Updates the Config of the contract.

{
  "update_config": {
    "owner": "migaloo1...",
    "unbonding_period": "172800000000000",
    "growth_rate": "0.02",
    "fee_distributor_addr": "migaloo1..."
  }
}
KeyTypeDescription

owner

Option<String>

The owner of the contract

unbonding_period

Option<Uint64>

Unbonding period in nanoseconds

growth_rate

Option<Decimal>

Weight grow rate. Needs to be between 0 and 1

fee_distributor_addr

Option<String>

The address of the fee distributor contract

QueryMsg

Config

Returns the configuration of the contract.

{
  "config": {}
}

Bonded

Returns the amount of assets that have been bonded by the specified address.

{
  "bonded": {
    "address": "migaloo1..."
  }
}
KeyTypeDescription

address

String

The address to run the query on

Unbonding

Returns the amount of tokens of the given denom that are been unbonded by the specified address. Allows pagination.

{
  "unbonding": {
    "address": "migaloo1...",
    "denom": "ampWHALE",
    "start_after": "1337",
    "limit": "10"
  }
}
KeyTypeDescription

address

String

The address to run the query on

denom

String

The denom to check the unbonding amounts for

start_after

Option<String>

If paginating, the block to start the lookup from

limit

Option<u8>

If paginating, The maximum number of items to return

Withdrawable

Returns the amount of unbonding tokens of the given denom for the specified address that can be withdrawn, i.e. that have passed the unbonding period.

{
  "withdrawable": {
    "address": "migaloo1...",
    "denom": "ampWHALE"
  }
}
KeyTypeDescription

address

String

The address to query.

denom

String

The denom to query.

Weight

Returns the weight of the address.

{
  "weight": {
    "address": "migaloo1",
    "timestamp": "1698851118",
    "global_weight": "1500"
  }
}
KeyTypeDescription

address

String

The address to query.

timestamp

Option<Timestamp>

The timestamp at which to query the weight

global_weight

Option<GlobalIndex>

The GlobalIndex to be used to query the weight

TotalBonded

Returns the total amount of assets that have been bonded to the contract.

{
  "total_bonded": {}
}

GlobalIndex

Returns the global index of the contract.

{
  "global_index": {}
}

MigrateMsg

{}

Last updated