Treasury

API

class terra_sdk.client.lcd.api.treasury.TreasuryAPI(c)[source]
parameters()[source]

Fetches the Treasury module parameters.

Returns

Treasury module parameters.

Return type

Coin

reward_weight()[source]

Fetches the current reward rate.

Returns

reward weight

Return type

Dec

seigniorage_proceeds()[source]

Fetches the current seigniorage proceeds.

Returns

seigniorage proceeds

Return type

Coin

tax_cap(denom)[source]

Fetches the tax cap for a denom.

Parameters

denom (str) – denom

Returns

tax cap

Return type

Coin

tax_proceeds()[source]

Fetches the current tax proceeds.

Returns

tax proceeds

Return type

Coins

tax_rate()[source]

Fetches the current tax rate.

Returns

tax rate

Return type

Dec

Data

Treasury module data objects.

class terra_sdk.core.treasury.data.PolicyConstraints(rate_min, rate_max, cap, change_max)[source]

Contains information about tax reward or reward weight policy constraints.

cap: terra_sdk.core.coin.Coin
change_max: terra_sdk.core.numeric.Dec
clamp(prev_rate, new_rate)[source]

Simulates the effect of the policy contraint.

Parameters
  • prev_rate (Dec) – previous rate

  • new_rate (Dec) – new rate

Returns

result of clamp (constrained change)

Return type

Dec

rate_max: terra_sdk.core.numeric.Dec
rate_min: terra_sdk.core.numeric.Dec

Proposals

Treasury module governance proposals.

class terra_sdk.core.treasury.proposals.RewardWeightUpdateProposal(title, description, reward_weight)[source]

Proposal to adjust the protocol-level reward weight.

Parameters
  • title (str) – proposal title

  • description (str) – proposal description

  • reward_weight (Dec) – new proposed tax rate

type: str = 'treasury/RewardWeightUpdateProposal'
class terra_sdk.core.treasury.proposals.TaxRateUpdateProposal(title, description, tax_rate)[source]

Proposal to adjust the protocol-level tax rate.

Parameters
  • title (str) – proposal title

  • description (str) – proposal description

  • tax_rate (Dec) – new proposed tax rate

type: str = 'treasury/TaxRateUpdateProposal'