Skip to content

Commit

Permalink
add propper client
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed Aug 6, 2024
1 parent c775040 commit 72a9e85
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/find.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,13 @@
}
}
},
"getFlowToUSD": {
"code": "import FIND from 0x179b6b1cb6755e31\n\naccess(all) fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}",
"spec": {
"order": [],
"parameters": {}
}
},
"getInvalidatedLeases": {
"code": "import FIND from 0x179b6b1cb6755e31\n\npub fun main(user: Address) : [String] {\n let finLeases= getAuthAccount(user).borrow\u003c\u0026FIND.LeaseCollection\u003e(from:FIND.LeaseStoragePath)!\n return finLeases.getInvalidatedLeases()\n}",
"spec": {
Expand Down Expand Up @@ -3699,6 +3706,13 @@
}
}
},
"getFlowToUSD": {
"code": "import FIND from 0x097bafa4e0b48eef\n\naccess(all) fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}",
"spec": {
"order": [],
"parameters": {}
}
},
"getFlowToUsdc": {
"code": "import SwapRouter from 0xa6850776a94e6551\n\npub fun main(usdcAmount: UFix64) : UFix64 {\n\n\n let path = [ \"A.1654653399040a61.FlowToken\", \"A.b19436aae4d94622.FiatToken\" ]\n return SwapRouter.getAmountsIn(amountOut: usdcAmount, tokenKeyPath:path)[0]\n}",
"spec": {
Expand Down Expand Up @@ -7298,6 +7312,13 @@
}
}
},
"getFlowToUSD": {
"code": "import FIND from 0x35717efbbce11c74\n\naccess(all) fun main():UFix64 {\n\n return FIND.getLatestPrice()\n}",
"spec": {
"order": [],
"parameters": {}
}
},
"getFlowToUsdc": {
"code": "import SwapRouter from 0x2f8af5ed05bbde0d\n\npub fun main(usdcAmount: UFix64) : UFix64 {\n\n\n let path = [ \"A.7e60df042a9c0868.FlowToken\", \"A.a983fecbed621163.FiatToken\" ]\n return SwapRouter.getAmountsIn(amountOut: usdcAmount, tokenKeyPath:path)[0]\n}",
"spec": {
Expand Down

0 comments on commit 72a9e85

Please sign in to comment.