Anchor-Protocol / Anchor-Protocol/anchor.js

get error when running estimateFee with an anchor borrow tx

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
46
Forks
38
PR merge metrics
No merged PRs in 30d

Description

i create an borrow msg with api in anchor.js,

the message is :

`{
coins:[],
contract: "terra15dwd5mj8v59wpj0wvt233mf5efdff808c5tkal",
execute_msg:{borrow_stable:{borrow_amount: "2155939304",to: "terra130pmlk768prw66rhszqj6qq02sdtf3mlchknap"}},
sender: "terra130pmlk768prw66rhszqj6qq02sdtf3mlchknap"
}
`

when i running estimateFee, i get the error,

`failed to execute message; message index: 0: Generic error: Querier contract error: Generic error: Price is too old: contract query failed: execute wasm contract failed: invalid request`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at estimateFee in anchor.js and reproduce the supplied borrow message with the reported “Price is too old” error. Trace whether the failure comes from the SDK request or the Anchor contract response; done requires a confirmed cause and a clearly defined resolution or documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.