Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R4R] : add strategy address return #39

Merged
merged 4 commits into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions api/l3staking/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def get_staking_node_list(request):
for node in staking_nodes:
staking_node_list.append(node.as_dict())
staking_strategies_node_list.append({
"stategy_name": ss.name,
"strategy_name": ss.name,
"strategy_address": ss.address,
"node_list": staking_node_list
})
return ok_json(staking_strategies_node_list)
Expand Down Expand Up @@ -79,7 +80,7 @@ def get_l2_stake_record(request):
params = json.loads(request.body.decode())
staker_address = params.get('staker_address', "")
if staker_address == "":
return error_json(msg="staker address cannot be empty");
return error_json(msg="staker address cannot be empty")
strategy = params.get('strategy', "0x")
page = params.get('page', 1)
page_size = params.get('page_size', 10)
Expand All @@ -101,7 +102,7 @@ def get_l2_unstake_record(request):
params = json.loads(request.body.decode())
staker_address = params.get('staker_address', "")
if staker_address == "":
return error_json(msg="staker address cannot be empty");
return error_json(msg="staker address cannot be empty")
strategy = params.get('strategy', "0x")
page = params.get('page', 1)
page_size = params.get('page_size', 10)
Expand All @@ -121,7 +122,7 @@ def get_l2_withdraw_record(request):
params = json.loads(request.body.decode())
staker_address = params.get('staker_address', "")
if staker_address == "":
return error_json(msg="staker address cannot be empty");
return error_json(msg="staker address cannot be empty")
strategy = params.get('strategy', "0x")
page = params.get('page', 1)
page_size = params.get('page_size', 10)
Expand Down
Loading