Skip to content

Commit d7c31f6

Browse files
Merge remote-tracking branch 'origin/main' into joaquim/always-show-modal
2 parents 6fea818 + 89ccc80 commit d7c31f6

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

apps/portal/src/app/engine/v3/faq/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { Callout, Details } from "@doc";
33
# Engine FAQs
44

55
<Details summary="How is pricing calculated for Engine Cloud?">
6-
Pricing is calculated through the number of write requests (ex: /v1/write/contract) made through the Engine API. Requests cost $1 per 1,000 requests. Read requests made through Engine API are free, within the RPC limits/plan.
6+
Pricing is calculated through the number of write requests (ex: /v1/write/contract) and sign requests (ex: /v1/sign/transaction) made through the Engine API. Write and sign requests cost $1 per 1,000 requests. Read requests made through Engine API are free, within the RPC limits/plan.
77

88
For transactions through server wallets paid through the user's thirdweb account, users will pay a 5% premium on the gas fee of each transaction completed on any mainnet as part of account abstraction fees. There are no gas charges for testnets.
99

10-
**Please note: Legacy pricing plans may be subject to the 10% fee instead of 5%. Please update your pricing plan to avoid being subject to the 10% fee.**
10+
**Please note: Legacy pricing plans may be subject to the 10% fee specified when signed up instead of 5%. [See pricing page for updated plans and benefits](https://thirdweb.com/pricing)**
1111

1212
The breakdown for usage and transaction fees can be found in your usage dashboard under the team overview.
1313
</Details>

packages/thirdweb/src/bridge/Onramp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ interface OnrampApiRequestBody {
7979
* });
8080
*
8181
* console.log(preparedOnramp.link); // URL to redirect the user to
82-
* console.log(preparedOnramp.destinationAmount); // Amount of token user will receive
82+
* console.log(preparedOnramp.currencyAmount); // Amount in fiat the user will pay
8383
* ```
8484
*
8585
* This function returns a quote that might look like:

packages/thirdweb/src/pay/convert/cryptoToFiat.test.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { describe, expect, it, vi } from "vitest";
22
import { TEST_CLIENT } from "~test/test-clients.js";
3-
import { TEST_ACCOUNT_A } from "~test/test-wallets.js";
43
import { base } from "../../chains/chain-definitions/base.js";
54
import { ethereum } from "../../chains/chain-definitions/ethereum.js";
65
import { sepolia } from "../../chains/chain-definitions/sepolia.js";
7-
import { NATIVE_TOKEN_ADDRESS } from "../../constants/addresses.js";
6+
import {
7+
NATIVE_TOKEN_ADDRESS,
8+
ZERO_ADDRESS,
9+
} from "../../constants/addresses.js";
810
import { convertCryptoToFiat } from "./cryptoToFiat.js";
911

1012
describe.runIf(process.env.TW_SECRET_KEY)("Pay: crypto-to-fiat", () => {
@@ -49,7 +51,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("Pay: crypto-to-fiat", () => {
4951
expect(data.result).toBe(0);
5052
});
5153

52-
it("should throw error for testnet chain (because testnets are not supported", async () => {
54+
it("should throw error for testnet chain (because testnets are not supported)", async () => {
5355
await expect(
5456
convertCryptoToFiat({
5557
chain: sepolia,
@@ -81,13 +83,13 @@ describe.runIf(process.env.TW_SECRET_KEY)("Pay: crypto-to-fiat", () => {
8183
await expect(
8284
convertCryptoToFiat({
8385
chain: base,
84-
fromTokenAddress: TEST_ACCOUNT_A.address,
86+
fromTokenAddress: ZERO_ADDRESS,
8587
fromAmount: 1,
8688
to: "USD",
8789
client: TEST_CLIENT,
8890
}),
8991
).rejects.toThrowError(
90-
`Error: ${TEST_ACCOUNT_A.address} on chainId: ${base.id} is not a valid contract address.`,
92+
`Error: ${ZERO_ADDRESS} on chainId: ${base.id} is not a valid contract address.`,
9193
);
9294
});
9395
it("should throw if response is not OK", async () => {

packages/thirdweb/src/pay/convert/fiatToCrypto.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { describe, expect, it, vi } from "vitest";
22
import { TEST_CLIENT } from "~test/test-clients.js";
3-
import { TEST_ACCOUNT_A } from "~test/test-wallets.js";
43
import { base } from "../../chains/chain-definitions/base.js";
54
import { ethereum } from "../../chains/chain-definitions/ethereum.js";
65
import { sepolia } from "../../chains/chain-definitions/sepolia.js";
7-
import { NATIVE_TOKEN_ADDRESS } from "../../constants/addresses.js";
6+
import {
7+
NATIVE_TOKEN_ADDRESS,
8+
ZERO_ADDRESS,
9+
} from "../../constants/addresses.js";
810
import { convertFiatToCrypto } from "./fiatToCrypto.js";
911

1012
describe.runIf(process.env.TW_SECRET_KEY)("Pay: fiatToCrypto", () => {
@@ -84,13 +86,13 @@ describe.runIf(process.env.TW_SECRET_KEY)("Pay: fiatToCrypto", () => {
8486
await expect(
8587
convertFiatToCrypto({
8688
chain: base,
87-
to: TEST_ACCOUNT_A.address,
89+
to: ZERO_ADDRESS,
8890
fromAmount: 1,
8991
from: "USD",
9092
client: TEST_CLIENT,
9193
}),
9294
).rejects.toThrowError(
93-
`Error: ${TEST_ACCOUNT_A.address} on chainId: ${base.id} is not a valid contract address.`,
95+
`Error: ${ZERO_ADDRESS} on chainId: ${base.id} is not a valid contract address.`,
9496
);
9597
});
9698
it("should throw if response is not OK", async () => {

0 commit comments

Comments
 (0)