beamer-bridge / beamer

Beamer - Bridging rollups with L1 inherited security
https://beamerbridge.com
MIT License
45 stars 21 forks source link

frontend: disable transfer creation if not enough liquidity available #2141

Closed manuelwedler closed 1 year ago

manuelwedler commented 1 year ago

Issue Desription

We would like to disable the transfer submit button in case the transfer cannot get filled due to liquidity. We should check the token balance of all agents on the target chain and disable if none of them has enough tokens for fulfillment. For this a new validator function needs to be implemented and integrated into the form.

Acceptance Criteria

manuelwedler commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @bilbeyt @istankovic @fredo

fredo commented 1 year ago

how are the agent addresses retrieved?

manuelwedler commented 1 year ago

I thought I could get them from the RequestManager contract but just realized that it is implemented as mapping it is not trivial to get them from the chain.

Daniel proposed to hardcode them. Would you be fine with that? @fredo

fredo commented 1 year ago

for the beginning yes

fredo commented 1 year ago

as a second step we could get it from the subgraph?

manuelwedler commented 1 year ago

Sounds good to me :+1: