Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion coins/src/adapters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
kuma: require("./rwa/kuma"),
ondo: require("./rwa/ondo"),
pareto: require("./rwa/pareto"),
hashnote: require("./rwa/hashnote"),
circle: require("./rwa/circle"),
hiyield: require("./rwa/hiyield"),
mux: require("./yield/mux"),
maverick: require("./markets/maverick"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { getApi } from "../utils/sdk";
import { addToDBWritesList } from "../utils/database";
const abi = 'function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)'

export async function hashnote(timestamp: number): Promise<Write[]> {
export async function circle(timestamp: number): Promise<Write[]> {
const symbol = 'USYC'
const api = await getApi("ethereum", timestamp);
const tokenPrice = (await api.call({ abi, target: "0x4c48bcb2160F8e0aDbf9D4F3B034f1e36d1f8b3e", })).answer / 1e8;

const writes: Write[] = [];
addToDBWritesList(writes, 'canto', '0xfb8255f0de21acebf490f1df6f0bdd48cc1df03b', tokenPrice, 6, symbol, timestamp, "hashnote-rwa", 0.8,);
addToDBWritesList(writes, 'ethereum', '0x136471a34f6ef19fe571effc1ca711fdb8e49f2b', tokenPrice, 6, symbol, timestamp, "hashnote-rwa", 0.8,);
addToDBWritesList(writes, 'ethereum', '0x136471a34f6ef19fe571effc1ca711fdb8e49f2b', tokenPrice, 6, symbol, timestamp, "circle-rwa", 0.8,);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is canto no longer supported?

addToDBWritesList(writes, 'bsc', '0x8D0fA28f221eB5735BC71d3a0Da67EE5bC821311', tokenPrice, 6, symbol, timestamp, "circle-rwa", 0.8,);

return writes;
}
12 changes: 6 additions & 6 deletions defi/src/adaptors/data/fees/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ export default {
"franklin-templeton": {
id: "4878"
},
"hashnote-usyc": {
"circle-usyc": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the change here for? I think we should keep the old key

id: "3698"
},
"farcaster": {
Expand Down Expand Up @@ -2446,7 +2446,7 @@ export default {
id: "5982"
},
// "oxfun": { // it is a cex and fees cant be verified on chain
// id: "6699" // chainId
// id: "6699" // chainId
// },
"verus": {
id: "5601"
Expand Down Expand Up @@ -3432,11 +3432,11 @@ export default {
"haedal-protocol": {
id: "3489"
},
"reya-dex": {
id: '4978'
"reya-dex": {
id: '4978'
},
"bodega-market": {
id: '6012'
"bodega-market": {
id: '6012'
},
"tbtc": {
id: "2535"
Expand Down