Skip to content

Commit

Permalink
add cap
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Dec 16, 2024
1 parent 822ff25 commit d300fee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ def prompt_table_handler(identifier: AgentIdentifier) -> PromptTableHandler:

def send_message_part(nft_agent: type[DeployableAgentNFTGameAbstract]) -> None:
message = st.text_area("Write a message to the agent")
default_value = MicrochainAgentKeys().RECEIVER_MINIMUM_AMOUNT
keys = MicrochainAgentKeys()
default_value = keys.RECEIVER_MINIMUM_AMOUNT
value = st.number_input(
"Value in xDai",
min_value=default_value,
max_value=0.1,
max_value=keys.SENDING_XDAI_CAP,
value=default_value,
format="%.5f",
)
Expand Down

0 comments on commit d300fee

Please sign in to comment.